We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53b8b9d commit b4fa02aCopy full SHA for b4fa02a
1 file changed
lib/torus/search/bm25.ex
@@ -23,8 +23,8 @@ defmodule Torus.Search.BM25 do
23
)
24
25
# Build the BM25 query fragments
26
- # When index_name is provided, use 2-arg form for explicit index specification
27
- # Otherwise use 1-arg form and let PostgreSQL auto-detect the index
+ # When index_name is provided, use to_bm25query(?, ?) for explicit index specification
+ # Otherwise use bare string literal (?) to let PostgreSQL auto-detect the index
28
{bm25query_fragment, bm25query_params} =
29
if index_name do
30
{
@@ -33,7 +33,7 @@ defmodule Torus.Search.BM25 do
33
}
34
else
35
36
- "to_bm25query(?)",
+ "?",
37
[term]
38
39
end
0 commit comments