コード例 #1
0
 /// <summary>
 /// Generates a CreateIndexRequest from this object.
 /// </summary>
 /// <param name="idxName"></param>
 /// <returns></returns>
 public CreateIndexRequest ToCreateIndexRequest(string idxName)
 {
     return(new CreateIndexRequest(idxName)
     {
         ErrorTrace = ReturnStackTraces,
         Human = HumanReadable,
         Pretty = PrettyPrint,
         Settings = IndexSettings.ToIndexSettings(),
         UpdateAllTypes = UpdateAllTypes,
         WaitForActiveShards = WaitForActiveShards.ToString()
     });
 }