Skip to content
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

Full text search not working on tag fields #585

Closed
Joybaruah opened this issue Jan 16, 2024 · 3 comments · Fixed by #610
Closed

Full text search not working on tag fields #585

Joybaruah opened this issue Jan 16, 2024 · 3 comments · Fixed by #610

Comments

@Joybaruah
Copy link

id: str = Field(index=True, full_text_search=True, primary_key=True)

This fields creates schema as:
ON JSON PREFIX 1 :index: SCHEMA $.id AS id TAG SEPARATOR | $.id AS id_fts TEXT

Query:
Model.id % id

This doesn't work

@slorello89
Copy link
Member

Interesting, are you getting an error, or is it just not producing the result you expected. An ID is kind of an odd thing to do a full-text search on (I could see doing a prefix/infix/postfix search but not really full text search)

@Joybaruah
Copy link
Author

Not producing the result, It is not odd as In case of Unique ID length 6-10.

@slorello89
Copy link
Member

What really is needed here is the addition of x-fix style queries, what you are looking for is not full text search,. I've opened #610 to resolve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants