Class: Solr::Query::Request::Boosting::TextualFieldValueMatchBoostFunction
- Inherits:
-
FieldValueMatchBoostFunction
- Object
- FieldValueMatchBoostFunction
- Solr::Query::Request::Boosting::TextualFieldValueMatchBoostFunction
- Defined in:
- lib/solr/query/request/boosting/textual_field_value_match_boost_function.rb
Instance Attribute Summary
Attributes inherited from FieldValueMatchBoostFunction
#boost_magnitude, #field, #value
Instance Method Summary collapse
Methods inherited from FieldValueMatchBoostFunction
Methods included from Support::SchemaHelper
Constructor Details
This class inherits a constructor from Solr::Query::Request::Boosting::FieldValueMatchBoostFunction
Instance Method Details
#to_solr_s ⇒ Object
6 7 8 |
# File 'lib/solr/query/request/boosting/textual_field_value_match_boost_function.rb', line 6 def to_solr_s "if(termfreq(#{solr_field},'#{value}'),#{boost_magnitude},1)" end |