You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When typing "great" the suggestion returns "great ape". But when typing "great " (with a space), no suggestions are returned.
The main issue here is that I WANT the token to HAVE a space. I don't want this behavior of typing a search like "ap" and getting "great ape" in the results.
The text was updated successfully, but these errors were encountered:
Yeah this is a limitation within the matching algorithm used by typeahead.js. In a future release I'd like to look into improving this, but that's probably a ways off.
Take a look at Dataset#getSuggestions (link). That function splits the query into terms and then passes those terms to Dataset#_getLocalSuggestion. Within that function is where the work is done for finding suggestions.
I have spaces in my datums. For instance:
{ value:"apple",tokens:["apple"] }, { value:"great ape",tokens:["great ape"] }
When typing "great" the suggestion returns "great ape". But when typing "great " (with a space), no suggestions are returned.
The main issue here is that I WANT the token to HAVE a space. I don't want this behavior of typing a search like "ap" and getting "great ape" in the results.
The text was updated successfully, but these errors were encountered: