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
0 answers

Typeahead bloodhound tokenizer - wildcarding search?

https://github.com/twitter/typeahead.js Is there an option to wildcard the search terms in Bloodhound? For example, if a description is "Import from film_actor" then search will pick it up for film but not for actor; want it to search *term* and not…
dr3x
  • 917
  • 2
  • 14
  • 26
0
votes
0 answers

How can I get the caller from Bloodhound

I'm using typeahead with Bloodhound and I need to get the caller element id from Bloodhound. This is the code: var destinations = new Bloodhound({ datumTokenizer: Bloodhound.tokenizers.obj.whitespace('name'), queryTokenizer:…
0
votes
2 answers

How do I use Twitters typeahead.js with Microsoft OData API's?

I have run into issues while writing a web-app to fetch JSON data from our CRM application. What I want to do is use Twitter's typeahead.js plugin to remotely fetch customer information from our CRM application. Microsoft does provide a way to use…
Alexander Johansen
  • 522
  • 1
  • 14
  • 28
0
votes
1 answer

Using Bloodhound %QUERY token multiple places

I'm using bootstrap-tags-input typeahead.js and bloodhound to implement some tagging functionality on a site I'm working on. I'm using "remote" to get data from an OData endpoint I've made and I'm using the $filter=substringof('%QUERY', Description)…
user557419
0
votes
1 answer

How to access the Typeahead - Bloodhound suggestion Object properties within a custom template

Using Typeahead-Bloodhound bundle, I've created a custom suggestion template. I'm trying to figure out what object the template is calling to compile a variable. I'm using Underscore instead of the {{}} templating: _.compile(…
0
votes
1 answer

Twitter typeahead, Bloodhound filter startswith

I'm want to filter the results with a 'startswith' filter. Now the code below grabs everything that matches any of the separate words within the result. So when the user types "ex" both "example" and "one two example" are filtered out. How do I…
Erhnam
  • 901
  • 2
  • 13
  • 23
0
votes
2 answers

Issue with parsing JSON for typeahead

I am new to the use of the typeahead plugin and my javascript(not jquery) skills are terrible. This is my JSON: {"Product":[ {"@ProductCode":"C1010","@CategoryName":"Clips"}, {"@ProductCode":"C1012","@CategoryName":"Clips"}, …
JP Hellemons
  • 5,977
  • 11
  • 63
  • 128
0
votes
0 answers

Typeahead.js and Json

I am using typeahead.js for re-useable invoice items in my application. When you type the name of the item and select a suggested one, it populates the item number, item name, and item price for you. When I was using local data, everything was…
user3968645
  • 135
  • 1
  • 14
0
votes
1 answer

Upgrading typeahead from 0.9.3 to 0.10.5 remote

Hi I'm having troubles upgrading my typeahead js from 0.9.3 to 0.10.5. It worked in 0.9.3, but I can't seem to get my remote connection working in the latest version. I'm using the following code. init = function(spec) { var $field; …
Code Junkie
  • 7,602
  • 26
  • 79
  • 141
0
votes
1 answer

Typeahead/Bloodhound Remote not returning data

I am trying to get typeahead (v0.10.5)/bloodhound to bind the returned JSON data. Unfortunately, nothing appears in my suggestion window (ie, ). In addition, I am using jQuery v2.0.3. The call to my endpoint is successful. When I inspect…
Steve
  • 927
  • 3
  • 10
  • 23
0
votes
1 answer

Typeahead/Bloodhound turn results into links

I'm following this one http://twitter.github.io/typeahead.js/examples/#multiple-datasets and then got it working using remote, retrieving data from database. Now I want to make the results into links like when you click to a result it will redirect…
Meltdowner
  • 45
  • 1
  • 10
0
votes
2 answers

jQuery missing input

i've this: $('input#tags_watch').typeahead({ highlight: true, autoselect: true }, { source: names.ttAdapter(), displayKey: 'name', …
Severiano
  • 1,083
  • 3
  • 25
  • 54
0
votes
1 answer

Getting Bloodhound to work

I'm implementing a typing suggestion functionality on my website using Typeahead.js/Bloodhound but I can't get Bloodhound to work. Here is the code: var indicator_commands = new Bloodhound({ datumTokenizer: function(d) { return…
Nghung
  • 95
  • 1
  • 9
0
votes
1 answer

Typeahead blank results - can't figure out why

I am at my wits end. I have asked a similar question before but now I am trying to use Twitters examples exactly (following http://twitter.github.io/typeahead.js/examples/#multiple-datasets but with only one dataset) and can't get anything to…
MOLEDesign
  • 488
  • 8
  • 20
0
votes
1 answer

How can I set an extra var to bloodhound remote?

I use typeahead/bloodhound to autofill an input. My site has more then 20 input fields, all with class typeahead and an id attribute. My Problem is, I need a request with the %QUERY and a %CID. %QUERY is the search the user typed in one of the input…
1 2 3
18
19