Hello dear all,
the last days I struggle with queries and structures to index and query
stuff like this.
{"project" :
{
"set1" : {
"title" : "A",
"id" : "1234",
"fulltext" : "Some Text"
},
"set2" : {
"title": "Believe",
"id": "5678",
"fulltext": "inside the fied"
},
"set3" : {
"title": "imagination",
"id": "9",
"fulltext": "makes trouble"
}
}
}
So, when I'm searching for "inside the field" I just want to get back all
field from "set1".
The problem is, that the exact name of the field "set*" ist not known. I
know that the stuff I want to do is a little bit cruel. But it would be
nice to get it working.
I tried queries like this:
{
"query" : {
"query_string" : {
"query" : "praedicatum"
}
},
"_source" : {
"includes" : [ "project" ],
"excludes" : [ null ]
}
}
But in this way, of course I get back the all entries of the field
"project".
thanks to you!
--
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/594a7efd-a12b-40ec-a13f-63d869350d5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.