-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
limit_hits doesn't work #181
Comments
Could you open the browser's network tab, then do an action that triggers the search, then open that request in the network tab, copy both the request parameters and the response from Typesense and paste it here? |
Thanks a lot,the request parameters and the response are as follows: |
Ah, I think there might be a misunderstanding about what limit_hits does... It's meant to control the total number of hits that can be retrieved via pagination. So for eg, since you've set So |
Great, it really works, I misunderstood it.
|
Description
I've configured the limit_hits, but it doesn't work,still returning all hits.
Steps to reproduce
I'm using instantsearch.js, and all other parameters are functioning correctly.
Expected Behavior
rutrun limited hits
Actual Behavior
return all the hits
Metadata
Typesense Version:0.25
typesense-instantsearch-adapter Version:2.7.1
const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter({
server: {
apiKey: "XXX",
nodes: [
{
host: "XXX",
port: "443",
protocol: "https",
},
],
cacheSearchResultsForSeconds: 2 * 60,
},
});
The text was updated successfully, but these errors were encountered: