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 8182BD7F2 for ; Wed, 31 Oct 2012 14:24:00 +0000 (UTC) Received: (qmail 89082 invoked by uid 500); 31 Oct 2012 14:23:58 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 89037 invoked by uid 500); 31 Oct 2012 14:23:58 -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 89013 invoked by uid 99); 31 Oct 2012 14:23:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2012 14:23:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.160.48] (HELO mail-pb0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2012 14:23:51 +0000 Received: by mail-pb0-f48.google.com with SMTP id wy7so1057383pbc.35 for ; Wed, 31 Oct 2012 07:23:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=IQSKKxtQ2Rp5jGY51P3ENEtoNtoRKCeZ1AdEk0jHbN4=; b=nx7rEZs/IdH61XtmrzhkkOdp5xRAcH4ch88mNbiiWK+O7DZozVOXqDR+a0D/Uh0W8K eK6ZdFZ+z93T+r/aoC7Ldeh+k566gYQCBYyc8NgMQtZmphJodgm/AXOj3G7LkjwLAJZh g/8IGPXA5KPYT/ruzqo7asQcF/lH9QL4YHIFmfcSU00qwuD8KrIgloPRbm3y/Hm1iLxQ zfyAI2dRk146Y8JXCvnDNr0D5uTQt8APYrX1hjlt2xse5kwBsdjIpt/JXHhCH4sgcOl6 bf3PMtf5uRROLmkAMUo/jFCXmcssAfafjgJiEchUnGsj/fRCjPUgylVYxz8hRJJogtuN o3WQ== Received: by 10.68.230.234 with SMTP id tb10mr112739877pbc.71.1351693409944; Wed, 31 Oct 2012 07:23:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.152.67 with HTTP; Wed, 31 Oct 2012 07:23:09 -0700 (PDT) In-Reply-To: <025101cdb772$5e6981e0$1b3c85a0$@thetaphi.de> References: <50912AD0.9040300@sirma.bg> <025101cdb772$5e6981e0$1b3c85a0$@thetaphi.de> From: Michael McCandless Date: Wed, 31 Oct 2012 10:23:09 -0400 Message-ID: Subject: Re: IntField vs (IntDocValuesField + StoredField) To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnkkGzd/yK9GJ5PrvOWxbmecmb+vSzBWSByXHpqAqj3QjL9N7MJosgFcS92eT99/wHeD9Yp X-Virus-Checked: Checked by ClamAV on apache.org Uwe, that '1' was the value of the field not the precision step... And that's a good point about IntDocValues being more efficient for sorting. Mike McCandless http://blog.mikemccandless.com On Wed, Oct 31, 2012 at 10:16 AM, Uwe Schindler wrote: > And in general, using 1 as precisionStep is not always a good idea - size-wise and performance wise. I would use the default of 4. > > ----- > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: uwe@thetaphi.de > >> -----Original Message----- >> From: Michael McCandless [mailto:lucene@mikemccandless.com] >> Sent: Wednesday, October 31, 2012 2:52 PM >> To: java-user@lucene.apache.org >> Subject: Re: IntField vs (IntDocValuesField + StoredField) >> >> The big advantage of IntField is you can do NumericRangeQuery/Filter on the >> field. >> >> Mike McCandless >> >> http://blog.mikemccandless.com >> >> On Wed, Oct 31, 2012 at 9:42 AM, Ivan Vasilev wrote: >> > Hy Guys, >> > >> > Is there some advantage in speed or index size to use this: >> > >> > IntDocValuesField fld = new IntDocValuesField("fldName", 1); >> > StoredField fld = new StoredField("fldName", 1); >> > >> > instead of this: >> > >> > IntField fld = new IntField("fld", 1, Field.Store.YES); >> > >> > Searching, sorting and retrieving data from just one object (IntField) >> > is easier than dealing with two objects (IntDocValuesField and >> > StoredFiel) for the same field. >> > So as Lucene includes the also latter alternative, there might be some >> > advantages using it? >> > >> > Cheers, >> > Ivan >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> > For additional commands, e-mail: java-user-help@lucene.apache.org >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org