panosc-eu / search-api

PaN search api for WP3 and WP4
BSD 2-Clause "Simplified" License
4 stars 4 forks source link

AND operator seems broken for parameters #52

Closed jirzi0 closed 2 years ago

jirzi0 commented 3 years ago

Describe the bug Searching for multiple items using the 'and' operator appears to be broken for parameters.

To Reproduce Test dataset with parameter A and parameter B is not returned when parameter A and parameter B are queried using the AND operator, the dataset is returned when quering either parameter A or parameter B as well as when using the OR operator.

Expected behavior Test dataset from above should be returned when using the AND operator.

EDIT: bug is not isolated to parameters, doesn't appear to be working at all. EDIT: indeed works on things other than parameter. Tried searching for type AND title (using ilike) and got the wrong impression, it was just the ilike operator not working as I expected. #56