mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-03-21 00:10:26 +00:00
This allows the user to retrieve the scores for each search result:
for page in Page.objects.search("Hello").annotate_score('_score'):
print(page.title, page._score)
|
||
|---|---|---|
| .. | ||
| search | ||
| images.rst | ||
| index.rst | ||
| pages.rst | ||
| snippets.rst | ||
| streamfield.rst | ||
| writing_templates.rst | ||