Thank you for your response. I believe that the Tagger is used for NER, which is different than what I am trying to do. It is also available only with Solr 7 and I would need this to work with version 6.5.0.
I am trying to manipulate the data that I already have in the response, and I can't find a good example of a plugin that does something similar, so I can see how I can access the response and construct a new one. Your help is greatly appreciated. Thank you, Maria On Tue, Aug 6, 2019 at 3:19 PM Erik Hatcher <erik.hatc...@gmail.com> wrote: > I think you’re looking for the Solr Tagger, described here: > https://lucidworks.com/post/solr-tagger-improving-relevancy/ > > > On Aug 6, 2019, at 16:04, Maria Muslea <maria.mus...@gmail.com> wrote: > > > > Hi, > > > > I am trying to implement a plugin that will modify my query response. For > > example, I would like to execute a query that will return something like: > > > > {... > > "description":"flights at LAX", > > "highlight":"airport;11;3" > > ...} > > This is information that I have in my document, so I can return it. > > > > Now, I would like the plugin to intercept the result, do some processing > on > > it, and return something like: > > > > {... > > "description":"flights at LAX", > > "highlight":{ > > "concept":"airport", > > "description":"flights at <em>LAX</em>" > > ...} > > > > I looked at some RequestHandler implementations, but I can't find any > > sample code that would help me with this. Would this type of plugin be > > handled by a RequestHandler? Could you maybe point me to a sample plugin > > that does something similar? > > > > I would really appreciate your help. > > > > Thank you, > > Maria >