Using Elasticsearch 1.4.3
I went through the docs but I'm not sure exactly. But I figure that integer, long, float, double etc... are indexed as not_analyzed by Lucene right?
Thanks
Elasticsearch supports a number of different data types for the fields in a document: Core data types: String, Date, Numeric (long, integer, short, byte, double, and float), Boolean, Binary. Complex data types: Array: Array support does not require a dedicated type. Object: Object for single JSON objects.
scaled_float. A floating point number that is backed by a long , scaled by a fixed double scaling factor.
raw field is a keyword version of the city field. The city field can be used for full text search. The city.raw field can be used for sorting and aggregations. You can add multi-fields to an existing field using the update mapping API. A multi-field mapping is completely separate from the parent field's mapping.
From this link you have this statement:
The other simple types (such as
long
,double
,date
etc) also accept the index parameter, but the only relevant values areno
andnot_analyzed
, as their values are never analyzed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With