lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <mkhlud...@griddynamics.com>
Subject Re: RequestProcessor with IndexSearcher for Different Core
Date Mon, 19 Oct 2015 14:48:37 GMT
Assuming you need to access sibling core from UpdateRequestHandler you can
how it's done on cross core join
https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/java/org/apache/solr/search/join/ScoreJoinQParserPlugin.java#L256
don't forget to close all resources.



On Mon, Oct 19, 2015 at 7:07 AM, Kilian Woods <kilian.woods@gmail.com>
wrote:

> Hi All,
>
> I am looking to solve a design problem of mine.
>
> I want to create a SolrIndexSearcher for a *different* core inside a
> RequestProcessor.
>
> I know how to create a SolrIndexSearcher from the SolrQueryRequest but I
> want to search a different core instead. I want to update the current
> document with data from another core.
>
> At the moment I am creating a separate HttpSolrServer for the different
> core and querying that way but would like to simplify as this approach
> seems inefficient.
>
> Any ideas?
>
> Kind Regards,
> Kilian.
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
<mkhludnev@griddynamics.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message