dsp-api icon indicating copy to clipboard operation
dsp-api copied to clipboard

Highlighting in Fulltext Search Results

Open tobiasschweizer opened this issue 5 years ago • 0 comments

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

tobiasschweizer avatar Jan 06 '20 15:01 tobiasschweizer