Hello,
i have a little problem with elastic search :
My doc looks like : (serialized as JSON doc)
<users>
<user>
<name> Brandon </name>
<age> 10 </age>
</user>
<user>
<name> Monica </name>
<age> 14 </age>
</user>
</users>
My search request :
{
"fields": ["user.age"],
"query": {
"bool" : {
"must" :
{ "multi_match" : {
"query" : "Brandon",
"fields" : [ "*.name*.$"] }
}
}
}
}
I got : 10 and 14 as result (all fields user.age in the doc)
I only want to get 14 ( the age of brandon)
Can we only get the field about the search field ?
( sorry for my english, i'm not ! :p )
sorry for double post, i not subscibe first time....
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/ca65dff4-cd98-41b3-a098-e9e59dda1f5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.