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

Search: LIMIT out of minimum/maximum bounds #288

Closed
philiure opened this issue Jun 19, 2022 · 2 comments
Closed

Search: LIMIT out of minimum/maximum bounds #288

philiure opened this issue Jun 19, 2022 · 2 comments

Comments

@philiure
Copy link

philiure commented Jun 19, 2022

The limit I am setting for the query is throwing an error while in the config file I have query_limit_default = 1 and query_limit_maximum = 1400 and getting: sonic.client.SonicServerError: ERR policy_reject(LIMIT out of minimum/maximum bounds), is there a setting I am missing?

The reason why this limit is so high is to assess the retrieved with all relevant documents (and sometimes there's a lot of relevant results). I was also wondering what OFFSET does, I didn't see much documentation on it.

@ghost
Copy link

ghost commented Jun 20, 2022

Your error is (probably) caused by query_limit_default=1, because numbers above 1400 work fine for me.
And if I understand it right, offset is similar to pages.

@philiure philiure reopened this Jun 23, 2022
@philiure
Copy link
Author

philiure commented Jun 23, 2022

I changed the limits as you indicated, but I still get the same error. What settings should I change to not get the error: 'LIMIT out of minimum/maximum bounds'? @valeriansaliou @Sly-Little-Fox

I don't see a clear min max setting otherwise.

Moreover, for a lot my evaluation queries (around 76%) Sonic does not return an ID but an empty array, does Sonic only perform an intersection (AND merge) of the results found for the given keyword in the query? I am assuming there is no ranking performed?

@philiure philiure closed this as completed Jul 5, 2022
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