Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@apache.org Received: (qmail 35223 invoked from network); 10 Sep 2002 14:08:56 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 10 Sep 2002 14:08:56 -0000 Received: (qmail 3425 invoked by uid 97); 10 Sep 2002 14:09:29 -0000 Delivered-To: qmlist-jakarta-archive-lucene-dev@jakarta.apache.org Received: (qmail 3387 invoked by uid 97); 10 Sep 2002 14:09:28 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 3356 invoked by uid 98); 10 Sep 2002 14:09:26 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) From: "Keith Chew SL" To: "Lucene Developers List" Subject: RE: RMI interface Date: Wed, 11 Sep 2002 02:41:04 +1200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20020910135044.15866.qmail@web12704.mail.yahoo.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Otis Thanks for the quick reply. Although the index may be small, they may change quite frequently. I am trying to avoid any manual copying of files across the cluster of servers. So far, you seem to agree with my approach. That's a good sanity check. =) Now, in order to achieve that, would IndexWriter and IndexReader be the only classes that need to be exposed as RMI classes? I think that should be enough to get an RMI client going. I also noticed that some of the input parameters like Term and Document are already serializable. That's good. I will look more closely into making IndexReader and IndexWriter into RMI classes, but I hope someone can help me out in this process too. Keith > -----Original Message----- > From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com] > Sent: Wednesday, 11 September 2002 1:51 a.m. > To: Lucene Developers List > Subject: Re: RMI interface > > > Yes, you could use RemoteSearchable for searching, but not for index > creation/removal. > Your approach should work, but if your index is so small, why bother > over the network to search it and make the search slower? > You may want to consider copying the index directory and all its files > to each of your JSP container PCs and have searches be local. > > Otis > > > --- Keith Chew SL wrote: > > Hi > > > > I noticed that a RemoteSearchable has been developed. I was hoping > > that it > > will coincide with what I am trying to achieve. Let me describe my > > scenario > > briefly: > > > > I have a cluster of JSP containers, each on different physical PCs. > > This > > makes it hard to use lucene for each instance, as it is based on the > > filesystem. Since the search feature of my application is quite small > > and > > lucene is very fast, it would be ok to setup one instance of lucene > > on a > > physical box. The idea was to expose the critical functions of lucene > > as RMI > > calls, eg: > > - Create index > > - Remove Index > > - Search > > > > Now, all JSP containers can talk to the "Lucene Search Server" via > > RMI and > > perform search functionalities. Does this approach sound feasible? Is > > anyone > > currently working in this area? Are there simpler alternatives? > > > > I was looking at the SqlDirectory class, but decided against using it > > because it has not been tested sufficiently, and lucene is really > > developed > > to work well with the file system. > > > > Any feedback would be appreciated. > > > > Regards > > Keith > > > > > __________________________________________________ > Yahoo! - We Remember > 9-11: A tribute to the more than 3,000 lives lost > http://dir.remember.yahoo.com/tribute > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > > -- To unsubscribe, e-mail: For additional commands, e-mail: