Skip to content

Expected trim space when the operator is in the format - or ! #752

@yuriydzobak

Description

@yuriydzobak

Is your question request related to a specific component?

Hi,
Is it expected behavior that when you type?

  • - _msg: error it converts to -_msg:error
  • - error it converts to -error
  • ! error it converts to !error

I may be misled by the doc about syntax -,! it should work like that

For example, -info and !info are equivalent to NOT info

In my opinion, it should not trim spaces for -,!, and the query should be in the format bellows. when - error

_msg:"-" AND _msg: error

Describe the question in detail

How to check

  1. open Playground. LINK
  2. you see in exclude jcmunozmora
  3. Open the link. The result is the same

Image

Thank you

Key concepts docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions