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

Searching for empty or non empty with the free text expression #61

Open
DannyBen opened this issue Jun 14, 2020 · 2 comments
Open

Searching for empty or non empty with the free text expression #61

DannyBen opened this issue Jun 14, 2020 · 2 comments

Comments

@DannyBen
Copy link

I was going through the README to see if I missed it, but could not find anything related.

Is there a way / operator to search for empty or non empty values?

What I have in mind is like GitHub and Gmail search. For example, to search for users with non-empty email, one of these would be nice to have:

  • has:email
  • email:*
  • email:empty (and email:any as the opposite)

Is this possible? If not, is there any other way to search for empty/non empty attributes?

While on that note, it would also be nice to have the below syntax for booleans (like GitHub).

  • is:active # same as active:yes
  • is:issue
@mrkamel
Copy link
Owner

mrkamel commented Jun 14, 2020

You can search for empty strings via email="" and NOT email="". You are however not able search for NULL values.

Regarding your examples, i'd favor exists:[field].

@DannyBen
Copy link
Author

Thank you. This is not ideal, but its definitely better than not having any of it.

I wish these expressions to be human readable and to clearly state intent.

NOT email="" is far less appealing than has:email, and if it is not handling nil the same, this is pretty much off the table for me.

Judging by both Gmail and GitHub - two of my favorite giants - they both use is:issue and has:attachment for things like that, and not exists - which is more of a developer lingo rather than a user lingo.

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

2 participants