ok..thanks, I will post sample of both .. -LM
On 4/13/07, George Aroush <[EMAIL PROTECTED]> wrote:
Hi Laxmilal, Can you re-index with one field at a time and see which field maybe the cause? I'm betting it's the one you are storing NumberTools.StringToLong. Also, can you post the sample Java code? Thanks! -- George > -----Original Message----- > From: Laxmilal Menaria [mailto:[EMAIL PROTECTED] > Sent: Friday, April 13, 2007 7:09 AM > To: [EMAIL PROTECTED] > Subject: Exception while search in Lucene.Net and Index > prepared by LuceneJava > > Hello everyone, > > I have created Index using MyJava program..but when I have > search using .Net code, it gives exception "Run-time > exception thrown : > System.FormatException- string is the wrong size ".. > > MyIndexCollection have 3 Fileds: Name, Address and Cell No. > and I am index Cell No as NumberTools.LongtoString, and while > reading convert to NumberTools.StringToLong, its working in > java, but when created same with Lucene.net, it gives above > exception.. > > What is the problem? Please suggest me... > > My lucene version in both Java and .Net is 2.0. > > Thanks in advance, > Laxmilal >
