You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Harpreet S Walia <ha...@sansuisoftware.com> on 2003/02/21 07:37:07 UTC

Using term-highlighter

Hi,

I am trying to use the term-highlighter posted on the contribution page for lucene. I downloaded the files and made the changes mentioned in the whitepaper to the classes in the  lucene search package.

can anbody please tell me, how to invoke the highligher while searching. currently i am performing the searches as follows
            
            org.apache.lucene.search.Searcher searcher = new IndexSearcher(indexPath);
            Query query = QueryParser.parse(srchqry,field, new SimpleAnalyzer());
            Hits hits = searcher.search(query);

what changes will be needed in these search steps.

Thanks in advance !

Regards,
Harpreet