Class: LuceneQuery::Required

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

Instance Method Summary collapse

Constructor Details

#initialize(term) ⇒ Required

Returns a new instance of Required.



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

def initialize(term) @term = term end

Instance Method Details

#to_luceneObject



97
98
99
# File 'lib/lucene_query.rb', line 97

def to_lucene
  "+" + @term.to_lucene
end