Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Nov 27, 2023
Merged

Commits on Nov 16, 2023

  1. Update search-ui.js : typo in query config

    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](https://minicomp.github.io/wax/search/), a search with "portrait" returns 3 results.
    * a search with "portrait Majnun" currently returns 4 results (`OR` behavior)
    * the search should return 1 result (`AND` behavior)
    awoods authored Nov 16, 2023
    Configuration menu
    Copy the full SHA
    9c22991 View commit details
    Browse the repository at this point in the history