Module: CloudSesame::Query::DSL::OperatorMethods

Included in:
AST::MultiExpressionOperator
Defined in:
lib/cloud_sesame/query/dsl/operator_methods.rb

Instance Method Summary collapse

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, options = {})
	create_literal AST::Near, options, 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, options = {})
	create_literal AST::Phrase, options, value
end

#prefix(value, options = {}) ⇒ Object Also known as: start_with, begin_with

PREFIX: creates a single PREFIX node



16
17
18
# File 'lib/cloud_sesame/query/dsl/operator_methods.rb', line 16

def prefix(value, options = {})
	create_literal AST::Prefix, options, value
end

#term(value, options = {}) ⇒ Object

TERM: creates a single TERM node



31
32
33
# File 'lib/cloud_sesame/query/dsl/operator_methods.rb', line 31

def term(value, options = {})
	create_literal AST::Term, options, value
end