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?
serverindex, but the response somehow shows that the document is in thelivingindex. Weird, not sure how that's possible.servermeans the url to ES server, that's not the index. The index isindex, and the collection istestsourcewithtofields which are not even double-quoted strings. Which tool/plugin are you using to send your queries?curltool.Bad string(next to the firsttofield) warning when retrieving the search results...