We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
We have a big query that raises that error:
Typesense::Error::RequestMalformed (Query string exceeds max allowed length of 4000. Use the /multi_search end-point for larger payloads.)
To workaround, we changed this:
MyIndex.search(query: query, query_by: query_by).facets(facets).sort(sort).filter(filter).page(page).per(per).load
To
Typesensual::Search.multi(MyIndex.search(query: query, query_by: query_by).facets(facets).sort(sort).filter(filter).page(page).per(per))[0]
Which is pretty much the same but using the multi endpoint.
We could have a helper method on the Search object to use this:
MyIndex.search(query: query, query_by: query_by).facets(facets).sort(sort).filter(filter).page(page).per(per).multi
Instead of
I would even say that we could rescue from that error automatically or even always use the multi endpoint since it is more robust.
What are your thoughts?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
We have a big query that raises that error:
To workaround, we changed this:
To
Which is pretty much the same but using the multi endpoint.
We could have a helper method on the Search object to use this:
Instead of
I would even say that we could rescue from that error automatically or even always use the multi endpoint since it is more robust.
What are your thoughts?
The text was updated successfully, but these errors were encountered: