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

def-cmd for FT.SEARCH and multiple arguments? #40

Open
Odddity opened this issue Jun 12, 2024 · 0 comments
Open

def-cmd for FT.SEARCH and multiple arguments? #40

Odddity opened this issue Jun 12, 2024 · 0 comments

Comments

@Odddity
Copy link

Odddity commented Jun 12, 2024

I'm not having any luck with this:

(redis:def-cmd FT.SEARCH (index &rest params) :multi: 
  "Search query")

Because this query works:

(ft.search "gobs" "@x:[-3300 3300] @y:[-3300 3300]")

But this one does not. It yields a list (0) instead of results from the database.

(ft.search "gobs" "@x:[-3300 3300] @y:[-3300 3300] LIMIT 0 100")

Do I need to write the DEF-CMD differently, or provide a defmethod tell for FT.SEARCH? I don't really know how to get the desired data (the command works in REDIS-CLI so I know the command isn't wrong)

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