2 ms·
I mean, it's your QL so you can do as you see fit but surely `_msg:alpha-beta` didn't previously parse as `{"_msg":["alpha", "NOT", "beta"]}` and nor would I ex
by mdaniel 3y ago
I mean, it's your QL so you can do as you see fit but surely `_msg:alpha-beta` didn't previously parse as `{"_msg":["alpha", "NOT", "beta"]}` and nor would I expect `alpha-beta:charlie` to split in such a non-whitespace way
I guess it boils down to whether LogsQL seeks to separate itself from similar solutions, in which case doing abnormal syntax is great, because there's no "uncanny search syntax valley" to be found, or whether it seeks to ease transition from existing search syntaxes in which case every deviation is one more "oh, right" to keep in one's head while transitioning between the systems
- https://lucene.apache.org/core/9_6_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#NOT https://lucene.apache.org/core/9_6_0/queryparser/org/apache/...
- https://support.google.com/websearch/answer/2466433 https://support.google.com/websearch/answer/2466433
- https://slack.com/help/articles/202528808-Search-in-Slack#narrow-your-search-with-modifiers-pre-ia https://slack.com/help/articles/202528808-Search-in-Slack#na...
likely a bunch more. OTOH, maybe this is sampling bias since I'm sure there are syntaxes out there which use bang negation, too, I just haven't used them as much
- valyala 3y agoFair reasoning. We need to think more about using the '-' instead of '!' in LogsQL. On the other hand, the '!' char is used in almost every programming language as 'NOT' operator. Probably, this is my professional bias.