mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-08-26 15:25:21 +02:00
minor refactoring to align with the documentation
This commit is contained in:
@@ -42,8 +42,8 @@ describe("Scoring", function(){
|
||||
|
||||
expect(index.search("1")).to.eql([0]);
|
||||
expect(index.search("one")).to.eql([1, 2]);
|
||||
expect(index.search("one two")).to.eql([2]); // 1: no bi-directional
|
||||
expect(index.search("four one")).to.eql([1]); // 2: no bi-directional
|
||||
expect(index.search("one two")).to.eql([1]); // 2 => no bi-directional
|
||||
expect(index.search("four one")).to.eql([2]); // 1 => no bi-directional
|
||||
|
||||
index = new Index({
|
||||
tokenize: "strict",
|
||||
|
Reference in New Issue
Block a user