From java-user-return-53194-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Wed Jul 11 10:18:55 2012 Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1212C9956 for ; Wed, 11 Jul 2012 10:18:55 +0000 (UTC) Received: (qmail 66422 invoked by uid 500); 11 Jul 2012 10:18:53 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 66259 invoked by uid 500); 11 Jul 2012 10:18:52 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 66221 invoked by uid 99); 11 Jul 2012 10:18:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 10:18:50 +0000 X-ASF-Spam-Status: No, hits=3.0 required=5.0 tests=FORGED_YAHOO_RCVD,FSL_RCVD_USER,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 10:18:44 +0000 Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Sotzz-0002pm-7L for java-user@lucene.apache.org; Wed, 11 Jul 2012 03:18:23 -0700 Date: Wed, 11 Jul 2012 03:18:23 -0700 (PDT) From: Konstantyn Smirnov To: java-user@lucene.apache.org Message-ID: <1342001903207-3994350.post@n3.nabble.com> Subject: RAMDirectory and expungeDeletes()/optimize() MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all in my app (Lucene 3.5.0 powered) I index the documents (not too many, say up to 100k) using the RAMDirectory. Then I need to send the segment over the network to be merged with the existing index other there. The segment need to be as "slim" as possible, e.g. without any pending deleted documents. My code looks like Is this a legitimate way to do that? Doesn't it conflict with the JavaDoc saying: TIA -- View this message in context: http://lucene.472066.n3.nabble.com/RAMDirectory-and-expungeDeletes-optimize-tp3994350.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org