Thank you Koji. Everything is now working as desired. You have been an invaluable resource for helping to resolve this issue and I really appreciate the time you spent reviewing this issue.
Best regards, Steve -----Original Message----- From: Koji Sekiguchi [mailto:k...@r.email.ne.jp] Sent: Monday, April 26, 2010 10:55 AM To: java-user@lucene.apache.org Subject: Re: Term offsets for highlighting Stephen Greene wrote: > Hi Koji, > > Thank you. I implemented a solution based on the FieldTermStackTest.java > and if I do a search like "iron ore" it matches iron or ore. The same is > true if I specify iron AND ore. > > The termSetMap[0].value[0] = ore and termSetMap[0].value[1] = iron. > > What am I missing in having a prhase match correctly? > > Thanks, > > Steve > > Hi Steve, Ah, I was wrong. I should say FieldPhraseList, not FieldTermStack. Please refer to Step 3 in Algorithm section of the following Javadoc: http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc/contrib-h ighlighter/org/apache/lucene/search/vectorhighlight/package-summary.html Koji -- http://www.rondhuit.com/en/ --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org