| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| for addr in pagesIndex: | ||
| if query_word.lower() in pagesContent[addr].lower(): | ||
| hit_list.add(addr) | ||
| intersection = hit_list if not intersection else intersection.intersection(hit_list) |
There was a problem hiding this comment.
This would lead to problems when the intersection is an empty set. When the set becomes empty it is replaced by hit_list instead of staying empty. I've fixed this and the merge conflict in #509 .
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Updated relevant_pages() in nlp.py to do an intersection query by intersecting the hit lists of the query terms, as described in the textbook. Previously the function was (incorrectly) returning pages that contain the query in its entirety (as a phrase).
Also updated corresponding test. This fixes issue #392