ElasticSearch doesn't work with synonym server

I had some issues with elasticsearch, not sure if same as yours, but this helped.

Dynamic synonyms was not installed, changing dns for elasticsearch as suggested by the comment from 192.168.0.2 to 192.168.0.7 and same change for DNS_FORWARDER. Commenting out as suggeste din URKL beklow also worked, but not sure of implications.

From The app could not be installed - again (DirectPay) changed hosts and LitiumApi__ApiUrl .

In appsettings.json changed to:

“Server”: “http://kubernetes.docker.internal:9210”,

Could also be to disk space, if errors in logs in docker maybe reduce memory use, can be sent via Kibana, something like:

PUT _cluster/settings
{
“transient”: {
“cluster.routing.allocation.disk.watermark.low”: “30mb”,
“cluster.routing.allocation.disk.watermark.high”: “20mb”,
“cluster.routing.allocation.disk.watermark.flood_stage”: “10mb”,
“cluster.info.update.interval”: “1m”
}
}

PUT /_all/_settings
{
“index.blocks.read_only_allow_delete”: null
}

I also got error:

2023-05-04 10:56:36.8015 [App:01] [1a7739cb79a53718c3194e258c701e69] [ERROR] [.NET ThreadPool Worker] Litium.Search.Indexing.IndexQueueService - Error in building index document for Litium.Accelerator.Search.ProductDocument with c5595d0a-b159-492e-98e8-610525de3aa3 and “Index”, {“id”:“ProductDocument:c5595d0a-b159-492e-98e8-610525de3aa3”, “primaryTerm”:2, “sequenceNumber”:70014, “version”:2155}: “Stored type System.Collections.Generic.ICollection1[[System.String, System.Private.CoreLib]], System.Private.CoreLib and requested type System.Collections.Generic.IList1[[System.String, System.Private.CoreLib]], System.Private.CoreLib does not match.” System.InvalidCastException: Stored type System.Collections.Generic.ICollection1[[System.String, System.Private.CoreLib]], System.Private.CoreLib and requested type System.Collections.Generic.IList1[[System.String, System.Private.CoreLib]], System.Private.CoreLib does not match.

Solved by patch:

// Src/Litium.Accelerator/Search/Filtering/FilterService.cs
-        public void SaveProductFilteringFields(ICollection<string> items)
+        public void SaveProductFilteringFields(IList<string> items)