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 0DC2A101F0 for ; Wed, 15 Oct 2014 12:37:50 +0000 (UTC) Received: (qmail 6478 invoked by uid 500); 15 Oct 2014 12:37:48 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 6415 invoked by uid 500); 15 Oct 2014 12:37:48 -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 6402 invoked by uid 99); 15 Oct 2014 12:37:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2014 12:37:48 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jigaronline@gmail.com designates 209.85.213.176 as permitted sender) Received: from [209.85.213.176] (HELO mail-ig0-f176.google.com) (209.85.213.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2014 12:37:21 +0000 Received: by mail-ig0-f176.google.com with SMTP id hn15so17256570igb.3 for ; Wed, 15 Oct 2014 05:37:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=IQrJVxVppwqpG9oytKyedsiDS/vRESzrGwN+Ioa2+Sw=; b=deHpD9IyVY6KmalZS+y0m+qVOUcWtrn3DJml9MiqF6MeQcieokSj+Hx0elS5wMp0kk tTRjoNPB1+KNQE7A1GA7USDh3fbX68jEJQ4e//7m8rMAAkpXaNZTOHwQtPKXJP5enfGI sdjSRjOQYdUF+VQ4/eN7TiqiL0xfx+ZRMVtWIviuzQvpc11i5d6TEmWSq4tGn6hiCmvW Zopy0iGgeO4m+UXuT3petW6WwISRUPc5XhwOGRkSwcPrYlRo2fnP6xWDDb+cUyPO4GeH Nj455Be/mtF10E2P//GBuet4MXflMj9hrUPwTUsSvakHZIlolgyDr0LvTj+P2jLOf48+ XhlA== MIME-Version: 1.0 X-Received: by 10.50.1.51 with SMTP id 19mr13490517igj.33.1413376639566; Wed, 15 Oct 2014 05:37:19 -0700 (PDT) Received: by 10.107.33.206 with HTTP; Wed, 15 Oct 2014 05:37:19 -0700 (PDT) In-Reply-To: References: Date: Wed, 15 Oct 2014 18:07:19 +0530 Message-ID: Subject: Re: Exception from FastTaxonomyFacetCounts From: Jigar Shah To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=047d7bdc15d0891d1205057564b8 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc15d0891d1205057564b8 Content-Type: text/plain; charset=UTF-8 Ok. Yes changing to SearcherTaxonomyManager from SearcherManager, helped fixing the issue Thanks very much. On Wed, Oct 15, 2014 at 2:36 PM, Shai Erera wrote: > Yes, SearcherTaxonomyManager returns a SearcherAndTaxonomy containing a > sync'd IndexSearcher and DirectoryTaxonomyReader. > > Shai > > On Mon, Oct 13, 2014 at 12:15 PM, Jigar Shah > wrote: > > > In my application i have two intances of SearcherManager. > > > > 1) SearcherManager with 'applyAllDeletes = true' which is used by > Indexer. > > (Works in NRT mode, deletes should be visible to it, also i have > > ControlledRealTimeReopenThread, which refeshes searcher) > > 2) SearcherManager with 'applyAllDeletes = false' which is used by > searcher > > (Only performs search, javadoc says, we may gain some performance if > > 'false', as it will not wait for flushing deletes,). > > > > I have intoduced Taxonomy Facets in my applicaiton. Should i replace both > > SearcherManager by SearcherTaxonomyManager (one with applyAllDeletes=true > > and another applyAllDeletes=false) > > > > Will "IndexSearcher" and "TaxonomyReader" be in sync, in both > > SearcherTaxonomyManager ? > > > > On Fri, Oct 10, 2014 at 12:08 AM, Shai Erera wrote: > > > > > This usually means that your IndexReader and TaxonomyReader are out of > > > sync. That is, the IndexReader sees category ordinals that the > > > TaxonomyReader does not yet see. > > > > > > Do you use SearcherTaxonomyManager in your application? It ensures that > > the > > > two are always in sync, i.e. reopened together and that your > application > > > always sees a consistent view of the two. > > > > > > Shai > > > > > > On Tue, Oct 7, 2014 at 10:03 AM, Jigar Shah > > wrote: > > > > > > > Intermittently while search i am getting this exception on huge > index. > > > > (FacetsConfig used while indexing and searching is same.) > > > > > > > > java.lang.ArrayIndexOutOfBoundsException: 252554 > > > > 06:28:37,954 ERROR [stderr] at > > > > > > > > > > > > > > org.apache.lucene.facet.taxonomy.FastTaxonomyFacetCounts.count(FastTaxonomyFacetCounts.java:73) > > > > 06:28:37,954 ERROR [stderr] at > > > > > > > > > > > > > > org.apache.lucene.facet.taxonomy.FastTaxonomyFacetCounts.(FastTaxonomyFacetCounts.java:49) > > > > 06:28:37,954 ERROR [stderr] at > > > > > > > > > > > > > > org.apache.lucene.facet.taxonomy.FastTaxonomyFacetCounts.(FastTaxonomyFacetCounts.java:39) > > > > 06:28:37,954 ERROR [stderr] at > > > > > > > > > > > > > > com.company.search.CustomDrillSideways.buildFacetsResult(LuceneDrillSideways.java:41) > > > > 06:28:37,954 ERROR [stderr] at > > > > org.apache.lucene.facet.DrillSideways.search(DrillSideways.java:146) > > > > 06:28:37,955 ERROR [stderr] at > > > > org.apache.lucene.facet.DrillSideways.search(DrillSideways.java:203) > > > > > > > > Thanks, > > > > Jigar Shah > > > > > > > > > > --047d7bdc15d0891d1205057564b8--