Class: LuceneQuery
- Inherits:
-
Object
- Object
- LuceneQuery
- 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
-
#initialize(&block) ⇒ LuceneQuery
constructor
A new instance of LuceneQuery.
- #to_s ⇒ Object (also: #to_str)
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_s ⇒ Object Also known as: to_str
148 |
# File 'lib/lucene_query.rb', line 148 def to_s; @term.to_lucene end |