@@ -140,7 +140,7 @@ Array [
140140 },
141141 ],
142142 " refIndex" : 0 ,
143- " score" : 1 ,
143+ " score" : 8.569061098350962e-12 ,
144144 } ,
145145 Object {
146146 " item" : Object {
@@ -159,7 +159,7 @@ Array [
159159 },
160160 ],
161161 " refIndex" : 2 ,
162- " score" : 1 ,
162+ " score" : 1.4901161193847656e-8 ,
163163 } ,
164164]
165165` ;
@@ -468,45 +468,45 @@ exports[`Searching using extended search Search: literal match with fuzzy match
468468Array [
469469 Object {
470470 " item" : Object {
471- " text" : " hello word " ,
471+ " text" : " indeed fine hello foo " ,
472472 },
473473 " matches" : Array [
474474 Object {
475475 " indices" : Array [
476476 Array [
477477 0 ,
478- 4 ,
478+ 10 ,
479+ ],
480+ Array [
481+ 18 ,
482+ 20 ,
479483 ],
480484 ],
481485 " key" : " text" ,
482- " value" : " hello word " ,
486+ " value" : " indeed fine hello foo " ,
483487 },
484488 ],
485- " refIndex" : 0 ,
486- " score" : 0.3205001277290518 ,
489+ " refIndex" : 2 ,
490+ " score" : 1.4901161193847656e-8 ,
487491 } ,
488492 Object {
489493 " item" : Object {
490- " text" : " indeed fine hello foo " ,
494+ " text" : " hello word " ,
491495 },
492496 " matches" : Array [
493497 Object {
494498 " indices" : Array [
495499 Array [
496500 0 ,
497- 10 ,
498- ],
499- Array [
500- 18 ,
501- 20 ,
501+ 4 ,
502502 ],
503503 ],
504504 " key" : " text" ,
505- " value" : " indeed fine hello foo " ,
505+ " value" : " hello word " ,
506506 },
507507 ],
508- " refIndex" : 2 ,
509- " score" : 0.7071067811865476 ,
508+ " refIndex" : 0 ,
509+ " score" : 0.3205001277290518 ,
510510 } ,
511511]
512512` ;
@@ -515,45 +515,45 @@ exports[`Searching using extended search Search: literal match with regular matc
515515Array [
516516 Object {
517517 " item" : Object {
518- " text" : " indeed fine hello foo " ,
518+ " text" : " how are you " ,
519519 },
520520 " matches" : Array [
521521 Object {
522522 " indices" : Array [
523523 Array [
524- 0 ,
525- 10 ,
526- ],
527- Array [
528- 18 ,
529- 20 ,
524+ 4 ,
525+ 6 ,
530526 ],
531527 ],
532528 " key" : " text" ,
533- " value" : " indeed fine hello foo " ,
529+ " value" : " how are you " ,
534530 },
535531 ],
536- " refIndex" : 2 ,
537- " score" : 0.7071067811865476 ,
532+ " refIndex" : 1 ,
533+ " score" : 9.287439764962262e-10 ,
538534 } ,
539535 Object {
540536 " item" : Object {
541- " text" : " how are you " ,
537+ " text" : " indeed fine hello foo " ,
542538 },
543539 " matches" : Array [
544540 Object {
545541 " indices" : Array [
546542 Array [
547- 4 ,
548- 6 ,
543+ 0 ,
544+ 10 ,
545+ ],
546+ Array [
547+ 18 ,
548+ 20 ,
549549 ],
550550 ],
551551 " key" : " text" ,
552- " value" : " how are you " ,
552+ " value" : " indeed fine hello foo " ,
553553 },
554554 ],
555- " refIndex" : 1 ,
556- " score" : 1 ,
555+ " refIndex" : 2 ,
556+ " score" : 1.4901161193847656e-8 ,
557557 } ,
558558]
559559` ;
@@ -601,7 +601,7 @@ Array [
601601 },
602602 ],
603603 " refIndex" : 2 ,
604- " score" : 1 ,
604+ " score" : 1.4901161193847656e-8 ,
605605 } ,
606606]
607607` ;
0 commit comments