Class: Lucene::BoostOp
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Lucene::BoostOp
- Defined in:
- lib/knife-solo/resources/patch_cookbooks/chef-solo-search/libraries/search/parser.rb,
lib/knife-solo/resources/patch_cookbooks/chef-solo-search/libraries/vendor/chef/solr_query/lucene_nodes.rb
Instance Method Summary collapse
Instance Method Details
#to_array ⇒ Object
200 201 202 203 204 |
# File 'lib/knife-solo/resources/patch_cookbooks/chef-solo-search/libraries/vendor/chef/solr_query/lucene_nodes.rb', line 200 def to_array a = self.elements[0].to_array param = self.elements[1] "(OP:^ #{a} #{param.to_array})" end |
#transform ⇒ Object
206 207 208 209 210 |
# File 'lib/knife-solo/resources/patch_cookbooks/chef-solo-search/libraries/vendor/chef/solr_query/lucene_nodes.rb', line 206 def transform a = self.elements[0].transform param = self.elements[1] "#{a}^#{param.transform}" end |