-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't fulltext search against reference column of varchar vector #674
Labels
Comments
Groonga's table
|
kou
added a commit
to groonga/groonga
that referenced
this issue
May 21, 2024
Fix mroonga/mroonga#674. ## What happend? Groonga always returns that the number of hits is 0 when we execute full-text search against reference column of vector as below. Note that a lexicon (`tags` in this case) must have a tokenizer. ``` table_create bugs TABLE_PAT_KEY UInt32 table_create tags TABLE_PAT_KEY ShortText --default_tokenizer TokenDelimit column_create tags name COLUMN_SCALAR ShortText column_create bugs tags COLUMN_VECTOR tags load --table bugs [ ["_key", "tags"], [1, "Linux MySQL"], [2, "MySQL Groonga"], [3, "Mroonga"] ] column_create tags bugs_tags_index COLUMN_INDEX bugs tags select --table bugs --filter 'tags @ "MySQL"' [[0,0.0,0.0],[[[0],[["_id","UInt32"],["_key","UInt32"],["tags","tags"]]]]] ``` ## Solution In this PR, If the source of index was reference column, Groonga get `key_type` from a table that the reference column refer. This problem occurs from 535844b. If the source of index was reference column, Groonga couldn't get `key` and `key_type` correctly in the above modification. --------- Co-authored-by: Sutou Kouhei <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happend?
Mroonga returns no record when we send the following query.
https://github.com/mroonga/mroonga/actions/runs/8107720441/job/22160239499#step:5:1983
How to reproduce it
Expected behavior
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: