Is it possible to use the dropTokensThreshold with...
# community-help
j
Is it possible to use the dropTokensThreshold with InstantSearch.js? I tried
Copy code
additionalSearchParameters: {
    queryBy: 'queryby1,queryby2', //categories,
    sortBy: '_text_match:desc,numsales:desc',
    dropTokensThreshold: 10
  },
But seems like it was not taken into account...
j
That's the way to set it.
Could you check the network request to confirm that it was sent to Typesense
j
Seems like it is. I think it was actually taken into account, except it did not change anything in the results for the search I made...
j
It will only kick in when the number of results is less than 10 (the value you've set)
So if the number of results is > 10, then tokens won't be dropped