You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Chris Tomlinson <ch...@gmail.com> on 2017/10/22 17:50:52 UTC

Re: jena-text highlighting support

Hello,

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. 

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.

Thanks,
Chris


> On Oct 20, 2017, at 2:00 PM, Chris Tomlinson <ch...@gmail.com> wrote:
> 
> Hi,
> 
> I’m interested in looking into whether and how it might be possible to incorporate Lucene highlighting into jena-text. I don’t see any other work, but perhaps others have dealt with the topic already. I was thinking of some sort of a 4th return parameter in the PF.

Re: jena-text highlighting support

Posted by Osma Suominen <os...@helsinki.fi>.
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
osma.suominen@helsinki.fi
http://www.nationallibrary.fi

Re: jena-text highlighting support

Posted by Andy Seaborne <an...@apache.org>.

On 22/10/17 18:50, Chris Tomlinson wrote:
> Hello,
> 
> 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.
> 
> 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.

     Andy

> 
> Thanks,
> Chris
> 
> 
>> On Oct 20, 2017, at 2:00 PM, Chris Tomlinson <ch...@gmail.com> wrote:
>>
>> Hi,
>>
>> I’m interested in looking into whether and how it might be possible to incorporate Lucene highlighting into jena-text. I don’t see any other work, but perhaps others have dealt with the topic already. I was thinking of some sort of a 4th return parameter in the PF.

Re: jena-text highlighting support

Posted by Andy Seaborne <an...@apache.org>.

On 22/10/17 18:50, Chris Tomlinson wrote:
> Hello,
> 
> 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.
> 
> 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.

     Andy

> 
> Thanks,
> Chris
> 
> 
>> On Oct 20, 2017, at 2:00 PM, Chris Tomlinson <ch...@gmail.com> wrote:
>>
>> Hi,
>>
>> I’m interested in looking into whether and how it might be possible to incorporate Lucene highlighting into jena-text. I don’t see any other work, but perhaps others have dealt with the topic already. I was thinking of some sort of a 4th return parameter in the PF.