Feature #2730
History
#1
Updated by Luke Murphey almost 5 years ago
- Status changed from New to In Progress
#2
Updated by Luke Murphey almost 5 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 almost 5 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100