Hi,
It sounds to me that you are highlighting the query string and not the
document. You will have to pass the document's content to
getBestFragments() and it will work I think.

Wouter

> hi there,
>     I am using lucene highlighter to highlight the searched result
> but it shows only the query string in bold highlights.
> IS THERE ANY WAY I CAN USE IT TO SHOW THE HIGHLIGHTED TEXT IN THE
> DOCUMENT WHERE IT IS FOUND?
>  I need to show the searched terms in highlights in the
> document where it is found and i want to do it without using
> org.apache.lucene.search.Hits
> Please help. Thanks in advance.



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to