lucaong / minisearch

Tiny and powerful JavaScript full-text search engine for browser and Node
https://lucaong.github.io/minisearch/
MIT License
4.67k stars 133 forks source link

Fix unwanted side effects of boost, and cascading of combineWith #200

Closed lucaong closed 1 year ago

lucaong commented 1 year ago

The boost search option was mistakenly causing boosted fields to be included in search, even when they were not in the fields search option.

The combineWith search option was not properly taking its default from the SearchOptions argument when using search with a QuerySpec tree.

Both issues are fixed by this commit, that also adds corresponding tests.

Resolves: #199