I am implementing a feature where I need to compare the metadata version of an existing document before indexing it and I have a version attribute in my object which can\'t be t