lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Radha Sreedharan <>
Subject Highlighting in Lucene ( With SrndQuery & Query Parser )
Date Tue, 02 Jun 2009 15:03:22 GMT
Hi all,

*Requirment *
I have a query of type *SrndQuery *which is parsed by *QueryParser*.On the
hit of this query I want to get the region of words around the match.

*Approach followed*
I used the highlighting logic code as per example usage in <<>>

*Issue faced*
However the scores returned for the *TextFragments *are always 0, hence no
text fragment is picked up
The same piece of code works when my underlying query is *SpanQuery *and I
am *NOT** *using *QueryParser*.

Please do let me know if any of you have an idea how to resolve this issue?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message