Interface PreAnalyzedField.PreAnalyzedParser

    • Method Detail

      • parse

        PreAnalyzedField.ParseResult parse​(Reader reader,
                                           org.apache.lucene.util.AttributeSource parent)
                                    throws IOException
        Parse input.
        Parameters:
        reader - input to read from
        parent - parent who will own the resulting states (tokens with attributes)
        Returns:
        parse result, with possibly null stored and/or states fields.
        Throws:
        IOException - if a parsing error or IO error occurs
      • toFormattedString

        String toFormattedString​(org.apache.lucene.document.Field f)
                          throws IOException
        Format a field so that the resulting String is valid for parsing with parse(Reader, AttributeSource).
        Parameters:
        f - field instance
        Returns:
        formatted string
        Throws:
        IOException - If there is a low-level I/O error.