From java-user-return-53981-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Wed Oct 31 13:53:07 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 13A86D6C7 for ; Wed, 31 Oct 2012 13:53:07 +0000 (UTC) Received: (qmail 90158 invoked by uid 500); 31 Oct 2012 13:53:05 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 90033 invoked by uid 500); 31 Oct 2012 13:53:04 -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 90010 invoked by uid 99); 31 Oct 2012 13:53:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2012 13:53:04 +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 (athena.apache.org: local policy) Received: from [209.85.210.48] (HELO mail-da0-f48.google.com) (209.85.210.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2012 13:52:59 +0000 Received: by mail-da0-f48.google.com with SMTP id z8so677180dad.35 for ; Wed, 31 Oct 2012 06:52:38 -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=2n7wW2c3j5WKH2pEGN4c9/VJcXQdOiNiHzyZVbz62uU=; b=CzRA364yFh/Udf4jRB1Sw/+EXo38kOlKpvbtHQuFD/PFfESbdqA0NN8fGbh4cj72QC PiCEDEqwRBL3jco7o7Ai2x+zcrE+MHoAX/W1mUNBAZkB12SeNDuaSv8mS+28uuzVA+Vl sOJOgvFPLWg8WyHjO+ZCEVBwfILWILi9Iz1YZc+53XCqqob9vJQexjVqnd4nlO1q8s1n AE7uDj9qOx2GFPJgkm2dPxry+ZA5Ux1BKfVptLnrURPzLxRT1mcSbCFqPd0Nn+aqsWqG r8DW1pktCORvcFCg9omywd8GA+CXUzkzam95gMCXLcpoMTgWmRoDjr3j3Pffr7bg/ai4 Vr8Q== Received: by 10.68.230.234 with SMTP id tb10mr112492926pbc.71.1351691558578; Wed, 31 Oct 2012 06:52:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.152.67 with HTTP; Wed, 31 Oct 2012 06:52:18 -0700 (PDT) In-Reply-To: <50912AD0.9040300@sirma.bg> References: <50912AD0.9040300@sirma.bg> From: Michael McCandless Date: Wed, 31 Oct 2012 09:52:18 -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: ALoCoQm82uKXY8I8OxaSt15fD+jEECrQxzL/SXgegucUg72ezRZfoSf2gmlQtnHsv52MIRu5gSwT X-Virus-Checked: Checked by ClamAV on apache.org 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