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 SummaryFields 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 SummaryConstructors Constructor Description JsonPreAnalyzedParser()
 - 
Method SummaryAll 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- 
VERSIONpublic static final String VERSION - See Also:
- Constant Field Values
 
 - 
VERSION_KEYpublic static final String VERSION_KEY - See Also:
- Constant Field Values
 
 - 
STRING_KEYpublic static final String STRING_KEY - See Also:
- Constant Field Values
 
 - 
BINARY_KEYpublic static final String BINARY_KEY - See Also:
- Constant Field Values
 
 - 
TOKENS_KEYpublic static final String TOKENS_KEY - See Also:
- Constant Field Values
 
 - 
TOKEN_KEYpublic static final String TOKEN_KEY - See Also:
- Constant Field Values
 
 - 
OFFSET_START_KEYpublic static final String OFFSET_START_KEY - See Also:
- Constant Field Values
 
 - 
OFFSET_END_KEYpublic static final String OFFSET_END_KEY - See Also:
- Constant Field Values
 
 - 
POSINCR_KEYpublic static final String POSINCR_KEY - See Also:
- Constant Field Values
 
 - 
PAYLOAD_KEYpublic static final String PAYLOAD_KEY - See Also:
- Constant Field Values
 
 - 
TYPE_KEYpublic static final String TYPE_KEY - See Also:
- Constant Field Values
 
 - 
FLAGS_KEYpublic static final String FLAGS_KEY - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
parsepublic PreAnalyzedField.ParseResult parse(Reader reader, org.apache.lucene.util.AttributeSource parent) throws IOException Description copied from interface:PreAnalyzedField.PreAnalyzedParserParse input.- Specified by:
- parsein interface- PreAnalyzedField.PreAnalyzedParser
- 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
 
 - 
toFormattedStringpublic 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 interface- PreAnalyzedField.PreAnalyzedParser
- Parameters:
- f- field instance
- Returns:
- formatted string
- Throws:
- IOException- If there is a low-level I/O error.
 
 
- 
 
-