Example #1
0
        public IndexResult CreateIndex(IndexCommand indexCommand, string indexSettings = null)
        {
            var result = connection.Put(indexCommand, indexSettings);

            return(Serializer.ToIndexResult(result));
        }
Example #2
0
        public IndexResult CreateIndex(IndexCommand indexCommand, IndexSettingsBuilder indexSettings)
        {
            var result = connection.Put(indexCommand, indexSettings.Build());

            return(Serializer.ToIndexResult(result));
        }