nyeholt / silverstripe-solr

SilverStripe and Solr integration ssaumodule
BSD 3-Clause "New" or "Revised" License
19 stars 18 forks source link

Add facet search OR grouping and exclude facet counts from matching filters #31

Open stephenmcm opened 10 years ago

stephenmcm commented 10 years ago

This adds tags to facets and their related filters, allowing for OR rather than AND grouping of facets/filters.

With facets and filters now tagged to each other, a filter of the field 'State' won't effect the display of the facet count for 'State', other filters or search terms will though.

The effect of this is that a user can easily select 'Victoria' search and then further select 'Queensland' to see result containing either. This is likely a better default stance to take as most users will expect the selections to be inclusive rather than exclusive.

nyeholt commented 10 years ago

Not convinced it should be the default behaviour... given the existing functionality behaves in a particular way, this is a pretty major change to make (ie backwards compatibility breaking), as I can't see a way to easily change it back to the current behaviour.