Due to accessibility levels in my organization, when performing a global
search across all indices within Elasticsearch, I need to apply different
filters for different indices and then combine this into one results pool.
I am wondering whether that is possible in one huge query, so that I don't
perform separate queries per index?
To clarify -- let's say I have a Post and Comment models. When fetching
results, I should only match Comments by commenter_id whereas Post by
poster_id. I have separate indices for posts and comments. Now, I'd just
perform two queries, filtering separately and then combine results. But
that's slow. Does anyone have any ideas?
Due to accessibility levels in my organization, when performing a global
search across all indices within Elasticsearch, I need to apply different
filters for different indices and then combine this into one results pool.
I am wondering whether that is possible in one huge query, so that I don't
perform separate queries per index?
To clarify -- let's say I have a Post and Comment models. When fetching
results, I should only match Comments by commenter_id whereas Post by
poster_id. I have separate indices for posts and comments. Now, I'd just
perform two queries, filtering separately and then combine results. But
that's slow. Does anyone have any ideas?
Thanks!
Antek
--
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 elasticsearch+unsubscribe@googlegroups.com <javascript:_e({},
'cvml', 'elasticsearch%2Bunsubscribe@googlegroups.com');>.
For more options, visit https://groups.google.com/groups/opt_out.
Due to accessibility levels in my organization, when performing a global
search across all indices within Elasticsearch, I need to apply different
filters for different indices and then combine this into one results pool.
I am wondering whether that is possible in one huge query, so that I
don't perform separate queries per index?
To clarify -- let's say I have a Post and Comment models. When fetching
results, I should only match Comments by commenter_id whereas Post by
poster_id. I have separate indices for posts and comments. Now, I'd just
perform two queries, filtering separately and then combine results. But
that's slow. Does anyone have any ideas?
Due to accessibility levels in my organization, when performing a global
search across all indices within Elasticsearch, I need to apply different
filters for different indices and then combine this into one results pool.
I am wondering whether that is possible in one huge query, so that I
don't perform separate queries per index?
To clarify -- let's say I have a Post and Comment models. When fetching
results, I should only match Comments by commenter_id whereas Post by
poster_id. I have separate indices for posts and comments. Now, I'd just
perform two queries, filtering separately and then combine results. But
that's slow. Does anyone have any ideas?
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.