Re: Query nested document

2014-10-21 Thread aurelien . mazoyer
Hi András, Thank you for you answer. I read the links you sent and I think the following sentence : "Lastly, it is not possible to “cross reference” between nested documents. One nested doc cannot “see” another nested doc’s properties. For example, you are not able to filter on “A.name” but

Re: Query nested document

2014-10-20 Thread András Péteri
Hello Aurélien, I believe the approach you described is what Elasticsearch is taking with nested documents, in addition to indexing parent and child documents in a single block. See the "sidebar" at the bottom of [1] and the sections labeled "nested" of [2] for more details. Michael's blog post o

Re: Query nested document

2014-10-20 Thread Aurélien MAZOYER
Hi again, Maybe the only way to do this is to use nested documents and to index data both in child documents and in flattened form in the parent document. Then we can run the two different queries. Any other (better) idea? Regards, Aurélien Le 20/10/2014 13:40, aurelien.mazo...@francelabs.

Query nested document

2014-10-20 Thread aurelien . mazoyer
Hi, I have question regarding nested document queries: For example, let’s say that I have the following book: Book _title: Nested document for dummies Chapter1_Title: Introduction Chapter1_Content: Nested documents are fun. Chapter2_Title: Which technology should I use? Chapter2_Content: Lucene o