Class: LuceneQuery::Not

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

Instance Method Summary collapse

Constructor Details

#initialize(term) ⇒ Not

Returns a new instance of Not.



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

def initialize(term) @term = term end

Instance Method Details

#to_luceneObject



89
90
91
# File 'lib/lucene_query.rb', line 89

def to_lucene
  "NOT #{@term.to_lucene}"
end