EnvironmentUcommerce 9.0.0 - 9.4.1
Question/Problem descriptionTrying to access indexes before they have been made results in an error, after the error has been hit, the scratchindexer will not fix the issue, without stopping the IIS first.
Steps to reproducecreating a new order before scratchindexer has been run
Error messageno segments* file found in MyDirectory@C:\home\site\wwwroot\App_Data\Ucommerce\Indexes\B\PriceGroup\DefaultPriceGroupsIndexDefinition\08de5b8b\en-GB\index lockFactory=NativeFSLockFactory@C:\home\site\wwwroot\App_Data\Ucommerce\Indexes\B\PriceGroup\DefaultPriceGroupsIndexDefinition\08de5b8b\en-GB\index: files: [write.lock, _0.cfs]
Resolutionupgrade to Ucommerce 9.4.2:
  • Trying to access the Lucene indexes (e.g. via creating an order) before the index files have been created (by indexing from scratch) no longer results in a "no segments* file found" error.
Workaround

stopping the app (iisreset -stop)

Delete the index folders

start the app

go to the back office and rerun the indexer, before touching any of the API