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 5502C10F9D for ; Fri, 7 Feb 2014 11:04:47 +0000 (UTC) Received: (qmail 94513 invoked by uid 500); 7 Feb 2014 11:04:43 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 94280 invoked by uid 500); 7 Feb 2014 11:04:42 -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 94222 invoked by uid 99); 7 Feb 2014 11:04:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Feb 2014 11:04:39 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jebarlin@gmail.com designates 209.85.192.178 as permitted sender) Received: from [209.85.192.178] (HELO mail-pd0-f178.google.com) (209.85.192.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Feb 2014 11:04:32 +0000 Received: by mail-pd0-f178.google.com with SMTP id y13so3015965pdi.37 for ; Fri, 07 Feb 2014 03:04:10 -0800 (PST) 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=1HGBGALDDadR0MH7Wv0QXQxtmvIEr1ssMefze9UazIs=; b=ODDXV8denPOWDTTAK1o5C8ALcNoacZdmj9I8BVb0/iEs0Nv5JFD784ruNq4/EvYMUC Bu0BJrHoS4keB5LxvELs1YkpMOj4oil9FbePmfIaijFhRQRYIGELxAz7nCKmbZ3pc/7v VlLDMEI3wrgVt6ABLHmjgitZ64k8xSz2KViEnA7l/CL/t0pwDgJavMuCXinZnuT396pL RZfhZploMdT316kIJlAmZjKgiLe30CARchXyxmWnyId+dlY/AqLJe3YSlS22C1Jtairx 0WS0TA7t++xIGL6S5pmlL6mX1wxAszfhwKup+W0e3xZ/Ah/V/1Le8GsjG4CGArsZ+83Y yTAg== MIME-Version: 1.0 X-Received: by 10.66.163.164 with SMTP id yj4mr7002578pab.91.1391771050870; Fri, 07 Feb 2014 03:04:10 -0800 (PST) Received: by 10.68.178.3 with HTTP; Fri, 7 Feb 2014 03:04:10 -0800 (PST) In-Reply-To: References: Date: Fri, 7 Feb 2014 20:04:10 +0900 Message-ID: Subject: Re: Regarding CorruptedIndexException in using Lucene Facet Search From: Jebarlin Robertson To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=047d7b86ec5e188b8d04f1cef3f4 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b86ec5e188b8d04f1cef3f4 Content-Type: text/plain; charset=ISO-8859-1 Thank you very much Mr. Shai for all your help :) I will follow the same :) Thank you once again :) Regards, Jebarlin.R On Fri, Feb 7, 2014 at 5:05 PM, Shai Erera wrote: > Hi > > Since 4.2 the facets module has gone under major changes, both API and > implementation and performance has improved x4. If you want to upgrade, > then I recommend waiting for 4.7 since we overhauled the API again - this > will save you the efforts to migrate to e.g 4.6 and then to the new API > once 4.7 is out. > > And you should always use the same version of Lucene for all of its modules > - it's the only way to guarantee things will work :). > > Shai > > > On Fri, Feb 7, 2014 at 9:05 AM, Jebarlin Robertson >wrote: > > > Dear Shai, > > > > I only made the mistake by using the same directory for both IndexWriter > > and FacetWriter. Now it is working fine .Thank you :) > > > > Could you please tell me if there is any major performance difference in > > using *3.6 and 4.x* *Facet *library?. > > Since I use the Lucene 3.6 version, I am using Facet library also the > same > > version. > > > > Kindly guide me to use the best and the working one. :) > > Thank you :) > > > > > > Thanks and Regards, > > Jebarlin Robertson.R > > > > > > > > On Fri, Feb 7, 2014 at 12:41 PM, Jebarlin Robertson > >wrote: > > > > > Dear Shai, > > > > > > Thank you for your reply. > > > > > > Actually I am using Lucene3.6 in Android. It is working fine. but with > > the > > > latest versions there are some issues. > > > Now I just added this Facet search library also along with the old > Lucene > > > code. > > > After this Facet search integration, it is giving these Corrupted and > > > NullpointerExcpetion when I add the document object to the IndexWriter. > > > > > > Below is the exception. > > > > > > 02-07 12:38:11.006: W/System.err(5411): java.lang.NullPointerException > > > 02-07 12:38:11.006: W/System.err(5411): at > > > > > > org.apache.lucene.facet.index.streaming.CategoryParentsStream.incrementToken(CategoryParentsStream.java:138) > > > 02-07 12:38:11.006: W/System.err(5411): at > > > > > > org.apache.lucene.facet.index.streaming.CountingListTokenizer.incrementToken(CountingListTokenizer.java:63) > > > 02-07 12:38:11.006: W/System.err(5411): at > > > > > > org.apache.lucene.facet.index.streaming.CategoryTokenizer.incrementToken(CategoryTokenizer.java:48) > > > 02-07 12:38:11.006: W/System.err(5411): at > > > > > > org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:141) > > > 02-07 12:38:11.006: W/System.err(5411): at > > > > > > org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFieldProcessorPerThread.java:276) > > > 02-07 12:38:11.006: W/System.err(5411): at > > > > > > org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:766) > > > 02-07 12:38:11.006: W/System.err(5411): at > > > org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2060) > > > 02-07 12:38:11.006: W/System.err(5411): at > > > org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2034) > > > 02-07 12:38:11.006: W/System.err(5411): at > > > > > > com.example.lucene.threads.AsyncIndexWriter.addDocumentSynchronous(AsyncIndexWriter.java:343) > > > 02-07 12:38:11.006: W/System.err(5411): at > > > > > > com.example.lucene.threads.AsyncIndexWriter.addDocumentSync(AsyncIndexWriter.java:371) > > > > > > > > > Just try to help, If I am missing something. > > > > > > Thanks and regards, > > > Jebarlin.R > > > > > > > > > On Thu, Feb 6, 2014 at 11:04 PM, Shai Erera wrote: > > > > > >> It looks like something's wrong with the index indeed. Are you sure > you > > >> committed both the IndexWriter and TaxoWriter? > > >> Do you have some sort of testcase / short program which demonstrates > the > > >> problem? > > >> > > >> I know there were few issues running Lucene on Android, so I cannot > > >> guarantee it works fully .. we never tested this code on Android. > > >> > > >> Shai > > >> > > >> > > >> On Thu, Feb 6, 2014 at 3:21 PM, Jebarlin Robertson < > jebarlin@gmail.com > > >> >wrote: > > >> > > >> > Hi, > > >> > > > >> > I am using Lucene 3.6 version for indexing and searching in Android > > >> > application. > > >> > I have implemented Facet search. But when I try to search, it is > > giving > > >> the > > >> > below exception while creating the DirectoryTaxonomyReader object. > > >> > > > >> > 02-06 21:00:58.082: W/System.err(15518): > > >> > org.apache.lucene.index.CorruptIndexException: Missing parent data > for > > >> > category 1 > > >> > > > >> > > > >> > Can anyone help me to know what is the problem for this. Whether the > > >> > Categories are not added to the Lucene index or some other problem. > > >> > > > >> > > > >> > It will be better if somebody provides some sample code to use > lucene > > >> facet > > >> > for 3.6 version. > > >> > > > >> > > > >> > -- > > >> > Thanks & Regards, > > >> > Jebarlin Robertson.R > > >> > GSM: 91-9538106181. > > >> > > > >> > > > > > > > > > > > > -- > > > Thanks & Regards, > > > Jebarlin Robertson.R > > > GSM: 91-9538106181. > > > > > > > > > > > -- > > Thanks & Regards, > > Jebarlin Robertson.R > > GSM: 91-9538106181. > > > -- Thanks & Regards, Jebarlin Robertson.R GSM: 91-9538106181. --047d7b86ec5e188b8d04f1cef3f4--