You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we specify 'content @ "Groonga" *<2.5 content @ "Mroonga"' in filter condition, the scores of matched records don't adjust.
The score of {"content": "Mroonga is a MySQL storage engine based of Groonga."} should be -1.5, but it is 2.0 in the followning example.
table_create Memos TABLE_NO_KEY
column_create Memos content COLUMN_SCALAR ShortText
table_create Terms TABLE_PAT_KEY ShortText \
--default_tokenizer TokenBigram \
--normalizer NormalizerAuto
column_create Terms index COLUMN_INDEX|WITH_POSITION Memos content
load --table Memos
[
{"content": "Groonga is a full text search engine."},
{"content": "Rroonga is the Ruby bindings of Groonga."},
{"content": "Mroonga is a MySQL storage engine based of Groonga."}
]
select Memos \
--command_version 3 \
--filter 'content @ "Groonga" *<2.5 content @ "Mroonga"' \
--output_columns 'content, _score' \
--sort_keys -_score,_id
{"header":{"return_code":0,"start_time":1624609198.982172,"elapsed_time":0.027374267578125},"body":{"n_hits":1,"columns":[{"name":"content","type":"ShortText"},{"name":"_score","type":"Float"}],"orecords":[["Mroonga is a MySQL storage engine based of Groonga.",2.0]]}}
We should also adjust the scores of matched records when we specify 'content @ "Groonga" *<2.5 content @ "Mroonga"' not only when 'content @ "Groonga" *<2.5 query("content", "Mroonga")'
The text was updated successfully, but these errors were encountered:
If we specify
'content @ "Groonga" *<2.5 content @ "Mroonga"'
in filter condition, the scores of matched records don't adjust.The score of
{"content": "Mroonga is a MySQL storage engine based of Groonga."}
should be -1.5, but it is 2.0 in the followning example.We should also adjust the scores of matched records when we specify
'content @ "Groonga" *<2.5 content @ "Mroonga"'
not only when'content @ "Groonga" *<2.5 query("content", "Mroonga")'
The text was updated successfully, but these errors were encountered: