Ah, multi-threaded highlighting. I implemented that once as a precursor to
ultimately other better things -- the UnifiedHighlighter.
Your ExecutorService ought to be a field on the handler. In inform() you
can call SolrCore.addCloseHook to ensure this executor is shut down.
I suggest looking at
Hi all.
In our team we thought about some tricky solution for queries with long time
highlighting. For example, highlighting that takes more than 25 seconds. So,
we created our component that wraps highlighting component of SOLR in this
way:
public void inform(SolrCore core) {
. . . .
sub