There is a search-as-you-type fields since 7.x but is it possible to get similar results for filtered aggregations for autocomplete?
Example you have documents with categories on it:
holiday
vacation
images
There are thousands of different categories in different combinations.
What would be the best approach to filter and look for a term not with a prefix but also with infix. I see that it is mentioned on the search as you type documentation page but there is no example or key for it.
Searching for documents is easy with search-as-you-type, but I am interested in getting a list of keywords matching any of the ngrams of a specific field and not the documents.
I hope the question is clear. There is a query filter to filter the already chosen categories. There are in total 46150 unique categories at this time.
I am looking to alter that query to only show the terms based on the provided search term, I am currently looking at a regex filter but the first letter is Uppercase for Images so .mag. wont give a result for that option. Curious how others would get to that solution.
@spinscale maybe you have a bright idea about this?
soooooo, given it's 30 degrees I might need another take on understanding
First, I assume the category field is an array? Second, your current problem is, that you are filtering for above categories, but then you are not interested in those, because there are other elements in the document, that you want to display?
Making everything lowercase divided with __ with the original and a lowercase variant value. Now I can use the script, the variant. But that piece is going to be a stored script since there are a lot of visitors.
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.