can_update_version method

can_update_version

Checks whether an index in the specified directory can be updated to the latest version.

def can_update_version(self, index_path):
    ...
Parameter Type Description
index_path str The index directory path.

Returns: bool: True if an index in the specified directory can be updated to the latest version; otherwise False.

Example

from groupdocs.search import IndexUpdater

updater = IndexUpdater()
if updater.can_update_version("./old_index"):
    print("The index can be updated.")
else:
    print("The index is already up to date or cannot be updated.")

Aliases

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

Alias Accepts
can_update_version_file can_update_version_file(index_path)
can_update_version_string can_update_version_string(index_path)

See Also