We have a custom implementation of ISimpleDataService to build an Examine index.
But from where does the implementation get it's thread culture info from?
In the OnApplicationStarted, in Global.asax we set the DefaultThreadCurrentCulture and DefaultThreadCurrentUICulture to "da-DK".
However when debugging, I see that the culture info in our implementation of GetAllData on our version of the Indexer gets its value set to en-GB (and where I'd incidental would have expected en-US)
This culture of en-GB; is that set via the Umbraco code or can I configure the thread that's running the index building without explicit setting culture again in our GetAllData?
Custom ISimpleDataService and Thread Culture
Hi.
We have a custom implementation of ISimpleDataService to build an Examine index.
But from where does the implementation get it's thread culture info from?
In the OnApplicationStarted, in Global.asax we set the DefaultThreadCurrentCulture and DefaultThreadCurrentUICulture to "da-DK".
However when debugging, I see that the culture info in our implementation of GetAllData on our version of the Indexer gets its value set to en-GB (and where I'd incidental would have expected en-US)
This culture of en-GB; is that set via the Umbraco code or can I configure the thread that's running the index building without explicit setting culture again in our GetAllData?
Thanks in advance
Hi Allan
Are you calling index rebuilding by Umbraco backend?
What is the culture of Umbraco backend user?
Thanks,
Alex
That was indeed the missing factor. That culture was set to UK. Thanks a lot
is working on a reply...