Package org.apache.solr.schema
Class CurrencyField
java.lang.Object
org.apache.solr.schema.FieldProperties
org.apache.solr.schema.FieldType
org.apache.solr.schema.CurrencyFieldType
org.apache.solr.schema.CurrencyField
- All Implemented Interfaces:
org.apache.lucene.util.ResourceLoaderAware,SchemaAware
@Deprecated
public class CurrencyField
extends CurrencyFieldType
implements SchemaAware, org.apache.lucene.util.ResourceLoaderAware
Deprecated.
Field type for support of monetary values.
See https://solr.apache.org/guide/solr/latest/indexing-guide/currencies-exchange-rates.html
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.schema.FieldType
FieldType.DefaultAnalyzer, FieldType.MultiValueSelector -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringDeprecated.protected static final StringDeprecated.protected static final StringDeprecated.protected static final StringDeprecated.protected static final StringDeprecated.protected static final StringDeprecated.Fields inherited from class org.apache.solr.schema.CurrencyFieldType
DEFAULT_DEFAULT_CURRENCY, DEFAULT_RATE_PROVIDER_CLASS, fieldSuffixAmountRaw, fieldSuffixCurrency, fieldTypeAmountRaw, fieldTypeCurrency, PARAM_DEFAULT_CURRENCY, PARAM_FIELD_SUFFIX_AMOUNT_RAW, PARAM_FIELD_SUFFIX_CURRENCY, PARAM_RATE_PROVIDER_CLASS, schemaFields 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 TypeMethodDescriptionvoidinform(IndexSchema schema) Deprecated.When index schema is informed, add dynamic fields "*____currency" and "*____amount_raw".protected voidinit(IndexSchema schema, Map<String, String> args) Deprecated.subclasses should initialize themselves with the args provided and remove valid arguments.Methods inherited from class org.apache.solr.schema.CurrencyFieldType
checkSchemaField, createFields, getConvertedValueSource, getCurrency, getDefaultCurrency, getExistenceQuery, getFieldQuery, getProvider, getSortField, getSpecializedRangeQuery, getUninversionType, getValueSource, inform, isPolyField, writeMethods inherited from class org.apache.solr.schema.FieldType
checkSupportsDocValues, createField, createField, createFieldsFromAllValues, enableDocValuesByDefault, getAnalyzerProperties, getClassArg, getDefaultMultiValueSelectorForSort, getDocValuesFormat, getFieldTermQuery, getIndexAnalyzer, getNamedPropertyValues, getNonFieldPropertyArgs, getNumberType, getNumericSort, getPostingsFormat, getPrefixQuery, getQueryAnalyzer, 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, setArgs, setIndexAnalyzer, setIsExplicitAnalyzer, setIsExplicitQueryAnalyzer, setQueryAnalyzer, setSimilarity, shouldCreateFieldsFromAllValues, storedToIndexed, storedToReadable, supportsAnalyzers, toExternal, toInternal, toNativeType, toObject, toObject, toString, treatUnboundedRangeAsExistence, unmarshalBase64SortValue, unmarshalSortValue, unmarshalStringSortValue, useDocValuesAsStored, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.util.ResourceLoaderAware
inform
-
Field Details
-
FIELD_SUFFIX_AMOUNT_RAW
Deprecated.- See Also:
-
FIELD_SUFFIX_CURRENCY
Deprecated.- See Also:
-
FIELD_TYPE_AMOUNT_RAW
Deprecated.- See Also:
-
FIELD_TYPE_CURRENCY
Deprecated.- See Also:
-
PARAM_PRECISION_STEP
Deprecated.- See Also:
-
DEFAULT_PRECISION_STEP
Deprecated.- See Also:
-
-
Constructor Details
-
CurrencyField
public CurrencyField()Deprecated.
-
-
Method Details
-
init
Deprecated.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 classCurrencyFieldType
-
inform
Deprecated.When index schema is informed, add dynamic fields "*____currency" and "*____amount_raw".When index schema is informed, get field types for the configured dynamic sub-fields
Informs the
IndexSchemaprovided by theschemaparameter of an event (e.g., a newFieldTypewas added, etc.- Specified by:
informin interfaceSchemaAware- Overrides:
informin classCurrencyFieldType- Parameters:
schema- TheIndexSchemainstance that inform of the update to.
-
CurrencyFieldType