Hi all - I see that _suggest API has been introduced recently although it
is still in experiment phase. I am wondering if there is a way to specify
filter in the suggest API. This is to ensure that the suggestions are
confined based on the specified filter.
I tried putting a top level filter (basically like below) but that just
filtered my query result and didn't apply for suggestions.
Any thoughts on how I can add a filter to the suggest request?
the short answer is "no" - there is no way to apply filters. I don't think
we are able to add those without killing performance.
simon
On Thursday, August 15, 2013 10:26:54 PM UTC+2, amit.soni wrote:
Hi all - I see that _suggest API has been introduced recently although it
is still in experiment phase. I am wondering if there is a way to specify
filter in the suggest API. This is to ensure that the suggestions are
confined based on the specified filter.
I tried putting a top level filter (basically like below) but that just
filtered my query result and didn't apply for suggestions.
Any thoughts on how I can add a filter to the suggest request?
Thanks for the quick reply Simon. In our use case, we try to main logical
partitions of data (say we index user account information and hence we want
to offer suggestions only relevant to user data).
the short answer is "no" - there is no way to apply filters. I don't think
we are able to add those without killing performance.
simon
On Thursday, August 15, 2013 10:26:54 PM UTC+2, amit.soni wrote:
Hi all - I see that _suggest API has been introduced recently although it
is still in experiment phase. I am wondering if there is a way to specify
filter in the suggest API. This is to ensure that the suggestions are
confined based on the specified filter.
I tried putting a top level filter (basically like below) but that just
filtered my query result and didn't apply for suggestions.
Any thoughts on how I can add a filter to the suggest request?
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.