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:
@@ -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]);
|
||||
});
|
||||
|
Reference in New Issue
Block a user