- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的应用程序使用了几个搜索,它们是相对较大的搜索,每个搜索有数百万个文档,我希望简单地显示等待在我的应用程序的页面上运行的索引器队列。这样我就可以更好地了解将完成什么以及何时完成,因为我大致知道每个任务需要多长时间。
我能够找到当前正在运行的程序,但找不到尚未在 SDK 中运行的程序。我在 SDK 中进行了一些挖掘,但没有发现任何结果,而且我也没有在文档中看到任何引用它的内容
https://learn.microsoft.com/en-us/rest/api/searchservice/indexer-operations
这似乎不是一个选项,但我不确定为什么它不会
这里似乎没有任何关于计划运行的内容
这是索引器类
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();
}
由于我只关心在任何时间点同时运行多个索引器,而不是按计划运行,因此索引计划不会为我提供所需的信息
//
// 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();
}
最佳答案
SDK 无法查看快速连续启动时接下来将运行哪些索引器。如果您想请求执行此操作的能力,请将此建议添加到 Azure Search UserVoice .
关于c# - 如果我快速连续运行多个 Azure 搜索索引器,是否有办法访问 Azure SDK 中的等待索引器队列?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55144446/
我试图让脚本暂停大约 1 秒,然后继续执行脚本,但我似乎无法弄清楚如何做。这是我的代码: function hello() { alert("Hi!") //I need about a 1
wait() 和 wait(timeout) 之间有什么区别。无论如何 wait() 需要等待通知调用,但为什么我们有 wait(timeout)? 那么 sleep(timeout) 和 wait(
我需要做什么: 我有一个带有文件输入和隐藏文本输入的上传表单。用户上传图像,图像被操作,然后发送到远程服务器进行处理,这需要几秒钟,然后远程服务器将最终的图像发送回家庭服务器,并保存在新文件夹中。 J
大家好,我正在使用 Visual C++ 2010,尝试使用 Winsock 编写服务器/客户端应用程序...我不确定为什么,但有时服务器会在 listen() 函数处等待,有时会在 accept 处
任务描述 我为我的 Angular 应用程序实现了 CRSF 保护。服务器检查 crsf token 是否位于请求的 header “X-CSRF-TOKEN”中。如果不是,它会发送一个 HTTP 响
我想做这个例子https://stackoverflow.com/a/33585993/1973680同步。 这是正确的实现方式吗? let times= async (n,f)=>{
我如何将 while 循环延迟到 1 秒间隔,而不会将其运行的整个代码/计算机的速度减慢到一秒延迟(只是一个小循环)。 最佳答案 Thread.sleep(1000); // do nothing f
我知道这是一个重复的问题。但是我无法通过解释来理解。我想用一个很好的例子来清楚地理解它。任何人都可以帮忙吗。 “为什么我们从同步上下文中调用 wait()、notify() 方法”。 最佳答案 当我们
我有一个 click 事件,该事件是第一次从另一个地方自动触发的。我的问题是它运行得太快,因为所需的变量仍在由 Flash 和 Web 服务定义。所以现在我有: (function ($) {
我有如下功能 function async populateInventories(custID){ this.inventories = await this.inventoryServic
我一直对“然后”不被等待的行为感到困扰,我明白其原因。然而,我仍然需要绕过它。这是我的用例。 doWork(family) { return doWork1(family)
我想我理解异步背后的想法,返回一个Future,但是我不清楚异步在一个非常基本的层面上如何表现。据我了解,它不会自动在程序中创建异步行为。例如: import 'dart:async'; main()
我正在制作一个使用异步的Flutter应用程序,但它的工作方式不像我对它的了解。所以我对异步和在 Dart 中等待有一些疑问。这是一个例子: Future someFunction() async {
我在 main.tf 中创建资源组和 vNet,并在同一文件中引用模块。问题是,模块无法从模块访问这些资源。相关代码(删除了大部分代码,只留下相关部分): main.tf: module "worke
我的代码的问题是,当代码第一次运行时,我试图获取的 dom 元素并不总是存在,如果它不存在,那么永远不会做出 promise 。 我是否可以等到 promise 做出后再尝试实现它? 我希望我的最后一
所以,过去几天我一直在研究这段代码,并尝试实现回调/等待/任何需要的东西,但没有成功。 问题是,我如何等待响应,直到我得到两个函数的回调? (以及我将如何实现) 简而言之,我想做的是: POST 发生
谁能帮我理解这一点吗? 如果我们有一个类: public class Sample{ public synchronized method1(){ //Line1 .... wait();
这是我编写的代码,用于测试 wait() 和 notify() 的工作。现在我有很多疑问。 class A extends Thread { public void run() { try
我有以下代码由于语法错误而无法运行(在异步函数外等待) 如何使用 await 定义变量并将其导出? 当我这样定义一个变量并从其他文件导入它时,该变量是只创建一次(第一次读取文件时?)还是每次导入时都创
一个简单的线程程序,其中写入器将内容放入堆栈,读取器从堆栈中弹出。 java.util.Stack; import java.util.concurrent.ExecutorService; impo
我是一名优秀的程序员,十分优秀!