-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Duplicate detection when Bloodhound#add(datums) is used #946
Comments
That's the expected behavior. The
I'm leaning towards the latter. Otherwise adding datums would take |
If I'm not mistaken, all suggestions are stored in the Although if there was an associative array (with suggestions as it's keys), the lookup for each entry should be Do you have a suggestion on how should I go about implementing this? P.S. If there was a method |
I'd suggest forking typeahead.js, changing this line to
See #652. With how the search index is currently structured, a remove would be a pain. However, I think I'm going to simplify the search index next time I focus on bloodhound and adding remove support will be one of the goals of that effort. |
This is now possible in v0.11 with usage of the |
The dupDetector is good for detecting duplicates between local & remote match. However if I'm using
Bloodhound#add(datum)
to occasionally append data to the search index, I see duplicates showing up.Is that expected behavior? If yes, should it be patched in typeahead.js or should my code inspect the available list of suggestions and avoid duplicate manually?
The text was updated successfully, but these errors were encountered: