首页 \ 问答 \ 如何在Azure搜索中重命名索引(How to rename index in Azure Search)

如何在Azure搜索中重命名索引(How to rename index in Azure Search)

根据我们的业务逻辑,每晚Web作业删除索引并创建新索引并填充它。 但最近我们注意到填充索引大约需要一个小时。 因此,在此期间,我们没有任何生产工作指数。 所以目前我们正在考虑以下变化:

我们的生产指数名称是'prodindex'。 我们首先要创建名为'prodindex1'的索引,填充它,如果一切正常,请删除索引'prodindex'并将索引'prodindex1'重命名为'prodindex'。

但现在我面临的问题是我无法重命名索引。 那么在Azure搜索中是否可以重命名索引?


According to our business logic every night web job deletes index and creates new one and populates it. But lately we've noticed that populating index takes about one hour. So during this time we don't have any working index in production. So currently we are thinking over the following changes:

Name of our production index is 'prodindex'. We want firstly to create index with name 'prodindex1', populate it and if everything is ok delete index 'prodindex' and rename index 'prodindex1' to 'prodindex'.

But now i facet problem that i can't rename index. So is it possible in Azure Search to rename index?


原文:https://stackoverflow.com/questions/46100551
更新时间:2023-02-24 08:02

最满意答案

在上面链接的iOS应用程序编程指南中,查看子标题“在后台执行有限长度任务”下的“后台执行和多任务”部分:

过渡到后台的应用程序可能需要额外的时间来完成任何重要的最后时刻任务。 要请求后台执行时间,请调用UIApplication类的beginBackgroundTaskWithExpirationHandler:方法。 如果您的应用在任务正在进行时移至背景,或者您的应用已在后台,此方法会延迟您的应用暂停。 如果您的应用正在执行一些重要任务(如将用户数据写入磁盘或从网络服务器下载重要文件),这可能很重要。

这给你10分钟的背景时间来做你想做的事情。 如果您注意到,Dropbox只会继续传输10分钟,然后您需要重新启动应用才能继续传输。


In the iOS App Programming Guide, which you linked to above, look in the section "Background Execution and Multitasking" under the subheading "Executing a Finite-Length Task in the Background":

Apps that are transitioning to the background can request an extra amount of time to finish any important last-minute tasks. To request background execution time, call the beginBackgroundTaskWithExpirationHandler: method of the UIApplication class. If your app moves to the background while the task is in progress, or if your app was already in the background, this method delays the suspension of your app. This can be important if your app is performing some important task, such as writing user data to disk or downloading an important file from a network server.

This gives you 10 minutes of background time to do what you want. If you notice, Dropbox will only continue transferring for 10 minutes, and then you need to restart the app to get it to continue.

相关问答

更多
  • 您所要做的就是运行一个后台服务,它将检查您的数据库表中是否有行,然后如果存在,它将继续上载并从表中完成后删除每一行 编辑 如果您的应用程序完全关闭,您的服务无法继续运行,我建议您使用“同步到云”功能检查此处它包含必要的机制大多数应用程序使用它DropBox也认为 all you have to do is run a background service which will check if your database table has rows in it then if exists it will ...
  • 我认为Dropbox中有一个关于此的示例,请尝试检查此链接dropbox示例 你需要看到2个文件PicassoClient.java和FileThumbnailRequestHandler.java i think there is a sample from dropbox about this, try to check this link dropbox sample there is 2 files that you need to see PicassoClient.java And FileTh ...
  • 在上面链接的iOS应用程序编程指南中,查看子标题“在后台执行有限长度任务”下的“后台执行和多任务”部分: 过渡到后台的应用程序可能需要额外的时间来完成任何重要的最后时刻任务。 要请求后台执行时间,请调用UIApplication类的beginBackgroundTaskWithExpirationHandler:方法。 如果您的应用在任务正在进行时移至背景,或者您的应用已在后台,此方法会延迟您的应用暂停。 如果您的应用正在执行一些重要任务(如将用户数据写入磁盘或从网络服务器下载重要文件),这可能很重要。 这 ...
  • 经过一番挖掘后,我找到了答案:我的问题是SDK版本。 在我使用的版本(1.7)中没有这样的东西(你可以在这里查看 )。 但是,当您将版本更新为1.8时,您可以找到它: DbxEntry.File.PhotoInfo After some digging I found an answer: my problem was SDK version. In version that I used (1.7) there was no such thing (you can check it here). Howe ...
  • 您需要在AppDelegate.m具有以下代码: - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url sourceApplication:(NSString *)source annotation:(id)annotation { DBAccount *account = [[DBAccountManager sharedManager] handleOpenURL:url]; if (account) { ...
  • 你可以用zapier做到这一点,它允许你免费获得5次zaps,而免费版本每15分钟一次拉动更改 You can do that with zapier it will allow you to have 5 zaps for free but also the free version pull the changes every 15 minutes
  • 雅在某些情况下是可能的。 它是如何实现Core和Sync在一起,因为它需要很多工作。 我会建议你检查这里 我想你会在这里找到你的答案。 Ya it is possible in some cases. It is How you implement both Core and Sync together, as it requires lots of work. I will suggest you to check HERE I think you will find your answer here.
  • 如果您有手机,可以使用FBAB备份您的Facebook照片。 Android , iOS If you have a phone, you can use FBAB to backup your facebook photos. Android , iOS
  • 你在buildPath中以正确的方式添加了dropbox-android-sdk.jar吗? DropboxAPI JAR文件应该在libs /文件夹中,而不是lib /。 试试这个并告诉我它现在是否有效...... PS:我正在使用DropboxAPI for android,他们的代码非常适合我,他们的文档非常适合做自己的应用程序。 Do you add the dropbox-android-sdk.jar in your buildPath and in a correct way ? The Dr ...
  • **编辑:2017年7月** Dropbox API v1现已弃用,因此我们必须使用API v2进行迁移 时间线 2016年6月28日 :API v1已弃用。 2016年9月28日 :如果您尚未确认弃用,您的应用的新用户将在链接其Dropbox帐户时看到警告。 2017年3月28日 :如果您尚未确认已弃用,那么所有将Dropbox帐户链接到您的应用的用户都将收到一封警告电子邮件。 2017年6月28日 :API v1端点已关闭。 根据时间线,现在api v1不再工作,api v2完全激活。 目前'com.d ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)