FAQ
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 <<
http://lucene.apache.org/java/2_4_1/api/org/apache/lucene/search/highlight/package-summary.html>>

*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*.

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

Regards,
Radha

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupjava-user @
categorieslucene
postedJun 2, '09 at 3:03p
activeJun 2, '09 at 3:03p
posts1
users1
websitelucene.apache.org

1 user in discussion

Radha Sreedharan: 1 post

People

Translate

site design / logo © 2022 Grokbase