Closes #603: Do not use the HTML-ized title for building the search index (that

resulted in "literal" being found on every page with a literal in the
title).
This commit is contained in:
Georg Brandl
2014-01-10 20:31:41 +01:00
parent 2b6dc512b8
commit 50209661df
2 changed files with 5 additions and 2 deletions

View File

@@ -17,6 +17,10 @@ Bugs fixed
* #1319: Do not crash if the ``html_logo`` file does not exist.
* #603: Do not use the HTML-ized title for building the search index (that
resulted in "literal" being found on every page with a literal in the
title).
Documentation
-------------

View File

@@ -306,8 +306,7 @@ class IndexBuilder(object):
return self._stem_cache[word]
_filter = self.lang.word_filter
for word in itertools.chain(visitor.found_title_words,
self.lang.split(title)):
for word in visitor.found_title_words:
word = stem(word)
if _filter(word):
self._title_mapping.setdefault(word, set()).add(filename)