corejavascript / corejavascript/typeahead.js

matchAnyQueryToken doesn't appear to work?

Open
#219 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
968
Forks
231
PR merge metrics
No merged PRs in 30d

Description

Been a long time [since matchAnyQueryToken was added](https://github.com/corejavascript/typeahead.js/pull/2), but it doesn't seem to work as advertised. Given a dataset that contains entries such as:
```
{"t": "defense contracts"},...
{"t": "military policy"},
```
and a bloodhound config with `matchAnyQueryToken: true`

If a user searches `defense policy` in a typeahead.js or the developer implements a lookup in code via. `Bloodhound#search(...)`, either will results in 0 matches; 2 would be expected if I understand this option correctly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.