Are numbers: integers, long, floating, etc .... in Elasticsearch not_analyzed?

Using Elasticsearch 1.4.3

I looked through the docs, but I'm definitely not sure. But I believe that integer, long, float, double, etc. Indexed as not_analyzed by Lucene ?? //

thank

+4
source share
2 answers

From this link , you have this statement:

Other simple types (e.g., long, double, dateetc.) also take the index parameter, but only the corresponding values are no, and not_analyzedsince their values are never analyzed.

+10
source

, ( long, double, date ..) .

"index": "not_analyzed" :

...
"mappings": {
    "properties": {
        "price": {
            "type": "long",
            "index": "not_analyzed"
        }
    }
}
...

:

...
"mappings": {
    "properties": {
        "price": {
            "type": "long",
            "index": "no"
        }
    }
}
...

.

0

All Articles