Questions tagged [bloodhound]

Bloodhound is the typeahead.js suggestion engine. It's robust, flexible, and offers advanced functionalities such as prefetching, intelligent caching, fast lookups, and backfilling with remote data.

Features

  • Works with hardcoded data
  • Prefetches data on initialization to reduce suggestion latency
  • Uses local storage intelligently to cut down on network requests
  • Backfills suggestions from a remote source
  • Rate-limits and caches network requests to remote sources to lighten the load

See the official documentation here.

280 questions
0
votes
1 answer

Typeahead remote without query

I am trying to use the Typeahead and bloodhound framework to search a response of api paths, from a remote API call. by example url api.example.com/getEndpoints I would receive an object containing all the endpoints. I'd want the typeahead to…
Daniel
  • 469
  • 5
  • 15
0
votes
1 answer

Search multiple values in array of JSON objects using Typeahead.js + Bloodhound remote

I'm trying to use Typeahead.js (v0.11.1) + Bloodhound to display the results of a query. The query searches a list of users and returns matches based on either email, last_name, or first_name. If I query smi the matches look like…
upful
  • 850
  • 10
  • 26
0
votes
0 answers

Getting error when i am trying to remote my elasticsearch endpoint with typeahead.js

I am trying to make a simple autocomplete with typeahead.js. The source where words are indexed is my amazon elasticsearch service cluster endpoint. I set all permissions. Now i have this code : $('#remote .typeahead').typeahead({ highlight:…
John doe
  • 3,680
  • 7
  • 31
  • 65
0
votes
0 answers

Cannot read property 'length' of null (typeahead)

I'm having a little trouble with Twitter Typeahead. It throws me the following error: Uncaught TypeError: Cannot read property 'length' of null jquery.js:4 I've looked at some other cases, but none of them match mine. My Code: var…
Chris
  • 1,574
  • 4
  • 16
  • 49
0
votes
1 answer

Bootstrap typeahead with two bloodhound datasource

I have a piece of code that fetches information from the back-end when my page loads //Bloodhound - Fetches all Project numbers for the current user var prsysList = new Bloodhound({ datumTokenizer:…
vegas2033
  • 250
  • 1
  • 4
  • 16
0
votes
1 answer

Bloodhound limit not working

i am using the following code to enable typeahead on input field some times the regions are not displayed but when i see the "network xhr request" in inspect element. the url does return data. Another issue the limit is not working in this example.…
0
votes
0 answers

Typeahead select not adding value to input

I'm using a Typeahead and Bloodhound feature that provides some suggestions. When a user selects a suggestion I want to assign the input with that value. However, this doesn't seem to work in its current iteration.
WebDevDanno
  • 1,122
  • 2
  • 22
  • 50
0
votes
0 answers

Twitter bootstrap typeahead Bloodhound remote with minLength 1

I have a multiple datasets auto-complete implemented using the Bloodhound with default suggestions and second with a remote source. minLength is set to '0' and so it works for default suggestions on focus, perfectly. But the request to the remote is…
Kunal Dethe
  • 1,254
  • 1
  • 18
  • 38
0
votes
0 answers

Twiitter TypeAhead not working in ASP.NET MVC4

I was trying to use Twitter Typeahead.js in my application.But it didnt seem to work.I think I am missing some line of code anywhere but cant figure out where I have went wrong. Script Reference
ksg
  • 3,927
  • 7
  • 51
  • 97
0
votes
0 answers

Bloodhound serves values but Typeahed doesn't show all of them, only some

I've got the script below. I've noticed that the fetching of data works perfectly (verified by console.log(response), showing precisely what's supposed to be fetched). However, in the list of possible options that displays, only some of them are…
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438
0
votes
0 answers

Typeahead not showing all data (v0.11.1)

I am using Typeahead v0.11.1 I have the following script to fetch data from the server in the format of key-value pairs, with keys 'id' and 'name'. When I searched using a particular query, say 'trading', the results doesn't show all entries with…
revvy
  • 151
  • 3
  • 16
0
votes
1 answer

Twitter Typeahead/Bloodhound Suggestions from Ajax-Source: how manage multiple values?

I'm using typeahead/bloodhound for suggestions pulling from an ajax source: var protags = new Bloodhound({ datumTokenizer: function(protags) { return Bloodhound.tokenizers.whitespace(protags.value); }, queryTokenizer:…
michbeck
  • 745
  • 3
  • 9
  • 17
0
votes
1 answer

Using typeahead and JSON only works first letter

Searching for Typeahead and Bloodhound docs I haven't found something helpful os what I'm doing wrong because I'm only getting suggestions when I type the first letter, but I continue typing the word and it goes to no match found. I found a way of…
David Ortega
  • 915
  • 9
  • 25
0
votes
1 answer

Switch between remote and local sources with Typeahead.js/Bloodhound.js

I've played around with every setting I can think of, e.g., .clear() and .typeahead('destroy'), and once I've set the source as remote I can't make the typeahead use a local source. Any thoughts? Here's the code below that gets called onclick: var…
tim peterson
  • 23,653
  • 59
  • 177
  • 299
0
votes
1 answer

Typeahead not displaying results with remote data

Typeahead is not displaying Suggestions. This is a very simple city lookup. The database returns fine. The console is logging my typing. Just cannot get the return data to display. remote data {"recID":"3699","Name":"Dupage","City":"West…
pcm70
  • 63
  • 6