reactivesearch icon indicating copy to clipboard operation
reactivesearch copied to clipboard

What is the best way to track the values being searched

Open Arvind6353 opened this issue 6 years ago • 2 comments

Hi , I am currently using Datasearch component to search . I would like to track the values being used for the search . My using the debounce value as 1000 . I want to get the value being searched . i.e the value that is being exactly searched with elastic search (sent via ajax to the elastic server).

At this moment , am using onValuechange - but this method is giving data on each key stroke . (example : g , go , goo, goog , googl, google ). Am interested only with the "google" value as this is the value being sent to elastic search .

Note : I am not using auto suggestion and hence onValueSelected wont work .

Let me know the best way to handle this scenario .

Arvind6353 avatar Jun 11 '18 17:06 Arvind6353

Thanks for bringing this up. We will figure out a better way to handle this in the future, but for now you can apply the same debounce on your onValueChange callback as I've done here in this codesandbox.

metagrover avatar Jun 11 '18 18:06 metagrover

Hi,

I am new to ReactiveSearch, so maybe I'm missing something, but I am facing this issue and the sandbox is not working anymore. Has this been fixed? I did not see anything in the docs.

teodoralaura avatar Mar 10 '22 12:03 teodoralaura