Ejemplo n.º 1
0
		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);
		}
Ejemplo n.º 2
0
		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);
		}