Hi Rebecca, Thanks a lot for your reply. It sounds like a very solid alternative. What i miss is how you do the highlighting. Suppose that i would search for 'strong tea' and this would result in a hit on 'black tea' . Where strong is an synonym to black. How do you create a highlighter for that?
Thanks, Aad > > Hope that helps, > > bec :) > > > Sent from my iPhone > > On 08/06/2010, at 3:19 PM, Aad Nales <aad.na...@gmail.com> wrote: > > Hi All, > > I storing synonyms in an index. e.g. 'institute' as a synonym for > 'organization'. Since I want to highlight the orginal term when > showing the result i am storing a Payload with each synononym. So in > this case the term 'institute' has a payload for 'organization'. I > execute a search and the document is found. Now i want to create the > highlighting and here is where it goes wrong. I am unable to figure > out how to 'read' the Payload from the document. Perhaps i am looking > at it the wrong way? What i want to avoid is having to expand my > search query with the synonyms. Is there anybody who could give me a > hint how to go about this in lucene 3.0.1 > > tia, > Aad > > --------------------------------------------------------------------- > 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