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

add inverted-include operator to the extended search feature #776

Open
1 task done
blaineam opened this issue Aug 4, 2024 · 0 comments
Open
1 task done

add inverted-include operator to the extended search feature #776

blaineam opened this issue Aug 4, 2024 · 0 comments
Labels

Comments

@blaineam
Copy link

blaineam commented Aug 4, 2024

Is there an existing issue or pull request for this?

  • I have searched the existing issues and pull requests

Feature description

There are situations where an "exclude" operator that basically behaves as the inverse of the include match operator ' instead of the inverse of the exact match operator !

I lets say I want to exclude matches a portion of a string. I don't see any way to achieve this with the current operators.

Current operators let me exclude only full matches not portions of string matches.

The include ' works how I would expect = to work in that a if the search string exists anywhere in the search keys it shows as a match. The = doesn't seem to consider it a match unless the search key is exactly equal to the search.

The inverted ! works by excluding the exact matches where the search key cannot be exactly the inverted search term. This will not work for inverting partial string matches and I don't see any operator that currently supports inverting the include operator.

Desired solution

Please add an inverted-include operator possibly like: !'

Alternatives considered

possible a different operator could be used for this or change the ! operator to be a little more loose so that in can invert partial string (include) matches.

Additional context

Say you have a dataset like:

[ "test1","example1"]

I want to search with something like "!'xam" and get a result like ["test1"]

currently a search of "!xam" results in something like [ "test1","example1"] since it isn't an exact match to anything.

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

No branches or pull requests

1 participant