Package org.apache.solr.schema
Interface PreAnalyzedField.PreAnalyzedParser
-
- All Known Implementing Classes:
JsonPreAnalyzedParser,SimplePreAnalyzedParser
- Enclosing class:
- PreAnalyzedField
public static interface PreAnalyzedField.PreAnalyzedParserParse the input and return the stored part and the tokens with attributes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PreAnalyzedField.ParseResultparse(Reader reader, org.apache.lucene.util.AttributeSource parent)Parse input.StringtoFormattedString(org.apache.lucene.document.Field f)Format a field so that the resulting String is valid for parsing withparse(Reader, AttributeSource).
-
-
-
Method Detail
-
parse
PreAnalyzedField.ParseResult parse(Reader reader, org.apache.lucene.util.AttributeSource parent) throws IOException
Parse input.- Parameters:
reader- input to read fromparent- 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 withparse(Reader, AttributeSource).- Parameters:
f- field instance- Returns:
- formatted string
- Throws:
IOException- If there is a low-level I/O error.
-
-