Hi, I see that lunr uses BM25 algorithm for scoring which is independent of the proximity of words in the document. But while searching for multiple words, is their proximity taken into account?
i.e,
if I search for "integration test", would the ranking algorithm consider how close the two words are located in the document? If not, how can I achieve this while querying? Is it the only scoring algorithm supported by lunr?
Lunr does not currently take into account the proximity of words. This is something that I would like to eventually support but I can't provide any timeline as to when that feature would be supported.
Hi, I see that lunr uses BM25 algorithm for scoring which is independent of the proximity of words in the document. But while searching for multiple words, is their proximity taken into account? i.e, if I search for "integration test", would the ranking algorithm consider how close the two words are located in the document? If not, how can I achieve this while querying? Is it the only scoring algorithm supported by lunr?