SenseNet / sensenet

Open Source Content Services Platform written in .NET
https://sensenet.com
GNU General Public License v2.0
173 stars 111 forks source link

SearchServer restart #2034

Closed kavics closed 4 months ago

kavics commented 5 months ago

PROBLEM Restarting the search service under a running repository causes indexing and search errors because the restarted service does not receive the analyzers. The relevant log entry:

WARNING: Creating SnPerFieldAnalyzerWrapper without AnalyzerInfo. Indexing and querying components are incomplete.

SOLUTION Permanently cache analyzer info in the service (file system temporary cache) so that it can pick up after restart.

~SOLUTION~ (not recommended) Ensure the calling ISearchEngine.SetIndexingInfo(IDictionary<string, IPerFieldIndexingInfo>) method that actualizes the analyzers. The relevant log entries:

Indexing info set.
REFRESH SnPerFieldAnalyzerWrapper.AnalyzerInfo with 17 items. Indexing and querying components are complete.