MCPcopy Index your code
hub / github.com/django-haystack/django-haystack / add_boost

Method add_boost

haystack/backends/__init__.py:874–876  ·  view source on GitHub ↗

Adds a boosted term and the amount to boost it to the query.

(self, term, boost_value)

Source from the content-addressed store, hash-verified

872 self.start_offset, self.end_offset = 0, None
873
874 def add_boost(self, term, boost_value):
875 """Adds a boosted term and the amount to boost it to the query."""
876 self.boost[term] = boost_value
877
878 def raw_search(self, query_string, **kwargs):
879 """

Callers 8

boostMethod · 0.80
test_add_boostMethod · 0.80
test_cloneMethod · 0.80

Calls

no outgoing calls

Tested by 7

test_add_boostMethod · 0.64
test_cloneMethod · 0.64