Skip to content

Nested bool filters not supported? #8

@thisismydesign

Description

@thisismydesign

Example input and output below. Am I missing something here?

search do
  query do
    bool do
      filter do
        bool do
          should do
            match something: "something"
          end
          should do
            match something_else: "something"
          end
          minimum_should_match 1
        end
      end
    end
  end
end.to_hash
{:query=>
  {:bool=>
    {:filter=>
      [
       {:bool=>{:should=>[{}]}}]
      }}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions