Ejemplo n.º 1
0
        public static CreateIndexDescriptor CreateIndexSettingAndMapping(this CreateIndexDescriptor indexDescriptor, IndexType type)
        {
            switch (type)
            {
            case IndexType.Management:
                indexDescriptor.CreateManagementIndexSettingAndMapping();
                break;

            case IndexType.Property:
                indexDescriptor.CreateManagementIndexSettingAndMapping();
                break;
            }

            return(indexDescriptor);
        }