Hi!
I have a solrconfig.xml like:
<requestHandler name="/ABC" class="solr.SearchHandler">
<lst name="defaults">
<str name="echoParams">all</str>
<int name="start">0</int>
<int name="rows">10</int>
<str name="wt">ABC</str>
<str name="sort">score desc,rating asc</str>
<str name="fq">CUSTOM FQ</str>
<str name="version">2.2</str>
<str name="fl">CUSTOM FL</str>
</lst>
<arr name="components">
<str>validate</str>
<str>CUSTOM ABC QUERY COMPONENT</str>
<str>stats</str>
<str>debug</str>
</arr>
</requestHandler>
<requestHandler name="/XYZ" class="solr.SearchHandler">
<lst name="defaults">
<str name="echoParams">all</str>
<int name="start">0</int>
<int name="rows">1</int>
<str name="wt">XYZ</str>
<str name="sort">score desc</str>
<str name="fl">CUSTOM FL</str>
<str name="version">2.2</str>
<str name="defType">edismax</str>
<float name="tie">1</float>
<str name="qf">CUSTOM QF</str>
<str name="qs">0</str>
<str name="mm">1</str>
<str name="q.alt">*:*</str>
</lst>
<arr name="components">
<str>validate</str>
<str>CUSTOM XYZ QUERY COMPONENT</str>
<str>stats</str>
<str>debug</str>
</arr>
</requestHandler>
In ABC QUERY COMPONENT, I customize prepare() and process(). In its
process() I want to call the /XYZ request handler and include those results
in the results for ABC. Is that possible?
I know the org.apache.solr.spelling.SpellCheckCollator calls a
QueryComponent and invokes prepare and process on it, but I want to invoke
the request handler directly. It¹d be silly to use SolrJ since both handlers
are in the same core.
Any suggestions?
Thanks!
Maria