0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Adds tests for search boost & order_by_revelance.

This commit is contained in:
Bertrand Bordage 2017-08-16 18:01:43 +02:00
parent 77ae8eac50
commit 2379da96e4

View File

@ -22,7 +22,7 @@ class SearchTest(index.Indexed, models.Model):
index.RelatedFields('subobjects', [
index.SearchField('name', partial_match=True),
]),
index.SearchField('content'),
index.SearchField('content', boost=2),
index.SearchField('callable_indexed_field'),
index.FilterField('title'),
index.FilterField('live'),