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

Allow excluded keywords #36

Open
sqwk opened this issue Dec 11, 2019 · 0 comments
Open

Allow excluded keywords #36

sqwk opened this issue Dec 11, 2019 · 0 comments

Comments

@sqwk
Copy link
Contributor

sqwk commented Dec 11, 2019

Allow excluded keywords like this: foo: -bar.

This would be useful especially for something like tags where we user entry like this is entirely possible: tags: this, that, -notThis

{
    "text":["tags: this,  that, -notThis"]
    "offsets":[
        {"keyword":"tags","value":"this","offsetStart":0,"offsetEnd":10},
        {"keyword":"tags","value":"that","offsetStart":0,"offsetEnd":16},
        {"keyword":"tags","value":"notThis","offsetStart":0,"offsetEnd":26, exclude: true}
    ]
}

EDIT: Turns out that this partially possible like this: tags: this, that -tags: notThis, requiring the user to supply the keyword twice.

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

No branches or pull requests

1 participant