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?
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
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
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