org.apache.solr.client.solrj.impl.HttpSolrClient $ RemoteSolrException:服务器错误

时间:2019-06-19 02:32:29

标签: java spring solr google-cloud-platform spring-data-solr

我有一个spring应用程序,正在使用Solr保存文档。我正在使用Spring数据Solr与Solr内核进行通信。最初,我在本地计算机上进行了Solr设置,因此在我编写的select group_concat( ida order by ida ) as grouped_letters, count(*) as count from ( select ida, count( idb - qty ) as ct, sum( idb - qty ) as sm from tab group by ida ) q group by ct, sm order by ida; +---------------+-----+ |grouped_letters|count| +---------------+-----+ | B | 1 | | C,D | 2 | | E | 1 | | F | 1 | | A,G | 2 | | H | 1 | +---------------+-----+ 的application.properties文件中。但是,现在我已经在Google Cloud Platform上部署了Solr,并且当我尝试通过将上述配置更改为spring.data.solr.host=http://localhost:8983/solr来在GCP上连接Solr实例时。它给了我spring.data.solr.host=http://ip-address-of-the-solr-instance/solr下面是我的Spring Boot应用程序的堆栈跟踪

401 unauthorized

0 个答案:

没有答案