Re: retrieving Payload 3.0.1

2010-06-08 Thread Aad Nales
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?

Re: retrieving Payload 3.0.1

2010-06-08 Thread Rebecca Watson
Sorry, forgot to say: We use solr, so we apply the standard highlighter component (ie you could use lucene contrib one) -- this highlights either institute or organisation in the stored field string: ... / institute organisation / but we modify our JavaScript to display only the first term

Re: retrieving Payload 3.0.1

2010-06-08 Thread Rebecca Watson
Hi aad, See the search.payload package if you want examples of reading in payloads at query time for scoring purposes, but returning the payload/ using it to highlight will require you to write more custom lucene classes. We work with synonyms too, but rather than store the synonym in payload lik

retrieving Payload 3.0.1

2010-06-08 Thread Aad Nales
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