Checks whether an index in the specified directory can be updated to the latest version.
defcan_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
fromgroupdocs.searchimportIndexUpdaterupdater=IndexUpdater()ifupdater.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.