Class: PhraseParser::Query
Overview
Query object
Instance Attribute Summary collapse
-
#must_clauses ⇒ Object
Returns the value of attribute must_clauses.
-
#must_not_clauses ⇒ Object
Returns the value of attribute must_not_clauses.
-
#should_clauses ⇒ Object
Returns the value of attribute should_clauses.
Instance Method Summary collapse
- #clause_to_query(clause) ⇒ Object
-
#initialize(clauses) ⇒ Query
constructor
A new instance of Query.
- #match(term) ⇒ Object
- #match_phrase(phrase) ⇒ Object
- #to_elasticsearch ⇒ Object
Constructor Details
#initialize(clauses) ⇒ Query
Returns a new instance of Query.