nextapps-de / flexsearch

Next-Generation full text search library for Browser and Node.js
Apache License 2.0
12.54k stars 492 forks source link

boost enhancements #370

Open benmccann opened 1 year ago

benmccann commented 1 year ago

I'd like to apply boost, but need to use it with the forward tokenizer.

Also, the function input doesn't give me enough power. I need to boost based on whether the term was found in the URL, title, contents, etc. but boost just gives a bag of words. If it could give me either the document object or document ID then I could boost appropriately.

Finally, I also have a documentation request. It's unclear what words[] represents in boost currently. It says it's "an array of all words". However it's not clear to me if this is referring to all the words in the document, all the words in the index, etc.