Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are numbers: integer, long, float etc... in Elasticsearch not_analyzed?

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

like image 310
user432024 Avatar asked Feb 20 '15 21:02

user432024


People also ask

What is data type in Elasticsearch?

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.

What is scaled_ float?

scaled_float. A floating point number that is backed by a long , scaled by a fixed double scaling factor.

What is Elasticsearch field?

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.


1 Answers

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 are no and not_analyzed, as their values are never analyzed.

like image 148
Andrei Stefan Avatar answered Oct 14 '22 16:10

Andrei Stefan