According to Low Search's documentation on inclusive values:
I should be able to have the AND operator enabled when searching fields.
So I'm trying to filter my choices from a grid field column:
atttributen:waarde
This grid can have many rows and with low_search I want to be able to search for entries which have all the values which I have selected in my low_search:form
In my low_search form I've added this input:
<input type="hidden" name="require_all" value="search:attributen:waarde">
And have several inputs like this:
< input
class="form-check-input filter"
name='search:attributen:waarde[]'
type="checkbox"
value='xxxx_val_1'>
<input
class="form-check-input filter"
name='search:attributen:waarde[]'
type="checkbox"
value='xxxx_val_2'>
But strangely enough I'm experiencing different kind of behaviour when getting the results.
The below query string is being created automatically from the form submit, which I've managed to create with an ajax call:
ajax-results?search:attributen:waarde=xxxx_val_1|xxxx_val_2&require_all=search:attributen:waarde
but the above gives an empty result, whereas when I manually change the query to
ajax-results?search:attributen:waarde=xxxx_val_1&&xxxx_val_2
then the resultspage DOES give me results.
According to the documentation, the first query should return the same results as the second query.
When I don't use the require_all parameter, then I get results of entries with the OR (|) operator, but I'm actually trying to achieve to get entries which have specifically BOTH of the values inside the grid column.
Does anybody have an idea what I'm missing here? Thanks in advance!
Using EE 5.3.2, LowSearch 6.2.1