Return-Path: Delivered-To: apmail-lucene-solr-user-archive@locus.apache.org Received: (qmail 36391 invoked from network); 5 Jan 2009 12:49:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jan 2009 12:49:14 -0000 Received: (qmail 76958 invoked by uid 500); 5 Jan 2009 12:49:12 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 76929 invoked by uid 500); 5 Jan 2009 12:49:12 -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 76918 invoked by uid 99); 5 Jan 2009 12:49:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 04:49:11 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [69.55.225.129] (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 12:49:03 +0000 Received: by ehatchersolutions.com (Postfix, from userid 504) id 0DE1F30EFC1A; Mon, 5 Jan 2009 05:48:42 -0700 (MST) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on javelina X-Spam-Level: Received: from [10.0.1.193] (unknown [138.210.10.225]) by ehatchersolutions.com (Postfix) with ESMTP id E9A6C30EFC18 for ; Mon, 5 Jan 2009 05:48:41 -0700 (MST) Message-Id: From: Erik Hatcher To: solr-user@lucene.apache.org In-Reply-To: <65b8077d0901050433j7de85fc7ia6aaf7ed337e98ef@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Issue with Java Client code Date: Mon, 5 Jan 2009 07:48:40 -0500 References: <65b8077d0901050433j7de85fc7ia6aaf7ed337e98ef@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.1.1 On Jan 5, 2009, at 7:33 AM, Kalidoss MM wrote: > We have created a Java EmbeddedSolrServer Client Code, I can able > to > add, delete, update the Solr content - At the same time i cant able to > search the updated conente from the Running Solr client(jetty) web > interface. > > My requirement is, All search need to happen from/by running web > Solr(jetty, 8983) and all write should happened from Java client code. > > Both(jeety and javaclient) are using 'Core0' as core name, and > both data > directory, schema, solrconfig are same. - is there any fix available?? > > Case1: > 1) solr started in 8983 port as Core0, > 2) Running a java client(Core0) to add one record say > "hitest", with > commit > 3) when i search for hitest, am not getting any result, > 4) after i restart the solr(8983) and search for 'hitest' am > getting > the result. > > - > - both Solr, java client is using the same dada directory, > schema.xml, > solrconfig.xml > fyi: even this java client is working when solr is not started > > > is it possible to handle the read/search by webinterface, and all > write > from java-client(with out http) ???? You'll need to issue the to the Solr server (not the embedded one) for it to take place there. A commit to EmbeddedSolrServer will make newly added documents visible through _that_ SolrServer, but not to anyone other process (such as Solr via jetty) pointing at the Lucene index. Erik