Class: Lucene::BoostOp

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
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_arrayObject



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

#transformObject



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