Skip to content

More examples would be helpful #21

@VRShiva

Description

@VRShiva

I am trying to accomplish the following query using the esquerydsl package (see below). More examples on how to use this package would be appreciated.

For example would below query be possible to create?
Does the package support "minimum_should_match"?

  "query": {
    "bool": {
      "filter": [
        {
          "bool": {
            "should": [
              {
                "match_phrase": {
                  "serviceName.keyword": "Service1"
                }
              },
              {
                "match_phrase": {
                  "serviceName.keyword": "Service2"
                }
              },
              {
                "match_phrase": {
                  "serviceName.keyword": "Service3"
                }
              }
            ],
            "minimum_should_match": 1
          }
        },
        {
          "bool": {
            "should": [
              {
                "match_phrase": {
                  "logKind.keyword": "Error"
                }
              },
              {
                "match_phrase": {
                  "logKind.keyword": "Audit"
                }
              },
              {
                "match_phrase": {
                  "logKind.keyword": "Warning"
                }
              }
            ],
            "minimum_should_match": 1
          }
        }
      ],
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions