However, I don't have any ideas how to implement another feature.
The idea is next - you have another kind of "text fields" near all other filters where you are able to type and have an autocomplete by entity_labels. Currently, entity_labels filter is used in facets filters so that you have those as a checkboxes:
So, the question is, is it possible to implement the autocomplete search feature to set the filter by entity_labels?
It should work exactly like SearchBox component but only for setting a filter and of course making the request to have autocomplete suggestions.
So to be clear, in your example, when you type in the "Filter entity_labels" box you would like to have an autocomplete dropdown that shows suggestions for entity_labels?
Do you have any examples you can point me to where you've seen something like this implemented?
Alright, so if you have around 1 million then this definitely would require a server-side query, it would not be efficient to store these all client-side and filter them.
App Search has no concept of server-side "Facet Value Search", which makes this challenging.
To get something close to this, you'd possibly have to do something like the following:
In that case, the filter options you are showing come from your query and NOT from facets. So you wouldn't be able to show facet counts. Clicking on a result would apply a filter using addFilter or setFilter.
So, if I understand you right, I will have to make a custom query suggestions with an autocomplete suggestion, and then when I choose some options, the addFilter or setFilter is called and its good to go ?
Roman, that's amazing! I was worried I left you hanging there, but it seems like it actually worked out. Nice work! Thank you for sharing for future folks. Hopefully we can integrate something like this into Search UI.
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.