minicomp / wax

Jekyll based framework for minimal exhibitions with IIIF 🐝
https://minicomp.github.io/wax/
MIT License
161 stars 84 forks source link

Update search-ui.js : typo in query config #175

Closed awoods closed 10 months ago

awoods commented 10 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"'.

See: https://github.com/weixsong/elasticlunr.js#522-boolean-model

To test on the demo site:

mnyrop commented 10 months ago

thanks @awoods!