1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-08-25 06:52:06 +02:00

add term de-duplication to the encoder by also keeping the context chain

This commit is contained in:
Thomas Wilkerling
2025-04-16 09:14:17 +02:00
parent 77af8c4941
commit 75ae9a0285
38 changed files with 3986 additions and 3903 deletions

View File

@@ -48,6 +48,9 @@ if(!build_light && !build_compact) describe("Worker", function(){
result = await index.search("cute cat");
expect(result).to.eql([6, 5, 4, 3, 2, 1, 0]);
result = await index.search("cute");
expect(result).to.eql([6, 5, 4, 3, 2, 1, 0]);
result = await index.search("cudi tok-kat");
expect(result).to.eql([1]);
});