Daniel-KM / Omeka-S-module-AdvancedSearch

Module for Omeka S that improves search with new fields, auto-suggest, filters, facets, specific pages, etc.
Other
3 stars 2 forks source link

Using 'and' joiner instead of 'or' for multiple facets #10

Open adehner opened 10 months ago

adehner commented 10 months ago

When selecting multiple facet values for a single property, the search appears to be joined with OR instead of AND. Is this expected behavior with the internal querier? Example below, to help explain my question.

When I select the value "Labor & Class", I get all items (count of 6) with the "Type of Social Identifier = "Labor & Class.

Screenshot 2023-11-13 at 2 10 56 PM

When I add the facet value "Family Structures", I would like to see the items that have both values. Instead I see items (count of 15) that one value or the other.

Screenshot 2023-11-13 at 2 11 24 PM
Daniel-KM commented 10 months ago

Yes, some want a "and" and some want "or." So maybe an option should be added to the config in a future version.

adehner commented 10 months ago

If I wanted to modify the operator, can you point me to the file(s) I would need to edit?