Closed awoods closed 11 months ago
The intent of the code is to perform an AND query with the terms provided in the search. However, there is a typo in the search fields configuration that results in the default OR behavior. We should be using bool: "AND" instead of 'boolean: "AND"'.
AND
OR
bool: "AND"
See: https://github.com/weixsong/elasticlunr.js#522-boolean-model
To test on the demo site:
thanks @awoods!
The intent of the code is to perform an
AND
query with the terms provided in the search. However, there is a typo in the search fields configuration that results in the defaultOR
behavior. We should be usingbool: "AND"
instead of 'boolean: "AND"'.See: https://github.com/weixsong/elasticlunr.js#522-boolean-model
To test on the demo site:
OR
behavior)AND
behavior)