Hi Nils -- I don't think this is directly supported, but it seems like a good addition.
Another approach might be to expand to the synonyms in the query rather than in the index. That is, expand a search for [examplification] to [example OR examplification], which should already highlight correctly. You'd be trading a less efficient query for a small index. --nate On Thu, Jul 4, 2013 at 6:07 AM, Nils Diewald <[email protected]> wrote: > Hello, > I'm working with Lucene as well as with Lucy and I'm wondering if there > is a possibility to store multiple terms with independent offset > informations in Lucy, like this is possible with Lucene. > > Example: > The string "This is an example" should be indexed with the > offset-information: > * this,0-4 > * is,5-7 > * an,8-10 > * example,11-18 > * examplification, 11-18 > so in case the user searches for "examplification" the highlighter > highlights the synonym "example". > > I'm glad about any hints in the right direction. Thank you all for this > awesome tool! > Best, Nils
