Answer the question
In order to leave comments, you need to log in
How to design a Javascript part for faceted search (active filtering)?
As a result, it should work on ajax , these are the oils
I have
1 filters render PHP in front of each filter <span data-facet="model.filtermane.count">
2 the "search" button makes a request to the REST controller which, in addition to the results, returns facet for each filter
3 js library with 2-way-binding renders from reasponse .searchResults is a list of search results, and from reasponse.facets it updates <span data-facet="model.filtermane.count">
- i.e. updates the number of hits against each filter and deactivates it if 0
am I on the right track?
I checked the sites here and here and a couple more
so the server generally returns html
do I need to assign this logic to js as I wrote above?
ebay - generally reloads the page
please tell me the implementation path and give links to sites with really good faceted search in order to understand what it is striving for
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question