sorry, user error... please discard the question ;-)
2013/1/30 Bernd Müller :
> Hello,
>
> In my index, I have documents identified by a field with their unique
> identifier. Now, I tried to delete documents having such a unique
> identifier using deleteDocuments(Term t). If I test the IndexWriter
Documents are still only "marked' as deleted.
expungeDeletes was renamed to forceMergeDeletes, but it's a horribly,
horribly costly operation.
Normal merging will collapse the deletes anyway, and the default merge
policy favors segments with more deletions ... so you shouldn't have
to force merge
it seems that a doc is really deleted until next index merge or something.
I'm not sure.
-
--
Email: wuqiu.m...@qq.com
--
--
View this message in context:
http://lucene.472066.n3.nabble.com/IndexWriter-deleteDocuments-tp4037365p4037377
Hello,
In my index, I have documents identified by a field with their unique
identifier. Now, I tried to delete documents having such a unique
identifier using deleteDocuments(Term t). If I test the IndexWriter
for deletions with hasDeletions(), it tells me true. Even if I commit
and close the ind
Hi all,
I've a problem about using IndexWriter#deleteDocuments to delete more
then one document at once.
the following is my code:
Try 1:
StringBuffer query_values = new StringBuffer();
query_values.append(UNIQUEID_FIELD_NAME);
query_values.a