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