change_attributes method
Leave feedback
On this page
Applies the specified batch of attribute changes to indexed documents without reindexing during the update operation.
def change_attributes(self, batch):
...
| Parameter | Type | Description |
|---|---|---|
| batch | AttributeChangeBatch |
The attribute change batch. |
import os
from groupdocs.search import Index
from groupdocs.search.common import AttributeChangeBatch
with Index("./index") as index:
index.add("./documents")
batch = AttributeChangeBatch()
batch.add([os.path.abspath("./documents/lecture.txt")], ["main"])
index.change_attributes(batch)
These names call change_attributes too, limited to the overloads listed.
| Alias | Accepts |
|---|---|
change_attributes_attribute_change_batch |
change_attributes_attribute_change_batch(batch) |
- class
Index
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.