SphinxFacetingExample icon indicating copy to clipboard operation
SphinxFacetingExample copied to clipboard

New facet give wrong data on multiple selection

Open Hector68 opened this issue 7 years ago • 2 comments

http://demos.sphinxsearch.com/SphinxFacetingExample/facetpricesnew.php Case: -> I click on category ckeckbox What I wate: -> I have posibiliti to chose other category checkout What I am seeing -> Many categories is hidden. Facet has worked wrong

Hector68 avatar Nov 10 '17 13:11 Hector68

Hi, the multiple checkbox is there to show the categories are stored in a mva. Clicking on one applis the filter (filter by category x), so some will not be showed anymore (as not all items have category x). The javascript triggers the submit when you check something (either radio or checkbox). If you want to be able to select multiple values, just implement a different event on checkbox inputs. After submit, this will still not show you all category values. If you want to retain all facet values to be showed, check the last example, but this one doesn't perform a single query to return both result and facets.

adriannuta avatar Nov 10 '17 13:11 adriannuta

I have understand you. FASET work very fast, unfortunately, one not work with multi selection

Hector68 avatar Nov 10 '17 14:11 Hector68