I'd like to know a bit more about the next situation. I'm trying to index a document like this:
PUT 'server/index/test/1'
{
to: "to1",
to: "to2",
to: "to3"
}
Seemingly, elasticsearch swallows this document. Ok , no problem. Nevertheless, I would like to know which are the differences between an array of values.
How the searches are made?
EDITED:
I've tried this searches:
GET 'server/index/test/_search?q=to:to1&pretty'
GET 'server/index/test/_search?q=to:to2&pretty'
GET 'server/index/test/_search?q=to:to3&pretty'
and ES shows me the document after each execution:
{
"took" : 44,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : 1.0,
"hits" : [ {
"_index" : "index",
"_type" : "test",
"_id" : "1",
"_score" : 1.0,
"_source":
{
to: "to1",
to: "to2",
to: "to3"
}
} ]
}
}
Seemingly, ES indexes every repeated field value also... Is it really like this? Or I'm performing or doing something wrong?