lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shai Erera <ser...@gmail.com>
Subject Re: Regarding CorruptedIndexException in using Lucene Facet Search
Date Fri, 07 Feb 2014 08:05:39 GMT
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 <jebarlin@gmail.com>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 <jebarlin@gmail.com
> >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 <serera@gmail.com> 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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message