name
are removed from the document otherwise only the fields in that particular page are removed.
@param name the field name
@param page the page to remove the field from or -1 to remove it from all the pages
@return true
if the field exists, false otherwise
This method should be used carefully. Be aware that as the field is actually removed from the record, the total number of fields is modified, and all fields to the right of the field removed shift one position to the left. @param fieldNum The position of the field to be removed, starting at zero. @throws IndexOutOfBoundsException Thrown, when the position is not between 0 (inclusive) and thenumber of fields (exclusive).
Removes field with the specified name from the document. If multiple fields exist with this name, this method removes the first field that has been added. If there is no field with the specified name, the document remains unchanged.
Note that the removeField(s) methods like the add method only make sense prior to adding a document to an index. These methods cannot be used to change the content of an existing index! In order to achieve this, a document has to be deleted from an index and a new changed version of that document has to be added.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|