Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2A439188E0 for ; Mon, 19 Oct 2015 14:57:40 +0000 (UTC) Received: (qmail 19627 invoked by uid 500); 19 Oct 2015 14:49:36 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 19562 invoked by uid 500); 19 Oct 2015 14:49:36 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 19550 invoked by uid 99); 19 Oct 2015 14:49:36 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2015 14:49:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D7D321A0A81 for ; Mon, 19 Oct 2015 14:49:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.9 X-Spam-Level: ** X-Spam-Status: No, score=2.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=griddynamics.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id PW5wL86uuPGt for ; Mon, 19 Oct 2015 14:49:25 +0000 (UTC) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id D76D620FE0 for ; Mon, 19 Oct 2015 14:49:24 +0000 (UTC) Received: by lbbwb3 with SMTP id wb3so84611462lbb.1 for ; Mon, 19 Oct 2015 07:49:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=griddynamics.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=/ZB7I/dz63pDWhbWj9EkgWUxamv3ukvqQc5dfcnZTg0=; b=rkdCpNURmFXe0GGBPGwR8hnfHa0/XRITClWMUitHbBgBuM68MTvvPgj1rSv2FEBsjK vOt3G9oC4Jyh80LPQVts8quVS825ZTpDpwDP1GTNh1R9iTECEvNofYR1oDo9STbiXQUj F1ylaT61XF4d5JfCOAMB/i7siOyUG+CuRI6TU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=/ZB7I/dz63pDWhbWj9EkgWUxamv3ukvqQc5dfcnZTg0=; b=E8a0wV6qosGjnJpOOSP3zBZrdv6WzWan9R1QNBDARAeN+HWhrtpIrRGhadjXaeM13v 9MlU6fsyCV4zWnQrUK2MTSVhurWEa2F9tgUnARkn4R2oMXV9f6A6fyPDsds8gUqUIcxi dHm00MRxVe0rnyHXMt+Fv3S2HWmNOE6ankby6TvYb+oVvF/8bhdvMZmjauZ9Kx+k5ogc CkNYOMyCWOWah+LOZt/NnQvtN0pGg/4c08NeqkPNMnYxhhokV6Mu1FgnkovGQYog+Puy y4gNrx39NuiwrLbUEhFrDa5dKmQ1OsNiagVtVok/W2qsi4vlrmZWZJvIeCOq0b0b5ZKY XQGw== X-Gm-Message-State: ALoCoQn1zibifGDAXK+dBai3Q6RRRrNtv0I3cgaPgdWl8xRVS1pJ/8bDy5bB7BiIkJz4B6tCVSOh X-Received: by 10.112.140.4 with SMTP id rc4mr15087653lbb.26.1445266156929; Mon, 19 Oct 2015 07:49:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.66.43 with HTTP; Mon, 19 Oct 2015 07:48:37 -0700 (PDT) In-Reply-To: References: From: Mikhail Khludnev Date: Mon, 19 Oct 2015 07:48:37 -0700 Message-ID: Subject: Re: RequestProcessor with IndexSearcher for Different Core To: solr-user Content-Type: multipart/alternative; boundary=001a11c26324e3e0be0522763fdb --001a11c26324e3e0be0522763fdb Content-Type: text/plain; charset=UTF-8 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 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 --001a11c26324e3e0be0522763fdb--