Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C9B6110177 for ; Fri, 26 Dec 2014 11:01:53 +0000 (UTC) Received: (qmail 69212 invoked by uid 500); 26 Dec 2014 11:01:49 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 69146 invoked by uid 500); 26 Dec 2014 11:01:49 -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 69133 invoked by uid 99); 26 Dec 2014 11:01:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Dec 2014 11:01:48 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of manohar211@gmail.com designates 209.85.160.173 as permitted sender) Received: from [209.85.160.173] (HELO mail-yk0-f173.google.com) (209.85.160.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Dec 2014 11:01:22 +0000 Received: by mail-yk0-f173.google.com with SMTP id 19so4922936ykq.4 for ; Fri, 26 Dec 2014 03:00:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=xDbTxgknQvp9Ve2NZ/s9kwecxyPRIqkfCaHaQz/8ZJE=; b=o9qkykEX18qeio5Pd+3lyAyo+uJO2SVQ0Etxcv0LiqqnxgSHJRGKusDpXoJXTXaEuS oR6+cko+rCPHPaDpSnFbC64jIwMPiZG3HOLE66LdbC1EEDBxIiSwNV+5hMKK8AAR268n Jb/897cVjJ5WrUEBNkcgdLBBDUfGysodqcsURjscD+NBPEKU8p4p1IkETukEFeaoCBpA jhttGu7t8VvE5dQ8Vemoc0rKOntToMct6bx8n4bgItCde0afnyLUaNLonv3JHIt0Ijdf cf/t1LRjNz6PJldSKRgRtpqqWrjogK4Ru4OKONSbkZvGOdbSc2Vl/f2gwchqcJ22pTsg rO0g== X-Received: by 10.170.48.18 with SMTP id 18mr35897971ykq.112.1419591635660; Fri, 26 Dec 2014 03:00:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.170.110.70 with HTTP; Fri, 26 Dec 2014 03:00:15 -0800 (PST) In-Reply-To: <2E6A89A648463A4EBF093A9062C1668305A857EDF66B@SBMAILBOX1.sb.statsbiblioteket.dk> References: <2E6A89A648463A4EBF093A9062C1668305A857EDF662@SBMAILBOX1.sb.statsbiblioteket.dk> <2E6A89A648463A4EBF093A9062C1668305A857EDF66B@SBMAILBOX1.sb.statsbiblioteket.dk> From: Manohar Sripada Date: Fri, 26 Dec 2014 16:30:15 +0530 Message-ID: Subject: Re: Loading data to FieldValueCache To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a113a5a2a2b792c050b1c6fd0 X-Virus-Checked: Checked by ClamAV on apache.org --001a113a5a2a2b792c050b1c6fd0 Content-Type: text/plain; charset=UTF-8 Thanks Toke for the explanation, I will experiment with f.state.facet.method=enum Thanks, Manohar On Fri, Dec 26, 2014 at 4:09 PM, Toke Eskildsen wrote: > Manohar Sripada [manohar211@gmail.com] wrote: > > I have 100 million documents in my index. The maxDoc here is the maximum > > Documents in each shard, right? How is it determined that each entry will > > occupy maxDoc/8 approximately. > > Assuming that it is random whether a document is part of the result set or > not, the most efficient representation is 1 bit/doc (this is often called a > bitmap or bitset). So the total number of bits will be maxDoc, which is the > same as maxDoc/8 bytes. > > Of course, result sets are rarely random, so it is possible to have other > and more compact representations. I do not know how that plays out in > Lucene. Hopefully somebody else can help here. > > > If I have to add facet.method=enum every time in the query, how should I > > specify for each field separately? > > f.state.facet.method=enum > > See https://wiki.apache.org/solr/SimpleFacetParameters#Parameters > > - Toke Eskildsen > --001a113a5a2a2b792c050b1c6fd0--