Skip to content
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

Highlight search text and show surrounding text when displaying search results #3

Open
AbeHandler opened this issue Jan 20, 2015 · 2 comments
Assignees

Comments

@AbeHandler
Copy link
Contributor

a la document cloud ui

@AbeHandler
Copy link
Contributor Author

example

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

@ThomasThoren
Copy link
Member

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.

screen shot 2016-01-07 at 3 08 49 pm

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.

@ThomasThoren ThomasThoren changed the title highlight search text in preview Highlight search text and show surrounding text when displaying search results Jan 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants