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 Luc
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.
Simple, non-string types (such as long, double, date etc) are not analyzed by default.
That's why you can omit "index": "not_analyzed"
in the following mapping definition:
...
"mappings": {
"properties": {
"price": {
"type": "long",
"index": "not_analyzed"
}
}
}
...
But you might decide to not index this field at all:
...
"mappings": {
"properties": {
"price": {
"type": "long",
"index": "no"
}
}
}
...
As a result this field will not be searchable.
Find the resource here