search_mode + collection[] params -- conflict?
Greetings. I have a search form that has a hidden, hard-coded input for the collection[] value. This works fine until I try to use the search_mode param, which causes the results to disregard the collection parameter.
Here's my code:
{exp:low_search:form
result_page="search/test"
secure="no"
}
{/exp:low_search:form}
{exp:low_search:results
query="{segment_3}"
disable="{ee_channel_full_disable}"
}
{title}
{/exp:low_search:results}
Am I misusing these parameters? It appears from looking at http://gotolow.com/addons/low-search/... that they should be interoperable.
Replies
Low 24 Dec 2013 10:20
There definitely shouldn't be a conflict. The two parameters are part of the same filter, and should work together.
Can you re-post your code, as it is missing from getsat. You can use http://pastie.org/ or http://pastebin.com/ for large chunks of code. Also mention your version info: EE, LS and PHP.
Also, what results are you expecting to get, and what are you getting instead? If you can, post the encoded URI bit for both queries.
Jonathan Kelly 26 Dec 2013 16:29
Here is the EE code snippet: http://pastie.org/private/aglrdkngj35...
The "bishops" collection contains ~150 records.
When the search is run exactly as it is in the pastie (resulting query: eyJyZXN1bHRfcGFnZSI6InNlYXJjaFwvdGVzdCIsImtleXdvcmRzIjoic2FuIGZyYW5jaXNjbyIsImNvbGxlY3Rpb24iOiJiaXNob3BzIiwic2VhcmNoX21vZGUiOiJhbGwifQ), the results are legitimate.
When I edit the search_mode value to be "any" (resulting query: eyJyZXN1bHRfcGFnZSI6InNlYXJjaFwvdGVzdCIsImtleXdvcmRzIjoic2FuIGZyYW5jaXNjbyIsImNvbGxlY3Rpb24iOiJiaXNob3BzIiwic2VhcmNoX21vZGUiOiJhbnkifQ), results from other channels show up.
Low 27 Dec 2013 08:46
Thanks. What are your EE, PHP and Low Search versions?