bleroy / lunr-core

A port of LUNR.js to .NET Core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Using the term presence feature doesn't work in some cases

mozahr opened this issue · comments

To Reproduce
making a search with term presence 'and' for example : "+dog +i" gives this error => An item with the same key has already been added. Key: name'

Expected behavior

I second this, I had the same issue. The expected behavior IMO should be to take both words, "dog" and "i", use them and return results containing both words. Currently it is throwing the error mentioned above.

Thanks for the report. I believe this is already fixed, I just need to publish a fixed package. I'll add a test and a fix soon if that's not the case.

Fixed. Will publish a new package with the fix.