[jsword-devel] Search Highlight
Tonny Kohar
tonny.kohar at gmail.com
Fri Apr 24 22:06:23 MST 2009
Hi,
On Fri, Apr 24, 2009 at 6:32 PM, DM Smith <dmsmith at crosswire.org> wrote:
>
> On Apr 24, 2009, at 2:42 AM, Tonny Kohar wrote:
>
>> Hi,
>>
>> Is there any plan to implement lucene search highlight for the JSword
>> engine/API ?
>
> Yes. See:
> http://crosswire.org/bugs/browse/BD-27
>
> I have not bothered to work on it or to look at it. I welcome someone to
> pick this up.
>
I just look at the package org.crosswire.jsword.index (and its
subpackage lucene, query, search), the implementation is returning Key
for the search query. However the lucene search highlight require
return of content (rather then the key field) for intercepting the
analyzer (token stream) to insert some tag/marking.
So I quess the only way to implement search highlight for JSword
without API changes is parsing the query string itself and maybe using
regex to insert the tagging, is this correct ? Or do you have any
other idea ?
If parsing the query string itself, do you have any idea of library
that able to do that ?
Cheers
Tonny Kohar
--
Alkitab Bible Study
http://www.kiyut.com/products/alkitab/index.html
More information about the jsword-devel
mailing list