Remove support for Solr as it is not compatible with Jetty 11
Closes gh-31054
This commit is contained in:
@@ -711,10 +711,6 @@ with the `key` listed in the following table:
|
||||
| `redis`
|
||||
| {spring-boot-actuator-module-code}/redis/RedisHealthIndicator.java[`RedisHealthIndicator`]
|
||||
| Checks that a Redis server is up.
|
||||
|
||||
| `solr`
|
||||
| {spring-boot-actuator-module-code}/solr/SolrHealthIndicator.java[`SolrHealthIndicator`]
|
||||
| Checks that a Solr server is up.
|
||||
|===
|
||||
|
||||
TIP: You can disable them all by setting the configprop:management.health.defaults.enabled[] property.
|
||||
|
||||
@@ -252,8 +252,6 @@ boot-features-spring-data-mongo-repositories=features.nosql.mongodb.repositories
|
||||
boot-features-neo4j=features.nosql.neo4j
|
||||
boot-features-connecting-to-neo4j=features.nosql.neo4j.connecting
|
||||
boot-features-spring-data-neo4j-repositories=features.nosql.neo4j.repositories
|
||||
boot-features-solr=features.nosql.solr
|
||||
boot-features-connecting-to-solr=features.nosql.solr.connecting
|
||||
boot-features-elasticsearch=features.nosql.elasticsearch
|
||||
boot-features-connecting-to-elasticsearch-rest=features.nosql.elasticsearch.connecting-using-rest
|
||||
boot-features-connecting-to-elasticsearch-reactive-rest=features.nosql.elasticsearch.connecting-using-reactive-rest
|
||||
@@ -808,8 +806,6 @@ features.nosql.mongodb.repositories=data.nosql.mongodb.repositories
|
||||
features.nosql.neo4j=data.nosql.neo4j
|
||||
features.nosql.neo4j.connecting=data.nosql.neo4j.connecting
|
||||
features.nosql.neo4j.repositories=data.nosql.neo4j.repositories
|
||||
features.nosql.solr=data.nosql.solr
|
||||
features.nosql.solr.connecting=data.nosql.solr.connecting
|
||||
features.nosql.elasticsearch=data.nosql.elasticsearch
|
||||
features.nosql.elasticsearch.connecting-using-rest=data.nosql.elasticsearch.connecting-using-rest
|
||||
features.nosql.elasticsearch.connecting-using-reactive-rest=data.nosql.elasticsearch.connecting-using-reactive-rest
|
||||
|
||||
@@ -11,7 +11,7 @@ Spring Data provides additional projects that help you access a variety of NoSQL
|
||||
* {spring-data-couchbase}[Couchbase]
|
||||
* {spring-data-ldap}[LDAP]
|
||||
|
||||
Spring Boot provides auto-configuration for Redis, MongoDB, Neo4j, Solr, Elasticsearch, Cassandra, Couchbase, LDAP and InfluxDB.
|
||||
Spring Boot provides auto-configuration for Redis, MongoDB, Neo4j, Elasticsearch, Cassandra, Couchbase, LDAP and InfluxDB.
|
||||
Additionally, {spring-boot-for-apache-geode}[Spring Boot for Apache Geode] provides {spring-boot-for-apache-geode-docs}#geode-repositories[auto-configuration for Apache Geode].
|
||||
You can make use of the other projects, but you must configure them yourself.
|
||||
See the appropriate reference documentation at {spring-data}.
|
||||
@@ -196,25 +196,6 @@ include::code:MyNeo4jConfiguration[]
|
||||
|
||||
|
||||
|
||||
[[data.nosql.solr]]
|
||||
=== Solr
|
||||
https://lucene.apache.org/solr/[Apache Solr] is a search engine.
|
||||
Spring Boot offers basic auto-configuration for the Solr 5 client library.
|
||||
|
||||
|
||||
|
||||
[[data.nosql.solr.connecting]]
|
||||
==== Connecting to Solr
|
||||
You can inject an auto-configured `SolrClient` instance as you would any other Spring bean.
|
||||
By default, the instance tries to connect to a server at `http://localhost:8983/solr`.
|
||||
The following example shows how to inject a Solr bean:
|
||||
|
||||
include::code:MyBean[]
|
||||
|
||||
If you add your own `@Bean` of type `SolrClient`, it replaces the default.
|
||||
|
||||
|
||||
|
||||
[[data.nosql.elasticsearch]]
|
||||
=== Elasticsearch
|
||||
https://www.elastic.co/products/elasticsearch[Elasticsearch] is an open source, distributed, RESTful search and analytics engine.
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.docs.data.nosql.solr.connecting;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.solr.client.solrj.SolrClient;
|
||||
import org.apache.solr.client.solrj.SolrServerException;
|
||||
import org.apache.solr.client.solrj.response.SolrPingResponse;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class MyBean {
|
||||
|
||||
private final SolrClient solr;
|
||||
|
||||
public MyBean(SolrClient solr) {
|
||||
this.solr = solr;
|
||||
}
|
||||
|
||||
// @fold:on // ...
|
||||
public SolrPingResponse someMethod() throws SolrServerException, IOException {
|
||||
return this.solr.ping("users");
|
||||
}
|
||||
// @fold:off
|
||||
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.docs.data.nosql.solr.connecting
|
||||
|
||||
import org.apache.solr.client.solrj.SolrClient
|
||||
import org.apache.solr.client.solrj.response.SolrPingResponse
|
||||
import org.springframework.stereotype.Component
|
||||
|
||||
@Component
|
||||
class MyBean(private val solr: SolrClient) {
|
||||
|
||||
// @fold:on // ...
|
||||
fun someMethod(): SolrPingResponse {
|
||||
return solr.ping("users")
|
||||
}
|
||||
// @fold:off
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user