We assume that in our schema we have a user that has many posts. We want to
search if the title or the description of a user's post contains a word and
return those posts.
Is it something doable with ES?
However the above returns the whole user document (/object) once the
multi_match criteria are true and not filtering each post in posts. I tried
the same with nested as filter but I not much of a difference.
My first thought about it is that if you are searching for posts then index posts!
A posts can contain many attributes such as the user who wrote the post.
Le 27 novembre 2013 at 23:16:57, Dionysis Lorentzos (ddl449@gmail.com) a écrit:
Hi all,
I have a question on ES use.
We assume that in our schema we have a user that has many posts. We want to search if the title or the description of a user's post contains a word and return those posts.
Is it something doable with ES?
However the above returns the whole user document (/object) once the multi_match criteria are true and not filtering each post in posts. I tried the same with nested as filter but I not much of a difference.
If I understand your issue correctlu, that feature is not yet supported:
Cheers,
Ivan
On Wed, Nov 27, 2013 at 2:20 PM, David Pilato david@pilato.fr wrote:
My first thought about it is that if you are searching for posts then
index posts!
A posts can contain many attributes such as the user who wrote the post.
We assume that in our schema we have a user that has many posts. We want
to search if the title or the description of a user's post contains a word
and return those posts.
Is it something doable with ES?
However the above returns the whole user document (/object) once the
multi_match criteria are true and not filtering each post in posts. I tried
the same with nested as filter but I not much of a difference.
On Wed, Nov 27, 2013 at 2:20 PM, David Pilato <da...@pilato.fr<javascript:>
wrote:
My first thought about it is that if you are searching for posts then
index posts!
A posts can contain many attributes such as the user who wrote the post.
Le 27 novembre 2013 at 23:16:57, Dionysis Lorentzos (ddl...@gmail.com<javascript:>)
a écrit:
Hi all,
I have a question on ES use.
We assume that in our schema we have a user that has many posts. We want
to search if the title or the description of a user's post contains a word
and return those posts.
Is it something doable with ES?
However the above returns the whole user document (/object) once the
multi_match criteria are true and not filtering each post in posts. I tried
the same with nested as filter but I not much of a difference.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.