add_to_all method

On this page

add_to_all

Adds the specified attributes to all documents in the index.

def add_to_all(self, attributes):
    ...
Parameter Type Description
attributes list[str] The attributes to add.

Example

    from groupdocs.search.common import AttributeChangeBatch

    batch = AttributeChangeBatch()
    batch.add_to_all(["public"])
    ```

### Aliases

These names call `add_to_all` too, limited to the overloads listed.

| Alias | Accepts |
| :- | :- |
| `add_to_all_files` | `add_to_all_files(attributes)` |
| `add_to_all_strings` | `add_to_all_strings(attributes)` |

### See Also
* class [`AttributeChangeBatch`](/search/python-net/groupdocs.search.common/attributechangebatch/)

On this page