Class: LuceneQuery::Prohibit

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

Instance Method Summary collapse

Constructor Details

#initialize(term) ⇒ Prohibit

Returns a new instance of Prohibit.



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

def initialize(term) @term = term end

Instance Method Details

#to_luceneObject



105
106
107
# File 'lib/lucene_query.rb', line 105

def to_lucene
  "-" + @term.to_lucene
end