public abstract class AbstractSpatialPrefixTreeFieldType<T extends PrefixTreeStrategy> extends AbstractSpatialFieldType<T>
PrefixTreeStrategy
FieldType.DefaultAnalyzer, FieldType.MultiValueSelector
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FIELD_VALUES_ARRAY_LEN |
static Map<String,String> |
FIELD_TYPE_INVARIANTS |
protected SpatialPrefixTree |
grid |
argsParser, ctx, DISTANCE, distanceUnits, FILTER_PARAM, FORMAT, NONE, RECIP_DISTANCE, SCORE_PARAM, shapeReader, shapeWriter, supportedScoreModes
ANALYZER, args, AUTO_GENERATE_PHRASE_QUERIES, CHAR_FILTER, CHAR_FILTERS, CLASS_NAME, docValuesFormat, ENABLE_GRAPH_QUERIES, falseProperties, FILTER, FILTERS, INDEX, INDEX_ANALYZER, MULTI_TERM, MULTI_TERM_ANALYZER, POLY_FIELD_SEPARATOR, postingsFormat, properties, QUERY, QUERY_ANALYZER, similarity, SIMILARITY, similarityFactory, SYNONYM_QUERY_STYLE, TOKENIZER, trueProperties, TYPE, TYPE_NAME, typeName
BINARY, DOC_VALUES, INDEXED, LARGE_FIELD, MULTIVALUED, OMIT_NORMS, OMIT_POSITIONS, OMIT_TF_POSITIONS, REQUIRED, SORT_MISSING_FIRST, SORT_MISSING_LAST, STORE_OFFSETS, STORE_TERMOFFSETS, STORE_TERMPAYLOADS, STORE_TERMPOSITIONS, STORE_TERMVECTORS, STORED, TOKENIZED, UNINVERTIBLE, USE_DOCVALUES_AS_STORED
Constructor and Description |
---|
AbstractSpatialPrefixTreeFieldType() |
Modifier and Type | Method and Description |
---|---|
void |
checkSchemaField(SchemaField field)
Check's
SchemaField instances constructed
using this field type to ensure that they are valid. |
Analyzer |
getIndexAnalyzer()
This analyzer is not actually used for indexing.
|
Analyzer |
getQueryAnalyzer()
Returns the Analyzer to be used when searching fields of this type.
|
protected void |
init(IndexSchema schema,
Map<String,String> args)
subclasses should initialize themselves with the args provided
and remove valid arguments.
|
protected abstract T |
newPrefixTreeStrategy(String fieldName) |
protected T |
newSpatialStrategy(String fieldName)
Called from
AbstractSpatialFieldType.getStrategy(String) upon first use by fieldName. |
void |
setArgs(IndexSchema schema,
Map<String,String> args)
Initializes the field type.
|
createField, createFields, createSpatialQuery, getDistanceUnits, getFieldQuery, getQueryFromSpatialArgs, getSortField, getSpatialContext, getSpecializedRangeQuery, getSphereRadius, getStoredValue, getStrategy, getSupportedScoreModes, getUninversionType, getValueSource, getValueSourceFromSpatialArgs, isPolyField, newSpatialArgsParser, parseDistanceUnits, parseShape, parseSpatialArgs, shapeToString, write
checkSupportsDocValues, createField, getAnalyzerProperties, getClassArg, getDefaultMultiValueSelectorForSort, getDocValuesFormat, getExistenceQuery, getNamedPropertyValues, getNonFieldPropertyArgs, getNumberType, getNumericSort, getPostingsFormat, getPrefixQuery, getRangeQuery, getRewriteMethod, getSetQuery, getSimilarity, getSimilarityFactory, getSingleValueSource, getSortedNumericSortField, getSortedSetSortField, getSortField, getSpecializedExistenceQuery, getStringSort, getTypeName, hasProperty, indexedToReadable, indexedToReadable, isExplicitAnalyzer, isExplicitQueryAnalyzer, isMultiValued, isPointField, isTokenized, isUtf8Field, marshalBase64SortValue, marshalSortValue, marshalStringSortValue, multiValuedFieldCache, readableToIndexed, readableToIndexed, restrictProps, setIndexAnalyzer, setIsExplicitAnalyzer, setIsExplicitQueryAnalyzer, setQueryAnalyzer, setSimilarity, storedToIndexed, storedToReadable, supportsAnalyzers, toExternal, toInternal, toNativeType, toObject, toObject, toString, treatUnboundedRangeAsExistence, unmarshalBase64SortValue, unmarshalSortValue, unmarshalStringSortValue, useDocValuesAsStored, write
public static final String DEFAULT_FIELD_VALUES_ARRAY_LEN
protected SpatialPrefixTree grid
public void setArgs(IndexSchema schema, Map<String,String> args)
FieldType
FieldType.init(IndexSchema, Map)
which is called by this method.protected void init(IndexSchema schema, Map<String,String> args)
FieldType
init
in class AbstractSpatialFieldType<T extends PrefixTreeStrategy>
public void checkSchemaField(SchemaField field)
FieldType
SchemaField
instances constructed
using this field type to ensure that they are valid.
This method is called by the SchemaField
constructor to
check that its initialization does not violate any fundamental
requirements of the FieldType
.
Subclasses may choose to throw a SolrException
if invariants are violated by the SchemaField.
checkSchemaField
in class FieldType
FIELD_TYPE_INVARIANTS
public Analyzer getIndexAnalyzer()
getIndexAnalyzer
in class FieldType
FieldType.getQueryAnalyzer()
public Analyzer getQueryAnalyzer()
FieldType
This method may be called many times, at any time.
getQueryAnalyzer
in class FieldType
FieldType.getIndexAnalyzer()
protected T newSpatialStrategy(String fieldName)
AbstractSpatialFieldType
AbstractSpatialFieldType.getStrategy(String)
upon first use by fieldName. }newSpatialStrategy
in class AbstractSpatialFieldType<T extends PrefixTreeStrategy>
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.