You may find this blog interesting. http://joelsolr.blogspot.com/2017/03/streaming-nlp-is-coming-in-solr-66.html
It deals with how the analyzer chain can now be applied in Streaming Expressions. It will be part of the 6.6 release and is in master and branch_6x already. Joel Bernstein http://joelsolr.blogspot.com/ On Sat, Apr 1, 2017 at 5:23 PM, Rick Leir <rl...@leirtech.com> wrote: > On 2017-04-01 10:51 AM, John Blythe wrote: > >> Hi Rick. I should explain further. I'm not looking to have the input >> stored >> but rather the final product, specifically the synonym that an input may >> be >> mapped to. >> >> If I have McDonald, McD's, and Mac Donald all mapped to "McDonald's" I'd >> like to be able to not only access which one was sent to solr for search >> (e.g. "McD's") but _also_ the synonym it mapped to: "McDonald's" >> >> Does this make more sense? >> >> Thanks for any continued discussion >> > Shawn answered well, as always. > Here is possibly another way. You can enable highlighting, and scan the > output to find the passage which is highlighted. But it can be a challenge > to get highlighting working correctly (I have not yet used the new > highlighter). > cheers -- Rick >