通过计划程序或以编程方式同步搜索索引数据会更好吗? [英] What would be better to sync search index data through schedule program or programmatically?

查看:74
本文介绍了通过计划程序或以编程方式同步搜索索引数据会更好吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我已经阅读了文档并了解了我们可以创建索引并添加或更新数据 通过rest API搜索索引这将作为文档的集合,因为我们可以查询以搜索Index.Off当然,搜索索引器从数据源抓取
数据并将数据填充到索引,然后我们可以查询搜索索引。

I have gone through the documentation and came to know that We can create index and add or update data  to Search Index through rest API's this will acts as collection of documents as We can query to search Index.Off course Search Indexer crawls the data from data source and fill the data to index and then we can query to search index.

我的问题是:我们可以独立创建搜索索引并通过rest api将数据添加到搜索索引中这将充当数据存储(类似于sql中的表) ),所以在这种情况下我们不需要数据源。对?如果我错了,请更正
为什么我们在这个情况下需要数据源。是否有任何特定原因需要数据源。

My Question is : We can create search index independently and add data to search index through rest api's this will act as data storage( similar to  table in sql), So in this case We don't require data source. Right? Please correct if i am wrong then why do we need data source in this situation.Is there any specific reason to have data source.

另一件事,每当数据源更新时,索引器会将数据源同步到搜索索引的调度程序(最少5分钟间隔)。这里的问题是,如果数据源发生频繁变化,并且每5分钟搜索索引器
更新搜索索引,那么它会影响搜索索引的查询数据的性能,因为频繁的重新索引可能会降低性能。什么会更好? 通过计划程序同步搜索索引数据 或者在数据源中添加新记录时以编程方式
。能否请您建议正确的方法。

Another thing, There is schedule program(minimum 5 minutes interval) that indexer sync the data source to search index whenever data source updates. Here question is if frequent changes occur in data source and in every 5 mins search indexer updates the search index then will it impact the performance the query data from search index as frequent re indexing may slow down the performance.What would be better to  sync search index data through schedule program  or programmatically whenever new record is added in data source. Can you please suggest me the correct approach.

谢谢

坚持

推荐答案

Hi Stick,

Hi Stick,




这篇关于通过计划程序或以编程方式同步搜索索引数据会更好吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆