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

Method boost

haystack/query.py:394–398  ·  view source on GitHub ↗

Boosts a certain aspect of the query.

(self, term, boost)

Source from the content-addressed store, hash-verified

392 return clone
393
394 def boost(self, term, boost):
395 """Boosts a certain aspect of the query."""
396 clone = self._clone()
397 clone.query.add_boost(term, boost)
398 return clone
399
400 def facet(self, field, **options):
401 """Adds faceting to a query for the provided field."""

Callers 2

test_boostMethod · 0.45
test_boostMethod · 0.45

Calls 2

_cloneMethod · 0.95
add_boostMethod · 0.80

Tested by 2

test_boostMethod · 0.36
test_boostMethod · 0.36