Method ExpungeDeletes
ExpungeDeletes(Boolean)
Just like Expunge
NOTE: if this method hits an OutOfMemoryError you should immediately close the writer. See above for details.
Declaration
public virtual void ExpungeDeletes(bool doWait)
Parameters
Type | Name | Description |
---|---|---|
System. |
doWait |
ExpungeDeletes()
Expunges all deletes from the index. When an index
has many document deletions (or updates to existing
documents), it's best to either call optimize or
expungeDeletes to remove all unused data in the index
associated with the deleted documents. To see how
many deletions you have pending in your index, call
Num
NOTE: if this method hits an OutOfMemoryError you should immediately close the writer. See above for details.
Declaration
public virtual void ExpungeDeletes()