Package org.apache.solr.schema
Class JsonPreAnalyzedParser
java.lang.Object
org.apache.solr.schema.JsonPreAnalyzedParser
- All Implemented Interfaces:
PreAnalyzedField.PreAnalyzedParser
-
Field Summary
Fields -
Constructor Summary
Constructors -
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 withPreAnalyzedField.PreAnalyzedParser.parse(Reader, AttributeSource).
-
Field Details
-
VERSION
- See Also:
-
VERSION_KEY
- See Also:
-
STRING_KEY
- See Also:
-
BINARY_KEY
- See Also:
-
TOKENS_KEY
- See Also:
-
TOKEN_KEY
- See Also:
-
OFFSET_START_KEY
- See Also:
-
OFFSET_END_KEY
- See Also:
-
POSINCR_KEY
- See Also:
-
PAYLOAD_KEY
- See Also:
-
TYPE_KEY
- See Also:
-
FLAGS_KEY
- See Also:
-
-
Constructor Details
-
JsonPreAnalyzedParser
public JsonPreAnalyzedParser()
-
-
Method Details
-
parse
public PreAnalyzedField.ParseResult parse(Reader reader, org.apache.lucene.util.AttributeSource parent) throws IOException Description copied from interface:PreAnalyzedField.PreAnalyzedParserParse input.- Specified by:
parsein interfacePreAnalyzedField.PreAnalyzedParser- 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
Description copied from interface:PreAnalyzedField.PreAnalyzedParserFormat a field so that the resulting String is valid for parsing withPreAnalyzedField.PreAnalyzedParser.parse(Reader, AttributeSource).- Specified by:
toFormattedStringin interfacePreAnalyzedField.PreAnalyzedParser- Parameters:
f- field instance- Returns:
- formatted string
- Throws:
IOException- If there is a low-level I/O error.
-