corejavascript/typeahead.js

Sort results differentially depending on query string

Open

#108 opened on Jan 2, 2017

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (956 stars) (232 forks)batch import
enhancementhelp wanted

Description

Facing a case where remote suggestions would need to be sorted differentially depending on whether the query contains one (no separator character) or more words; namely, apply sorting strictly on string length in the former case or keeping the order established "remotely" in the latter.

This could require the "query" parameter to be passed to or made available to other bloodhound functions than the "prepare" function/module. So far I have been working using typeahead v0.11.1 from twitter/typehead.js repository.

This feature appears to have been part of the milestones for v0.11.2 on the twitter/typehead.js repository: https://github.com/twitter/typeahead.js/issues/817 https://github.com/twitter/typeahead.js/pull/979 https://github.com/twitter/typeahead.js/pull/1191

However it is indicated that there exist conflicts about the corresponding code base.

And the changes seem to have been happening at the time of this fork taking over active development and maintenance on typeahead code (04-09/2015).

Anybody knows about the current status of this fix/feature/pull request with respect to this maintained fork code or the legacy one? Alternatively, can the described behaviour possibly be obtained in another way due to more recent functionalities?

Contributor guide