Module: CloudSesame::Query::DSL::OperatorMethods
- Included in:
- AST::MultiExpressionOperator
- Defined in:
- lib/cloud_sesame/query/dsl/operator_methods.rb
Instance Method Summary collapse
-
#near(value, options = {}) ⇒ Object
(also: #sloppy)
NEAR: creates a single NEAR node =======================================.
-
#phrase(value, options = {}) ⇒ Object
PHRASE: creates a single PHRASE node =======================================.
-
#prefix(value, options = {}) ⇒ Object
(also: #start_with, #begin_with)
PREFIX: creates a single PREFIX node =======================================.
-
#term(value, options = {}) ⇒ Object
TERM: creates a single TERM node =======================================.
Instance Method Details
#near(value, options = {}) ⇒ Object Also known as: sloppy
NEAR: creates a single NEAR node
8 9 10 |
# File 'lib/cloud_sesame/query/dsl/operator_methods.rb', line 8 def near(value, = {}) create_literal AST::Near, , value end |
#phrase(value, options = {}) ⇒ Object
PHRASE: creates a single PHRASE node
25 26 27 |
# File 'lib/cloud_sesame/query/dsl/operator_methods.rb', line 25 def phrase(value, = {}) create_literal AST::Phrase, , value end |