Custom searchForItems() #6480
Replies: 2 comments 1 reply
-
https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/how-to/how-can-i-make-queries-within-the-middle-of-a-word/ would be an option for the regular search, not for search for facet values, but maybe with creativity a similar solution can be found. What type of queries do you want to get results for? maybe other settings can help as well |
Beta Was this translation helpful? Give feedback.
-
Hmm. My facet values look something like this:
These are indexed as keywords (because they have to be for faceted search), but the lack of substrings means I can't search for a sublevel, e.g. "orpiment". The data would be a good fit for the hierarchicalMenu but there's no searching at all for that component, and it doesn't seem possible to have multiple tree paths open at once, so due to those limitations I switched to rolling my own based on refinementList. I have a tractable number of facets so a client-side search against the facet options is quite reasonable, if that's an option. |
Beta Was this translation helpful? Give feedback.
-
I am trying to customize a
refinementList
(Vue InstantSearch). The:searchable
attribute isn't working very well for me - I need to use a regex to search at any point in the facet option item string, not just from the front. But I can't find any examples of customizing thesearchForItems()
function for the default slot override. Are there any examples of how to go about this?Beta Was this translation helpful? Give feedback.
All reactions