Skip to content

Sort results differentially depending on query string #108

Open
@ant1b

Description

@ant1b

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:
twitter/typeahead.js#817
twitter/typeahead.js#979
twitter/typeahead.js#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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions