little-bobby-tables/elasticfusion

View on GitHub
lib/elasticfusion/search/query/ast.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true
module Elasticfusion
  module Search
    module Query
      Expression = Struct.new(:op, :left, :right)

      # See visitors/polyadic_tree_visitor.rb
      PolyadicExpression = Struct.new(:op, :children)

      NegatedClause = Struct.new(:body)

      FieldTerm = Struct.new(:field, :qualifier, :value)

      Term = Struct.new(:body)
    end
  end
end