0

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 just term*.

Here is my setup:

  var datasets = new Bloodhound({
    datumTokenizer: Bloodhound.tokenizers.obj.whitespace('name description'),
    queryTokenizer: Bloodhound.tokenizers.whitespace,
    local: activeWorkspace.get('datasets')
  });
dr3x
  • 917
  • 2
  • 14
  • 26
  • suggestion: you can have `obj.whitespace('name', 'description')`. I'm not quite sure about `*term*` – Dhiraj Mar 14 '15 at 01:46
  • you are missing the point - I want to do a wildcard search of the values in the columns name and description. you are just duplicating what I already have. – dr3x Mar 17 '15 at 17:24
  • 1
    check this https://github.com/twitter/typeahead.js/issues/186 – Dhiraj Mar 17 '15 at 17:38
  • Dhiraj - that post is old, from 2 years ago, but it may be the answer, that wildcarding isn't currently implemented. – dr3x Apr 09 '15 at 06:03

0 Answers0