Feature #2730
Feature #2657: Search View
Render highlighted terms
Start date:
05/12/2020
Due date:
% Done:
100%
History
#1 Updated by Luke Murphey over 4 years ago
- Status changed from New to In Progress
#2 Updated by Luke Murphey over 4 years ago
- The highlights are in the results under the highlights field.
- src/reader/views.py
- src/reader/contentsearch.py::search_verses()
- results passed to VerseSearchResults
- get_highlights()
- It appears that it may be returning result highlighted in HTML already:
- https://whoosh.readthedocs.io/en/latest/api/highlight.html
I might be able to avoid setting innerHTML manually using https://github.com/wrakky/react-html-parser
- https://whoosh.readthedocs.io/en/latest/api/highlight.html
#3 Updated by Luke Murphey over 4 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100