Skip to content

Commit

Permalink
add query string to search matches
Browse files Browse the repository at this point in the history
  • Loading branch information
eamonjohnson committed Oct 8, 2016
1 parent 7126a79 commit 1353430
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/modules/searcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def search(self, query_string):
repr(hit.matched_terms())
))
client_boxes = []
terms = hit.matched_terms()
terms.append(('content', query_string))
for term in hit.matched_terms():
# note: term is a tuple of (field, matched_term)
boxes = document.get_boxes_for_term(term)
Expand Down

0 comments on commit 1353430

Please sign in to comment.