Hi Digy,

writer is LuceneIndexWriter
actually we do a wrapper to LuceneIndexWriter coz we plant to change index
writer for future implementation.

Why using lock(), yes we are in multi-thread environment.



2009/4/23 Digy <[email protected]>

> I don't see anything in your code related with Lucene.Net. What is
> "writer"?
> What does "AddContent" do to update the index? Why do use "lock", is your
> code multi-threaded? etc.
>
> If it is a bug of Lucene.Net, it is not easy to find it with the info you
> supplied.
>
> DIGY
>
> -----Original Message-----
> From: Floyd Wu [mailto:[email protected]]
>  Sent: Thursday, April 23, 2009 1:26 PM
> To: [email protected]
> Subject: Re: Luke-0.9.2 cannot open index files
>
> Hi Digy,
>
> here is my code for add a document to lucene
>
>        internal static void AddContent(Content content)
>        {
>            lock (writer)
>            {
>                writer.Open();
>                try
>                {
>                    writer.AddContent(content);
>                }
>                finally
>                {
>                    writer.Close();
>                }
>            }
>        }
>
> No magic, just like ordinary usage.
>
> Floyd
>
>
>
> 2009/4/23 Digy <[email protected]>
>
> > Hi Floyd,
> >
> > Is it possible to send your indexing code?
> >
> > DIGY
> >
> > -----Original Message-----
> > From: Floyd Wu [mailto:[email protected]]
> >  Sent: Thursday, April 23, 2009 12:56 PM
> > To: [email protected]
> > Subject: Re: Luke-0.9.2 cannot open index files
> >
> > Hello Digy,
> >
> > Actually my index files that you owned is created by Lucene.Net-2.3.2 in
> > trunk this morning.
> >
> > Floyd
> >
> >
> >
> > 2009/4/23 Digy <[email protected]>
> >
> > > Hi Floyd,
> > > I am using Luke 0.9.1. Altought it has the same problem while opening
> > your
> > > index, it can open my indices created with Lucene.Net 2.3.2 smoothly.
> > > Can you try to create the same index with Lucene.Net 2.3.2 in trunk?
> > >
> > > DIGY
> > >
> > > -----Original Message-----
> > > From: Floyd Wu [mailto:[email protected]]
> > > Sent: Thursday, April 23, 2009 10:49 AM
> > > To: [email protected]
> > >  Subject: Re: Luke-0.9.2 cannot open index files
> > >
> > > Hi Jeroen,
> > > First I'm sure that close the writer after doing my job. And if not
> > > properly
> > > closed writer is the main point, why Luke-0.8.1 could open? So I guess
> > > there
> > > must something wrong or changed between Lucene.Net or Luke.
> > >
> > > I've asked the same question to the author of Luke, and he( or she)
> told
> > me
> > > that index files format mabe changed but not very sure.
> > >
> > >
> > >
> > > 2009/4/23 Jeroen Lauwers <[email protected]>
> > >
> > > > Hi,
> > > >
> > > > Just a thought:
> > > > Are you sure your IndexWriter was properly closed?
> > > > I have had the same symptoms when I forgot to call the Close()
> method.
> > > >
> > > > Jeroen
> > > >
> > > > From: Floyd Wu [mailto:[email protected]]
> > > > Sent: donderdag 23 april 2009 8:24
> > > > To: [email protected]
> > > > Subject: Luke-0.9.2 cannot open index files
> > > >
> > > > Hi does anyone have the some problem?
> > > > My index files is built by Lucene.Net 2.3.1 and it can't be opend by
> > java
> > > > tool "Luke-0.9.2".
> > > > I tried to open the same index files with Luke-0.8.1 and it works
> fine.
> > > >
> > > > Attachment is my index files.
> > > > Every time I opened index files with Luke-0.9.2, Luke will show a
> > message
> > > > "Read past EOF".
> > > >
> > > > Please help on this.
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>

Reply via email to