[
https://issues.apache.org/jira/browse/LUCENENET-534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13877323#comment-13877323
]
Simon Svensson commented on LUCENENET-534:
------------------------------------------
Hi,
That code does not compile.
1) The name of btnStartService_Click sounds like you're using a WinForm or
ASP.NET. Is this correct?
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: https://issues.apache.org/jira/browse/LUCENENET-534
> 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 here.
> I asked it on stackoverlow.
> http://stackoverflow.com/questions/20973121/lucene-net-indexwriter-bug?noredirect=1#comment31536841_20973121
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)