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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
JsonPreAnalyzedParser
public JsonPreAnalyzedParser()
parse
public PreAnalyzedField.ParseResult parse(Reader reader,
AttributeSource parent)
throws IOException
- Description copied from interface:
PreAnalyzedField.PreAnalyzedParser
- Parse input.
- Specified by:
parse
in interface PreAnalyzedField.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(Field f)
throws IOException
- Description copied from interface:
PreAnalyzedField.PreAnalyzedParser
- Format a field so that the resulting String is valid for parsing with
PreAnalyzedField.PreAnalyzedParser.parse(Reader, AttributeSource)
.
- Specified by:
toFormattedString
in interface PreAnalyzedField.PreAnalyzedParser
- Parameters:
f
- field instance
- Returns:
- formatted string
- Throws:
IOException
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.