pagefind icon indicating copy to clipboard operation
pagefind copied to clipboard

Allow setting the `OR` logic for filter values inside a filter group

Open nhoizey opened this issue 10 months ago • 1 comments

“Currently, the Default UI treats all filters as AND filters, meaning pages will only be shown if they match all toggled filters”: https://pagefind.app/docs/default-ui-filtering/

I would like to be able to select multiple filter values from a same filter group with an OR logic, having the AND logic still applied between filter groups.

For example, I would like to select (in pseudo code) pageType(Gear OR Gallery) AND location(America OR Africa).

The best would be to be able to define the logic for each filter group independently.

nhoizey avatar Apr 10 '24 14:04 nhoizey

@bglw what do you think about providing the option to change from all to any for filter on global level for PageFind UI?

tenmozes avatar May 05 '24 16:05 tenmozes