Closed Marcus842 closed 2 years ago
Make sure CategoryList is indexed correctly with the index inspector. Should be an array of strings in the Json. Then something like https://github.com/Epinova/Epinova.Elasticsearch#advanced-filtering should do the trick.
Hi,
I have a search-page where I want the user to be able to filter the result based on selected categories
If I have some categories eg. "A", "B", "C", "D" and the user selects "A" and "C". I want to displays all pages that belong to "A" or "C" or "A" and "C". So a page that that has "A" and "B" would also be valid.
All pages has a category property that looks like this.
I have looked at https://github.com/Epinova/Epinova.Elasticsearch But wasn't able to find a example that covers my case.
How can I accomplish this?