Posted on 06/07/2016 16:51:38
Well, it was not designed for that purpose...
"Product name contains q[]" and q = bicma,cocacol,mayonai should then search for "productname contains bicma* OR productname contains cocacol* OR productname contains mayonai*"
Contains works more like this: q=bicma cocacol mayonai and then that it will do the ord on the fields...
DW uses a TokenStream analyzer to do the job for contains queries - it does that once for the value regardless if it is a string or an array of values.
I have just made a small test where I changed the search to use the analyzer once for each string in the array instead of once on the array and it seems to do what you expect. But you might get some very unexpected results if you do like this:
q=bicma cocacol,mayonai.
You might be able to work around the issue right now by doing like this: q=bicma ,cocacol ,mayonai (adding an extra space)
Anyways, added my change to 8.8.1 next hotfix.