Searching term in subdocuments with elasticsearch


(cubuzoa) #1

I have a index document structure like below;{ "term":"some term",
"inlang":"some lang" "translations" : { {
"translation":"some translation", "outlang":"some lang",
"translations" : { { "translation":"some
translation 1" "outlang": "some lang 1"
"translations" : {...} } } }, ... } }I
want to find a translation in such documents. However, this translation can
exists at any level of this document. Is it possible to search term
dynamically by using elasticsearch?For example,{ "query": {
"*.translation":"searchterm" }}Thanks in advance

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Searching-term-in-subdocuments-with-elasticsearch-tp4024720.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.

--


(system) #2