Commit 507994e
committed
fix: Index.fts({ withPosition: true }) to enable phrase queries
Fix BM25 search failure: position is not found but required for phrase queries
Root cause: Index.fts() accepts an options object, not a boolean.
Index.fts(true) sets options=true, so options?.withPosition is undefined.
Fix: use Index.fts({ withPosition: true }) instead.
Fixes: #4021 parent 6b2397c commit 507994e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| |||
0 commit comments