Package org.apache.solr.schema
Class AbstractSpatialPrefixTreeFieldType<T extends org.apache.lucene.spatial.prefix.PrefixTreeStrategy>
java.lang.Object
org.apache.solr.schema.FieldProperties
org.apache.solr.schema.FieldType
org.apache.solr.schema.AbstractSpatialFieldType<T>
org.apache.solr.schema.AbstractSpatialPrefixTreeFieldType<T>
- All Implemented Interfaces:
SpatialQueryable
- Direct Known Subclasses:
DateRangeField,SpatialRecursivePrefixTreeFieldType
public abstract class AbstractSpatialPrefixTreeFieldType<T extends org.apache.lucene.spatial.prefix.PrefixTreeStrategy>
extends AbstractSpatialFieldType<T>
- See Also:
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.schema.FieldType
FieldType.DefaultAnalyzer, FieldType.MultiValueSelector -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected org.apache.lucene.spatial.prefix.tree.SpatialPrefixTreeFields inherited from class org.apache.solr.schema.AbstractSpatialFieldType
argsParser, ctx, DISTANCE, distanceUnits, FILTER_PARAM, FORMAT, NONE, RECIP_DISTANCE, SCORE_PARAM, shapeReader, shapeWriter, supportedScoreModesFields inherited from class org.apache.solr.schema.FieldType
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, typeNameFields inherited from class org.apache.solr.schema.FieldProperties
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckSchemaField(SchemaField field) Check'sSchemaFieldinstances constructed using this field type to ensure that they are valid.org.apache.lucene.analysis.AnalyzerThis analyzer is not actually used for indexing.org.apache.lucene.analysis.AnalyzerReturns the Analyzer to be used when searching fields of this type.protected voidinit(IndexSchema schema, Map<String, String> args) subclasses should initialize themselves with the args provided and remove valid arguments.protected abstract TnewPrefixTreeStrategy(String fieldName) protected TnewSpatialStrategy(String fieldName) Called fromAbstractSpatialFieldType.getStrategy(String)upon first use by fieldName.voidsetArgs(IndexSchema schema, Map<String, String> args) Initializes the field type.Methods inherited from class org.apache.solr.schema.AbstractSpatialFieldType
createField, createFields, createSpatialQuery, getDistanceUnits, getFieldQuery, getQueryFromSpatialArgs, getSortField, getSpatialContext, getSpecializedExistenceQuery, getSpecializedRangeQuery, getSphereRadius, getStoredValue, getStrategy, getSupportedScoreModes, getUninversionType, getValueSource, getValueSourceFromSpatialArgs, isPolyField, newSpatialArgsParser, parseDistanceUnits, parseShape, parseSpatialArgs, shapeToString, writeMethods inherited from class org.apache.solr.schema.FieldType
checkSupportsDocValues, createField, enableDocValuesByDefault, getAnalyzerProperties, getClassArg, getDefaultMultiValueSelectorForSort, getDocValuesFormat, getExistenceQuery, getFieldTermQuery, getNamedPropertyValues, getNonFieldPropertyArgs, getNumberType, getNumericSort, getPostingsFormat, getPrefixQuery, getRangeQuery, getRewriteMethod, getSetQuery, getSimilarity, getSimilarityFactory, getSingleValueSource, getSortedNumericSortField, getSortedSetSortField, getSortField, 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
-
Field Details
-
DEFAULT_FIELD_VALUES_ARRAY_LEN
- See Also:
-
FIELD_TYPE_INVARIANTS
-
grid
protected org.apache.lucene.spatial.prefix.tree.SpatialPrefixTree grid
-
-
Constructor Details
-
AbstractSpatialPrefixTreeFieldType
public AbstractSpatialPrefixTreeFieldType()
-
-
Method Details
-
setArgs
Description copied from class:FieldTypeInitializes the field type. Subclasses should usually overrideFieldType.init(IndexSchema, Map)which is called by this method. -
init
Description copied from class:FieldTypesubclasses should initialize themselves with the args provided and remove valid arguments. leftover arguments will cause an exception. Common boolean properties have already been handled.- Overrides:
initin classAbstractSpatialFieldType<T extends org.apache.lucene.spatial.prefix.PrefixTreeStrategy>
-
checkSchemaField
Description copied from class:FieldTypeCheck'sSchemaFieldinstances constructed using this field type to ensure that they are valid.This method is called by the
SchemaFieldconstructor to check that its initialization does not violate any fundamental requirements of theFieldType. Subclasses may choose to throw aSolrExceptionif invariants are violated by theSchemaField.- Overrides:
checkSchemaFieldin classFieldType- See Also:
-
getIndexAnalyzer
public org.apache.lucene.analysis.Analyzer getIndexAnalyzer()This analyzer is not actually used for indexing. It is implemented here so that the analysis UI will show reasonable tokens.- Overrides:
getIndexAnalyzerin classFieldType- See Also:
-
getQueryAnalyzer
public org.apache.lucene.analysis.Analyzer getQueryAnalyzer()Description copied from class:FieldTypeReturns the Analyzer to be used when searching fields of this type.This method may be called many times, at any time.
- Overrides:
getQueryAnalyzerin classFieldType- See Also:
-
newSpatialStrategy
Description copied from class:AbstractSpatialFieldTypeCalled fromAbstractSpatialFieldType.getStrategy(String)upon first use by fieldName. }- Specified by:
newSpatialStrategyin classAbstractSpatialFieldType<T extends org.apache.lucene.spatial.prefix.PrefixTreeStrategy>
-
newPrefixTreeStrategy
-