lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Greene" <SGre...@metalseconomics.com>
Subject RE: Term offsets for highlighting
Date Tue, 27 Apr 2010 16:29:21 GMT
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:koji@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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


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


Mime
View raw message