Class: LuceneQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/lucene_query.rb

Defined Under Namespace

Classes: And, Field, Fuzzy, InfixOperator, Not, Or, Prohibit, QueryBuilder, Required

Constant Summary collapse

VERSION =
'0.1'

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ LuceneQuery

Returns a new instance of LuceneQuery.



144
145
146
# File 'lib/lucene_query.rb', line 144

def initialize(&block)
  @term = QueryBuilder.generate(&block)
end

Instance Method Details

#to_sObject Also known as: to_str



148
# File 'lib/lucene_query.rb', line 148

def to_s; @term.to_lucene end