Package org.apache.solr.schema
Class JsonPreAnalyzedParser
- java.lang.Object
-
- org.apache.solr.schema.JsonPreAnalyzedParser
-
- All Implemented Interfaces:
PreAnalyzedField.PreAnalyzedParser
public class JsonPreAnalyzedParser extends Object implements PreAnalyzedField.PreAnalyzedParser
-
-
Field Summary
Fields Modifier and Type Field Description static StringBINARY_KEYstatic StringFLAGS_KEYstatic StringOFFSET_END_KEYstatic StringOFFSET_START_KEYstatic StringPAYLOAD_KEYstatic StringPOSINCR_KEYstatic StringSTRING_KEYstatic StringTOKEN_KEYstatic StringTOKENS_KEYstatic StringTYPE_KEYstatic StringVERSIONstatic StringVERSION_KEY
-
Constructor Summary
Constructors Constructor Description JsonPreAnalyzedParser()
-
Method Summary
All Methods Instance Methods Concrete 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 withPreAnalyzedField.PreAnalyzedParser.parse(Reader, AttributeSource).
-
-
-
Field Detail
-
VERSION
public static final String VERSION
- See Also:
- Constant Field Values
-
VERSION_KEY
public static final String VERSION_KEY
- See Also:
- Constant Field Values
-
STRING_KEY
public static final String STRING_KEY
- See Also:
- Constant Field Values
-
BINARY_KEY
public static final String BINARY_KEY
- See Also:
- Constant Field Values
-
TOKENS_KEY
public static final String TOKENS_KEY
- See Also:
- Constant Field Values
-
TOKEN_KEY
public static final String TOKEN_KEY
- See Also:
- Constant Field Values
-
OFFSET_START_KEY
public static final String OFFSET_START_KEY
- See Also:
- Constant Field Values
-
OFFSET_END_KEY
public static final String OFFSET_END_KEY
- See Also:
- Constant Field Values
-
POSINCR_KEY
public static final String POSINCR_KEY
- See Also:
- Constant Field Values
-
PAYLOAD_KEY
public static final String PAYLOAD_KEY
- See Also:
- Constant Field Values
-
TYPE_KEY
public static final String TYPE_KEY
- See Also:
- Constant Field Values
-
FLAGS_KEY
public static final String FLAGS_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public String toFormattedString(org.apache.lucene.document.Field f) throws IOException
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.
-
-