Solr REST API - 强制 POST 替换托管资源
Solr REST API - force POST to replace managed resources
https://lucene.apache.org/solr/guide/8_2/managed-resources.html
在文档中有信息:
PUT/POST is used to add terms to an existing list instead of replacing the list entirely. This >is because it is more common to add a term to an existing list than it is to replace a list >altogether, so the API favors the more common approach of incrementally adding terms especially >since deleting individual terms is also supported.
有没有什么方法可以强制 POST 请求替换端点上的所有托管资源,而不是添加条款?
Solr 版本 8.2
作为对自己的回答——不,没有。
您可以在源代码中分叉和更改它。
https://lucene.apache.org/solr/guide/8_2/managed-resources.html
在文档中有信息:
PUT/POST is used to add terms to an existing list instead of replacing the list entirely. This >is because it is more common to add a term to an existing list than it is to replace a list >altogether, so the API favors the more common approach of incrementally adding terms especially >since deleting individual terms is also supported.
有没有什么方法可以强制 POST 请求替换端点上的所有托管资源,而不是添加条款?
Solr 版本 8.2
作为对自己的回答——不,没有。 您可以在源代码中分叉和更改它。