Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如果我连续快速运行几个Azure搜索索引器,有没有办法访问Azure SDK中等待索引器的队列?_C#_Azure_Azure Cognitive Search_Azure Search .net Sdk - Fatal编程技术网

C# 如果我连续快速运行几个Azure搜索索引器,有没有办法访问Azure SDK中等待索引器的队列?

C# 如果我连续快速运行几个Azure搜索索引器,有没有办法访问Azure SDK中等待索引器的队列?,c#,azure,azure-cognitive-search,azure-search-.net-sdk,C#,Azure,Azure Cognitive Search,Azure Search .net Sdk,我有几个我的应用程序使用的搜索,它们是相对较大的搜索,每个都有数百万个文档,我只想在我的应用程序中显示等待在页面上运行的索引器队列。这是为了让我能够更好地了解将要完成什么以及何时完成,因为我大致知道每项工作需要多长时间 我能够找到当前正在运行的,但还没有在SDK中运行的。我在SDK中做了一些挖掘,但没有发现任何东西,在文档中也没有看到任何与之相关的内容 这似乎不是一个选择,但我不确定为什么不是 这里似乎也没有任何关于计划运行的内容 这是索引器类 public class Indexer :

我有几个我的应用程序使用的搜索,它们是相对较大的搜索,每个都有数百万个文档,我只想在我的应用程序中显示等待在页面上运行的索引器队列。这是为了让我能够更好地了解将要完成什么以及何时完成,因为我大致知道每项工作需要多长时间

我能够找到当前正在运行的,但还没有在SDK中运行的。我在SDK中做了一些挖掘,但没有发现任何东西,在文档中也没有看到任何与之相关的内容

这似乎不是一个选择,但我不确定为什么不是

这里似乎也没有任何关于计划运行的内容

这是索引器类

public class Indexer : IResourceWithETag
{
    //
    // Summary:
    //     Initializes a new instance of the Indexer class.
    public Indexer();
    //
    // Summary:
    //     Initializes a new instance of the Indexer class.
    //
    // Parameters:
    //   name:
    //     The name of the indexer.
    //
    //   dataSourceName:
    //     The name of the datasource from which this indexer reads data.
    //
    //   targetIndexName:
    //     The name of the index to which this indexer writes data.
    //
    //   description:
    //     The description of the indexer.
    //
    //   schedule:
    //     The schedule for this indexer.
    //
    //   parameters:
    //     Parameters for indexer execution.
    //
    //   fieldMappings:
    //     Defines mappings between fields in the data source and corresponding target fields
    //     in the index.
    //
    //   isDisabled:
    //     A value indicating whether the indexer is disabled. Default is false.
    //
    //   eTag:
    //     The ETag of the Indexer.
    public Indexer(string name, string dataSourceName, string targetIndexName, string description = null, IndexingSchedule schedule = null, IndexingParameters parameters = null, IList<FieldMapping> fieldMappings = null, bool? isDisabled = null, string eTag = null);

    //
    // Summary:
    //     Gets or sets the name of the indexer.
    [JsonProperty(PropertyName = "name")]
    public string Name { get; set; }
    //
    // Summary:
    //     Gets or sets the description of the indexer.
    [JsonProperty(PropertyName = "description")]
    public string Description { get; set; }
    //
    // Summary:
    //     Gets or sets the name of the datasource from which this indexer reads data.
    [JsonProperty(PropertyName = "dataSourceName")]
    public string DataSourceName { get; set; }
    //
    // Summary:
    //     Gets or sets the name of the index to which this indexer writes data.
    [JsonProperty(PropertyName = "targetIndexName")]
    public string TargetIndexName { get; set; }
    //
    // Summary:
    //     Gets or sets the schedule for this indexer.
    [JsonProperty(PropertyName = "schedule")]
    public IndexingSchedule Schedule { get; set; }
    //
    // Summary:
    //     Gets or sets parameters for indexer execution.
    [JsonProperty(PropertyName = "parameters")]
    public IndexingParameters Parameters { get; set; }
    //
    // Summary:
    //     Gets or sets defines mappings between fields in the data source and corresponding
    //     target fields in the index.
    [JsonProperty(PropertyName = "fieldMappings")]
    public IList<FieldMapping> FieldMappings { get; set; }
    //
    // Summary:
    //     Gets or sets a value indicating whether the indexer is disabled. Default is false.
    [JsonProperty(PropertyName = "disabled")]
    public bool? IsDisabled { get; set; }
    //
    // Summary:
    //     Gets or sets the ETag of the Indexer.
    [JsonProperty(PropertyName = "@odata.etag")]
    public string ETag { get; set; }

    //
    // Summary:
    //     Validate the object.
    //
    // Exceptions:
    //   T:Microsoft.Rest.ValidationException:
    //     Thrown if validation fails
    public virtual void Validate();
}

SDK不提供在快速连续启动时查看下一个将运行哪些索引器的功能。如果您希望获得这样做的能力,请添加此建议。

分享您的研究成果对每个人都有帮助。告诉我们您尝试了什么,以及为什么它不能满足您的需求。这表明你花了时间来帮助自己,它使我们避免重复显而易见的答案,最重要的是,它帮助你得到一个更具体和相关的答案!另请参见:抱歉,刚刚更新了我在汉克斯寻找的链接,我会的that@MattBruzik您是否介意在此提供更多关于您想知道下一步将运行哪个索引器的场景的信息?
//
// Summary:
//     Represents a schedule for indexer execution.
public class IndexingSchedule
{
    //
    // Summary:
    //     Initializes a new instance of the IndexingSchedule class.
    public IndexingSchedule();
    //
    // Summary:
    //     Initializes a new instance of the IndexingSchedule class.
    //
    // Parameters:
    //   interval:
    //     The interval of time between indexer executions.
    //
    //   startTime:
    //     The time when an indexer should start running.
    public IndexingSchedule(TimeSpan interval, DateTimeOffset? startTime = null);

    //
    // Summary:
    //     Gets or sets the interval of time between indexer executions.
    [JsonProperty(PropertyName = "interval")]
    public TimeSpan Interval { get; set; }
    //
    // Summary:
    //     Gets or sets the time when an indexer should start running.
    [JsonProperty(PropertyName = "startTime")]
    public DateTimeOffset? StartTime { get; set; }

    //
    // Summary:
    //     Validate the object.
    //
    // Exceptions:
    //   T:Microsoft.Rest.ValidationException:
    //     Thrown if validation fails
    public virtual void Validate();
}