Open AbeHandler opened 9 years ago
See how the searched term is highlighted yellow. We want to do that for our search too. You can get to that via python document cloud
http://python-documentcloud.readthedocs.org/en/latest/documents.html#document_obj.mentions
This is a good idea, though there can also be cases where the surrounding text is a garbled mess, which would reflect poorly on the app.
However, I'd guess that most searches with coherent words will usually turn up coherent text. As long as that's usually the case, this should be added to this round of refactoring. If incoherent text is somewhat common, it isn't worth possibly making the app look bad, broken or untrustworthy.
a la document cloud ui