lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Svensson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENENET-534) IndexWriter deletes all files in my global index folder
Date Thu, 09 Jan 2014 05:13:50 GMT

    [ https://issues.apache.org/jira/browse/LUCENENET-534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866324#comment-13866324
] 

Simon Svensson commented on LUCENENET-534:
------------------------------------------

As I answered you on Stack Overflow; you do have some non-conventional handling of your indexes
and writers. This issue is most probably due to your implementation, how you handle your writers
and when you're committing them.

Could you provide a small stand-alone code sample with the minimal amount of code required
(with fake data) that can reproduce the problem?

> 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)

Mime
View raw message