Package org.apache.solr.schema
Interface PreAnalyzedField.PreAnalyzedParser
- All Known Implementing Classes:
JsonPreAnalyzedParser,SimplePreAnalyzedParser
- Enclosing class:
PreAnalyzedField
public static interface PreAnalyzedField.PreAnalyzedParser
Parse the input and return the stored part and the tokens with attributes.
-
Method Summary
Modifier and TypeMethodDescriptionParse input.toFormattedString(org.apache.lucene.document.Field f) Format a field so that the resulting String is valid for parsing withparse(Reader, AttributeSource).
-
Method Details
-
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
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.
-