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/currencies-exchange-rates.html
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.schema.FieldType
FieldType.DefaultAnalyzer, FieldType.MultiValueSelector
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DEFAULT_PRECISION_STEP
Deprecated.protected static String
FIELD_SUFFIX_AMOUNT_RAW
Deprecated.protected static String
FIELD_SUFFIX_CURRENCY
Deprecated.protected static String
FIELD_TYPE_AMOUNT_RAW
Deprecated.protected static String
FIELD_TYPE_CURRENCY
Deprecated.protected static String
PARAM_PRECISION_STEP
Deprecated.-
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, schema
-
Fields 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, typeName
-
Fields 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 Constructor Description CurrencyField()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
inform(IndexSchema schema)
Deprecated.When index schema is informed, add dynamic fields "*____currency" and "*____amount_raw".protected void
init(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, write
-
Methods inherited from class org.apache.solr.schema.FieldType
checkSupportsDocValues, createField, createField, 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, storedToIndexed, storedToReadable, supportsAnalyzers, toExternal, toInternal, toNativeType, toObject, toObject, toString, treatUnboundedRangeAsExistence, unmarshalBase64SortValue, unmarshalSortValue, unmarshalStringSortValue, useDocValuesAsStored, write
-
-
-
-
Field Detail
-
FIELD_SUFFIX_AMOUNT_RAW
protected static final String FIELD_SUFFIX_AMOUNT_RAW
Deprecated.- See Also:
- Constant Field Values
-
FIELD_SUFFIX_CURRENCY
protected static final String FIELD_SUFFIX_CURRENCY
Deprecated.- See Also:
- Constant Field Values
-
FIELD_TYPE_AMOUNT_RAW
protected static final String FIELD_TYPE_AMOUNT_RAW
Deprecated.- See Also:
- Constant Field Values
-
FIELD_TYPE_CURRENCY
protected static final String FIELD_TYPE_CURRENCY
Deprecated.- See Also:
- Constant Field Values
-
PARAM_PRECISION_STEP
protected static final String PARAM_PRECISION_STEP
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_PRECISION_STEP
protected static final String DEFAULT_PRECISION_STEP
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
init
protected void init(IndexSchema schema, Map<String,String> args)
Deprecated.Description copied from class:FieldType
subclasses 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:
init
in classCurrencyFieldType
-
inform
public void inform(IndexSchema schema)
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
IndexSchema
provided by theschema
parameter of an event (e.g., a newFieldType
was added, etc.- Specified by:
inform
in interfaceSchemaAware
- Overrides:
inform
in classCurrencyFieldType
- Parameters:
schema
- TheIndexSchema
instance that inform of the update to.
-
-