简体   繁体   English

禁用搜索参数

[英]Disable Search Parameters

I have an instance of Microsoft FHIR Server, and I would like to disable some of the search parameters.我有一个 Microsoft FHIR 服务器实例,我想禁用一些搜索参数。 Can I do this by updating the SearchParameter resource and set its "status" to "retired," or do I need to add the parameter's URL to the unsupported-search-parameters list?我可以通过更新 SearchParameter 资源并将其“状态”设置为“已退休”来做到这一点,还是需要将参数的 URL 添加到不支持的搜索参数列表中? The goal is to reduce the amount of search values index when our application does not use search-parameters.目标是在我们的应用程序不使用搜索参数时减少搜索值索引的数量。

PS It would be nice if the solution allows to re-activate the search param if needed (and perform $reindex). PS 如果解决方案允许在需要时重新激活搜索参数(并执行 $reindex),那就太好了。

Thanks!谢谢!

There is currently no API level support to do this with the built-in FHIR parameters.目前没有 API 级别支持使用内置 FHIR 参数执行此操作。

The values in unsupported-search-parameters are loaded into the database, after this they are tracked there. unsupported-search-parameters中的值被加载到数据库中,之后在那里对其进行跟踪。 This is because over time the server may support new parameters that can't be turned on immediately as it would leave the indexes inconsistent.这是因为随着时间的推移,服务器可能支持无法立即打开的新参数,因为它会使索引不一致。

In the Cosmos collection the status can be "Enabled", "Supported", "Disabled" and "Deleted".在 Cosmos 集合中,状态可以是“启用”、“支持”、“禁用”和“已删除”。 If Supported it will not be available for search, but will continue to be indexed.如果Supported ,它将无法用于搜索,但会继续被索引。 When Disabled the server will recheck for support, I believe when set to Deleted is will no longer index the data. Disabled时服务器将重新检查支持,我相信设置为Deleted时将不再索引数据。 To re-enable it could be set back to Supported .要重新启用它可以设置回Supported

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM