Class: PhraseParser::Query
- Inherits:
-
Object
- Object
- PhraseParser::Query
- Defined in:
- lib/doing/phrase_parser.rb
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.
Instance Attribute Details
#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.