private void CreateIndexCommand(string indexJsonConfiguration, string index) { var command = new MappingCommand { Url = string.Format("/{0}", index), RequestType = "PUT", Content = indexJsonConfiguration }; //Console.WriteLine("XXXCreateIndexCommand: " + index); Commands.Add(command); }
private void CreateMappingCommandForTypeWithExistingIndex(string propertyMapping, string index, string documentType) { var command = new MappingCommand { Url = string.Format("/{0}/{1}/_mappings", index, documentType), RequestType = "PUT", Content = propertyMapping }; //Console.WriteLine("XXXCreateMappingCommandForTypeWithExistingIndex: " + index + ": " + documentType); Commands.Add(command); }