change_attributes method

change_attributes

Applies the specified batch of attribute changes to indexed documents without reindexing.

def change_attributes(self, batch, options):
    ...
Parameter Type Description
batch AttributeChangeBatch The attribute change batch.
options ChangeAttributesOptions The change attributes options.

Example

from groupdocs.search.common import AttributeChangeBatch

# Prepare a batch of attribute changes
batch = AttributeChangeBatch()
# TODO: add attribute changes to the batch, e.g., batch.add(...)

# Apply the changes to the indexer
index.change_attributes(batch)

Aliases

These names call change_attributes too, limited to the overloads listed.

Alias Accepts
change_attributes_attribute_change_batch change_attributes_attribute_change_batch(batch, options)

See Also