dsp-api
dsp-api copied to clipboard
Highlighting in Fulltext Search Results
When doing a fulltext search, the results should highlight the terms search for.
GraphDB offers a way to do this called "snippet extraction" (http://graphdb.ontotext.com/documentation/standard/lucene-graphdb-connector.html#snippet-extraction). I suggest that the standoff markup for fulltext search results is ignored and the markup returned by the triplestore (<em>) is displayed as is. This requires using GraphDB with Lucene GraphDB connector.
This approach has drawbacks for projects such as BEOL because the formulae set in LaTeX are not meaningful without the standoff markup. Unfortunately, I do not see a better way at the moment.
relates to https://github.com/dasch-swiss/knora-api/issues/913#issuecomment-466439942