lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Svensson (JIRA)" <>
Subject [jira] [Commented] (LUCENENET-534) IndexWriter deletes all files in my global index folder
Date Tue, 21 Jan 2014 08:08:20 GMT


Simon Svensson commented on LUCENENET-534:


That code does not compile. 

1) The name of btnStartService_Click sounds like you're using a WinForm or ASP.NET. Is this
2) Why are there no guards against multiple calls to btnStartService_Click?
3) There seems to be no re-evaluation of fiAktifYes on OpenIndexer. That means that writers
may decide to create new indexes when you don't expect it to. Why are you using fiAktifYes
and not the builtin locking provided by Lucene.Net?
4) You stated on Stack Overflow that performance is very important. Compound files are slower
than the normal format. Why are you using compound files, and is it required to reproduce
the bug?

If you decide to only answer a subset of my questions, answer number three. Why are you using
a custom (broken) locking system instead of the builtin Lucene.Net solution?

// Simon

> IndexWriter deletes all files in my global index folder
> -------------------------------------------------------
>                 Key: LUCENENET-534
>                 URL:
>             Project: Lucene.Net
>          Issue Type: Bug
>          Components: .NET API
>            Reporter: ali koyuncu
>            Priority: Critical
> I process new data list in memory-directory. After that I commit memory-directory to
disk directrory.  After I commit global index writer,I see the files isn't combined.So when
I reopen the service,indexwriter deletes all files in global index folder. I traced codes
> "deleter = new IndexFileDeleter(directory, deletionPolicy == null?new KeepOnlyLastCommitDeletionPolicy():deletionPolicy,
segmentInfos, infoStream, docWriter, synced);" in IndexWriter Init method,it deletes all file
> I asked it on stackoverlow.

This message was sent by Atlassian JIRA

View raw message