Andy Seaborne kirjoitti 23.10.2017 klo 22:59:
With the extraneous part of the original email having been split-off,
I'm interested to know if and how other users have provided for
highlighting of Lucene search matches when using jena-text.
While I'm relying on jena-text in my application (Skosmos), there hasn't
been any need for highlighting since the matched strings are typically
very short (labels of SKOS concepts) and in most cases prefix matching
is used so the start of the match is also the start of the label.
If the literals are relatively short then perhaps highlighting where a
match was found by Lucene is not considered necessary; however, if the
literals are several hundreds of code-points then it becomes more
useful to help with ultimately displaying results to users. It seems
like it might be feasible to provide a 4th return parameter that could
identify the start and end of each match in the returned literal.
That's good especially if when not using it has no impact on performance.
+1
Willing to review PRs.
-Osma
PS. Targeting only the dev@ list, for some reason the previous two
messages in this thread had both users@ and dev@ in To:/Cc: fields, with
Reply-To set to users@.
--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 26 (Kaikukatu 4)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
[email protected]
http://www.nationallibrary.fi