private static void CreateHotelsIndex(SearchServiceClient serviceClient) { var definition = new Index() { Name = "hotels", Fields = FieldBuilder.BuildForType<Hotel>() }; serviceClient.Indexes.Create(definition); }