don't repeat blog title in search index twice
This commit is contained in:
parent
a85cc1616f
commit
f28a2cd6d1
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ class PostIndex(get_index_base()):
|
|||
abstract = strip_tags(post.safe_translation_getter('abstract', default=''))
|
||||
keywords = post.get_keywords()
|
||||
|
||||
text_bits = [post.get_title()]
|
||||
text_bits = []
|
||||
if abstract:
|
||||
text_bits.append(abstract)
|
||||
if description:
|
||||
|
|
|
@ -11,7 +11,7 @@ from .base import BaseTest
|
|||
|
||||
|
||||
class BlogIndexingTests(BaseTest):
|
||||
sample_text = ('First post First post first line This is the description keyword1 '
|
||||
sample_text = ('First post first line This is the description keyword1 '
|
||||
'keyword2 category 1 a tag test body')
|
||||
|
||||
def setUp(self):
|
||||
|
|
Loading…
Reference in a new issue