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 <ser...@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 <jebar...@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.