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

Tag search queries with the words "will" or "a" causes syntax error #1294

Closed
danialfarid opened this issue Jun 30, 2020 · 1 comment
Closed

Comments

@danialfarid
Copy link

danialfarid commented Jun 30, 2020

The tag queries with the word "will" will throw syntax error same as "a".

127.0.0.1:6379> FT.CREATE idx SCHEMA t TAG
OK
127.0.0.1:6379> FT.SEARCH idx "@t:{will}"
(error) Syntax error at offset 4 near will
127.0.0.1:6379> FT.SEARCH idx "@t:{a}"
(error) Syntax error at offset 4 near a
127.0.0.1:6379> FT.SEARCH idx "@t:{willy}"
1) (integer) 0

@danialfarid
Copy link
Author

Turned out I need to set the stopwords specificly:

 FT.CREATE idx STOPWORDS 0 SCHEMA t TAG

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

No branches or pull requests

1 participant