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

Apache solr with Typehead / Bloodhound

I'm using Apache solr with Typhead.js for searching in my application. My problem is that I keep getting a CORS error when calling my solr API from an AJAX request on the client. I am setting dataType: 'jsonp', but it's still giving me the CORS…
country_dev
  • 605
  • 4
  • 13
  • 23
0
votes
1 answer

Typeahead.js suggestions aren't filtered

I'm using Typeahead.js to select item names I'm retrieving (through Bloodhound) from a PHP/Mysql page, for one of my input fields. When I type in the input field, the suggestion always shown 5 first row without filtering, however the highlight does…
vincmeister
  • 181
  • 4
  • 4
  • 14
0
votes
1 answer

How can i get remote call on bootstrap twitter typeahead to work, by calling asp.net web method

I am trying to load my typeahead.js by using bloohound's remote function where i can call my Web Method. I have seen similar threads where a querystring is being used : Integrating Typeahead.js with ASP.Net Webmethod Typeahead.js and Bloodhound.js…
JustLearning
  • 3,164
  • 3
  • 35
  • 52
0
votes
1 answer

typeahead / filter / JSON parse?

Trying to 'parse/read' an external .json file on my typeahead code, but the .json file (which I cannot modify) looks like: {"**cms_countries**": [{"**cms_country**": [{"**countrydisplayname**":"Afghanistan"} ,{"countrydisplayname":"Albania"}…
Juan
  • 1
  • 1
0
votes
1 answer

Twitter typeahead.js / bloodhound.js with XML source

Is it possible to construct a typeahead.js / bloodhound.js (or similar) search that is XML (not JSON) based? I have a large XML document in memory already, and I'd hate to make another copy of it to accommodate JSON.
William Walseth
  • 2,803
  • 1
  • 23
  • 25
0
votes
0 answers

Typeahead shows partial results than what is sent from the json file

I already tried the solution in : Typeahead shows not all items from json but didn't work for me, so sorry if duplicate, but I cannot find a way to properly fix it. I use Bloodhound and Typeahead to retrieve from a php file a list of formulas. As an…
0
votes
1 answer

Using remote data for autocomplete with Alpaca forms

I'm using Alpaca forms and pulling values for a form autocomplete field from a web service. I've worked through how to use this data as values for the autocomplete using jQuery and now need to use this data source within Alpaca forms, which uses…
tw1742
  • 1,424
  • 4
  • 18
  • 37
0
votes
0 answers

Twitter Typeahead Bloodhound longer-url request not sent

I am using django with bloodhound in prefetch mode like in the official example. jQuery(document).ready(function() { var countries = new Bloodhound({ datumTokenizer: Bloodhound.tokenizers.whitespace, queryTokenizer:…
Proph73
  • 37
  • 1
  • 5
0
votes
1 answer

Typeahead Bloodhound Rails with pg_search

I am using this stackoverflow answer to try and implement Twitter Typeahead for my rails app and I have also tried implementing the Github readme but there is no text suggestions when I type into the textbox. My Controller class PagesController <…
0
votes
1 answer

Bootstrap Tags Input with Typeahead Predefined item from the list

I have question regarding predefining item on the list in bootstrap tags input. For example. var city_list = ['Sumatra', 'Jawa', 'Sulawesi'] var city_choosen = ['Sumatra'] When the page open, I would like to predefine the input with apple, but in…
Jefferson Setiawan
  • 536
  • 1
  • 5
  • 22
0
votes
1 answer

symfony2.7, bloodhound, typeahead not showing autocomplete

i'm trying to use typeahead with symfony 2.7 for database search using LIKE. I've read the documentation for typeahead and based on the examples from their website i put togther a small example to see how it works. Since i have about 1300 entries in…
L.S
  • 399
  • 1
  • 5
  • 19
0
votes
1 answer

bloodhound multiple dataset cause typeahead template issue

I've local elastic search server, install and running. I instanciate 2 bloodhound object followig examples (can't post link because of reputation limitations) If I use output as is, I have my results from my 2 datasource, no trouble. When I want to…
Nicolas
  • 571
  • 6
  • 13
0
votes
0 answers

Typeahead remote call shows a subset of results

I'm trying to use typeahead.js to get a list of authors from my own server (flask endpoint). When I use local source for Bloodhound everything works smoothly, only when I have to fetch the data from a server not all the results seem to be shown. So…
stpk
  • 2,015
  • 1
  • 16
  • 23
0
votes
1 answer

Avoid typeahead.js remote if regex matches

how do I avoid a server request in typeahead.js if certain regex matches? I dont't want to start a suggestion if numbers are typed in but letters should start the ajax request. Is this possible in typeahead.js or bloodhound? I still have version…
Eike
  • 1
  • 1
0
votes
1 answer

Typeahead remote data no showing in text field, but local data works

Have been trying for some time, and cannot find an answer to this. Typeahead works with local data, but not with remote data. Although I see the request in the console, but it does not return any data into typeahead. In the console as I am Typing I…