Skip to content

ismissing(@field) not working #3605

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

Closed
zuhairamahdi opened this issue Apr 17, 2025 · 4 comments
Closed

ismissing(@field) not working #3605

zuhairamahdi opened this issue Apr 17, 2025 · 4 comments

Comments

@zuhairamahdi
Copy link

zuhairamahdi commented Apr 17, 2025

Hi All,

when I try to check if a field is missing (with dialect 2 specified' it gives me the same error as if I didn't specify the dialect.

r.ft(f"idx:{INDEX}").search(Query('ismissing(@Name_Ar) AND @Active:[1 1]').dialect(2))

Output

Syntax error at offset 18 near Name_Ar

when I try using the CLI it works:

FT.SEARCH 'idx:my_index' 'ismissing(@Name_Ar) AND @Active:[1 1]' DIALECT 2

any idea?

@petyaslavova
Copy link
Collaborator

Hi @zuhairamahdi,
Can you please provide more info about the client version you are using and the index definition?
I tried your example with the current master code, and it is working without issues.

@zuhairamahdi
Copy link
Author

Hi @petyaslavova

I think the issue is from my side. the index was created with INDEXEMPTY instead of INEDXMISSING. I still didn't try it. will try and see if it is working.

@zuhairamahdi
Copy link
Author

@petyaslavova it seem to be working fine when querying except when I try to get the total:

r.ft(f"idx:{QUEUE_TABLE}").search(Query(query).paging(0, 0)).total

to be clear I get the same error when I try it using the cli:

FT.SEARCH 'idx:my_index' 'ismissing(@Name_Ar)' LIMIT 0 0

Error:

Syntax error at offset 18 near Name_Ar

Index definition:

Image

@zuhairamahdi
Copy link
Author

ok. the issue with the total is i didn't use dialect 2.

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

2 participants