Exemple #1
0
 public void SetIndexName(string sitecoreIndexName, OperationalType type, string serviceIndexName)
 {
     _searchServiceClient.PostDocuments(string.Format(CultureInfo.InvariantCulture, "{{\n                    \"value\": [\n                        {{\n                            \"@search.action\": \"mergeOrUpload\",\n                            \"key\": \"{0}\",\n                            \"servicename\": \"{1}\",\n                            \"indextype\": \"{2}\",\n                            \"sitecorename\": \"{3}\"\n                        }}\n                    ]\n                }}", $"{sitecoreIndexName.ToUpperInvariant()}-{type.ToString().ToUpperInvariant()}", serviceIndexName, type.ToString().ToUpperInvariant(), sitecoreIndexName));
 }