简体   繁体   English

重命名等级并检索群集名称

[英]Rename Rank and Retrieve Cluster Name

So I created a Solr Cluster via the Rank and Retrieve web tooling. 因此,我通过Rank and Retrieve Web工具创建了一个Solr集群。 The name of the cluster is similar to "Cluster Client". 群集的名称类似于“ Cluster Client”。 Problem here is the online tooling allows names with blanks. 这里的问题是在线工具允许名称带有空格。

Now, after training the ranker I want to access the query interface via API. 现在,在训练了排名者之后,我想通过API访问查询界面。 The call goes similar to: http://gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters/CLUSTER_ID/solr/CLUSTER_NAME/select?q=QUERY&wt=json 调用类似于: http : //gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters/CLUSTER_ID/solr/CLUSTER_NAME/select?q=QUERY&wt=json

So problem is now: my CLUSTER_NAME has spaces in there. 现在的问题是:我的CLUSTER_NAME里面有空格。
First thought: escape it with "%20" or "+" => doesn't work :( 首先想到的是:用“%20”或“ +” =>转义它不起作用:(

So the question is now: 现在的问题是:
a) How can I query my cluster? a)如何查询集群?
b) If that is not possible: How can I rename my cluster, remove the space, so I can access it? b)如果不可能:如何重命名群集,删除空间,以便可以访问它?

You should use the collection name and NOT the cluster name as a parameter. 您应该使用集合名称而不是群集名称作为参数。 See https://stackoverflow.com/users/477/dalelane comment above. 请参阅上面的https://stackoverflow.com/users/477/dalelane评论。

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

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