Example #1
0
        public static Task UnfreezePlanAsync(this ISearchIndexManager manager, string indexName, Action <UnfreezePlanSearchIndexOptions> configureOptions)
        {
            var options = new UnfreezePlanSearchIndexOptions();

            configureOptions(options);

            return(manager.UnfreezePlanAsync(indexName, options));
        }
Example #2
0
        public static Task ResumeIngestAsync(this ISearchIndexManager manager, string indexName, Action <ResumeIngestSearchIndexOptions> configureOptions)
        {
            var options = new ResumeIngestSearchIndexOptions();

            configureOptions(options);

            return(manager.ResumeIngestAsync(indexName, options));
        }
Example #3
0
        public static Task <int> GetIndexedDocumentsCountAsync(this ISearchIndexManager manager, string indexName, Action <GetSearchIndexDocumentCountOptions> configureOptions)
        {
            var options = new GetSearchIndexDocumentCountOptions();

            configureOptions(options);

            return(manager.GetIndexedDocumentsCountAsync(indexName, options));
        }
Example #4
0
        public static Task DropIndexAsync(this ISearchIndexManager manager, string indexName, Action <DropSearchIndexOptions> configureOptions)
        {
            var options = new DropSearchIndexOptions();

            configureOptions(options);

            return(manager.DropIndexAsync(indexName, options));
        }
Example #5
0
        public static Task UpsertIndexAsync(this ISearchIndexManager manager, SearchIndex indexDefinition, Action <UpsertSearchIndexOptions> configureOptions)
        {
            var options = new UpsertSearchIndexOptions();

            configureOptions(options);

            return(manager.UpsertIndexAsync(indexDefinition, options));
        }
Example #6
0
        public static Task <IEnumerable <SearchIndex> > GetAllIndexesAsync(this ISearchIndexManager manager, Action <GetAllSearchIndexesOptions> configureOptions)
        {
            var options = new GetAllSearchIndexesOptions();

            configureOptions(options);

            return(manager.GetAllIndexesAsync(options));
        }
Example #7
0
        public static Task DisallowQueryingAsync(this ISearchIndexManager manager, string indexName, Action <DisallowQueryingSearchIndexOptions> configureOptions)
        {
            var options = new DisallowQueryingSearchIndexOptions();

            configureOptions(options);

            return(manager.DisallowQueryingAsync(indexName, options));
        }
Example #8
0
 public static Task ResumeIngestAsync(this ISearchIndexManager manager, string indexName)
 {
     return(manager.ResumeIngestAsync(indexName, ResumeIngestSearchIndexOptions.Default));
 }
Example #9
0
 public static Task <int> GetIndexedDocumentsCountAsync(this ISearchIndexManager manager, string indexName)
 {
     return(manager.GetIndexedDocumentsCountAsync(indexName, GetSearchIndexDocumentCountOptions.Default));
 }
Example #10
0
 public static Task DropIndexAsync(this ISearchIndexManager manager, string indexName)
 {
     return(manager.DropIndexAsync(indexName, DropSearchIndexOptions.Default));
 }
Example #11
0
 public static Task UpsertIndexAsync(this ISearchIndexManager manager, SearchIndex indexDefinition)
 {
     return(manager.UpsertIndexAsync(indexDefinition, UpsertSearchIndexOptions.Default));
 }
Example #12
0
 public static Task <IEnumerable <SearchIndex> > GetAllIndexesAsync(this ISearchIndexManager manager)
 {
     return(manager.GetAllIndexesAsync(GetAllSearchIndexesOptions.Default));
 }
Example #13
0
 public static Task UnfreezePlanAsync(this ISearchIndexManager manager, string indexName)
 {
     return(manager.UnfreezePlanAsync(indexName, UnfreezePlanSearchIndexOptions.Default));
 }
Example #14
0
 public static Task DisallowQueryingAsync(this ISearchIndexManager manager, string indexName)
 {
     return(manager.DisallowQueryingAsync(indexName, DisallowQueryingSearchIndexOptions.Default));
 }
Example #15
0
 public static Task <SearchIndex> GetIndexAsync(this ISearchIndexManager manager, string indexName)
 {
     return(manager.GetIndexAsync(indexName, GetSearchIndexOptions.Default));
 }