I have a versioned filesystem called "Documents" in VPP. When I first upload a file, it gets indexed and everything works just fine. If I choose to create a new version of the file (overwtite the exsisting) the content of the file is reindexed correctly, but in the PageDataCollection returned by SearchDataSource.Select(...) method, the files(PageData) Changed property is still that of the original version of the file.
Do anyone know if there is a bug in the indexing of files in a versioned filesystem that "forgets" to update the Changed property ?
If I retrieve the file directly from VPP using HostingEnvironment.VirtualPathProvider.GetFile(file.StaticLinkURL) , the Changed date is correct, so this has to do with the indexing of the file.
With this bug, the search result shows the the wrong date (PageChanged) for versioned files, and I actually need to get the files from VPP to sort them correctly in my "Recently modified files" control...
This has been confirmed as a bug in EPiServer and a fix for this will probably be included in our next release:
#11044 Searchdatasource returns the wrong changed date on updated files