Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find out which token matched #1005

Open
LukasKnuth opened this issue Sep 19, 2014 · 0 comments
Open

Find out which token matched #1005

LukasKnuth opened this issue Sep 19, 2014 · 0 comments

Comments

@LukasKnuth
Copy link

Let's say I have this dataset (the actual tokens are stored in tags):

[
    {
        "title": "Show a commit tree with Git",
        "tags": ["git"]
    },
    {
        "title": "Manage Gnome Startup Programs",
        "tags": ["gnome", "linux"]
    },
    {
        "title": "this is a test",
        "tags": ["something", "git"]
    }
]

Now, when I enter g into the searchbar, bloodhound will give me the data for everything tagged with git and gnome.

The question is, can I find out exactly which tokens matched? So, for g i would get ["git", "gnome"] (the full value of the token that only partially matched, that's important here).

Is this possible at the moment? If not, would a contribution be welcome?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant