-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow search hits in body text that are in title of other doc #2891 #2971
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM wit nits
@@ -397,7 +397,9 @@ def stem(word): | |||
# again, stemmer must not remove words from search index | |||
if not _filter(stemmed_word) and _filter(word): | |||
stemmed_word = word | |||
if stemmed_word not in self._title_mapping and _filter(stemmed_word): | |||
already_indexed = self._title_mapping.get(stemmed_word)\ | |||
and docname in self._title_mapping.get(stemmed_word) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think docname in self._title.mapping.get(stemmed_word, [])
is a bit simple.
@@ -420,6 +420,7 @@ var Search = { | |||
// now check if the files don't contain excluded terms | |||
for (file in fileMap) { | |||
var valid = true; | |||
//fileMap[file] = $.unique(fileMap[file]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems this is not needed.
@shibukawa Do you have any opinion about this case? |
@tk0miya Thanks for the feedback! Worked it in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed. Thank you for updating!
If no comments until this weekend, I will merge this. |
Merged. |
No description provided.