Class: LuceneQuery::Field

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

Instance Method Summary collapse

Constructor Details

#initialize(key, val) ⇒ Field

Returns a new instance of Field.



61
62
63
# File 'lib/lucene_query.rb', line 61

def initialize(key, val)
  @key, @val = key, val
end

Instance Method Details

#to_luceneObject



65
66
67
# File 'lib/lucene_query.rb', line 65

def to_lucene
  @key.to_lucene + ":" + @val.to_lucene
end