term
. This is useful if one uses a document field to hold a unique ID string for the document. Then to delete such a document, one merely constructs a term with the appropriate field and the unique ID string as its text and passes it to this method. Returns the number of documents deleted.
@return the number of documents deleted
@see IndexReader#deleteDocuments(Term)
@throws IllegalStateException if the index is closed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|