Hello community folks!
Has anyone used the "AllVersions" versionFilter when executing a search query? We have a search that currently looks at only the latest versions of the documents to match it with the rest of the search criteria but we now need to fetch all documents irrespective of it's version. When we run the search query with "AllVersions", it brings back documents that do not match the search criteria. One pattern we noticed in some cases is that it always brought a version older than the one that we expected. For example, if we just release version 2 of a document and then run the search query with the time window it brings back version 2 in response but also shows version 1 in the response. Is there some sort of a relationship between consecutive versions such that when a newer version is released it marks some internal state of previous version of that document and hence it shows up in the search results.
Thank you in advance!
-Dhruv