Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def print_result(self, search_result, query):
#[TODO] print matched words with color
for elem in search_result:
doc = self.engine.content.get(elem[0])
termcolor.printcolor(doc, query)
print ""