Skip to content

Commit 8b72792

Browse files
authored
GH-5631 Deprecate solr integration and update documentation (#5632)
2 parents 4366a77 + 3fde3b9 commit 8b72792

18 files changed

Lines changed: 131 additions & 8 deletions

File tree

core/sail/solr/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</parent>
99
<artifactId>rdf4j-sail-solr</artifactId>
1010
<name>RDF4J: Solr Sail Index</name>
11-
<description>StackableSail implementation offering full-text search on literals, based on Solr.</description>
11+
<description>StackableSail implementation offering full-text search on literals, based on Solr. Deprecated for removal.</description>
1212
<properties>
1313
<!-- FIXME: Support for embedded Solr server require non-provided Java EE dependencies -->
1414
<enforce-javaee-provided.fail>false</enforce-javaee-provided.fail>

core/sail/solr/src/main/java/org/eclipse/rdf4j/sail/solr/SolrBulkUpdater.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
import org.eclipse.rdf4j.sail.lucene.BulkUpdater;
2222
import org.eclipse.rdf4j.sail.lucene.SearchDocument;
2323

24+
/**
25+
* @deprecated since 5.3.0. Solr integration is deprecated for removal; use alternative Lucene-backed search
26+
* implementations instead.
27+
*/
28+
@Deprecated(since = "5.3.0", forRemoval = true)
2429
public class SolrBulkUpdater implements BulkUpdater {
2530

2631
private final SolrClient client;

core/sail/solr/src/main/java/org/eclipse/rdf4j/sail/solr/SolrClientFactory.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212

1313
import org.apache.solr.client.solrj.SolrClient;
1414

15+
/**
16+
* @deprecated since 5.3.0. Solr integration is deprecated for removal; use alternative Lucene-backed search
17+
* implementations instead.
18+
*/
19+
@Deprecated(since = "5.3.0", forRemoval = true)
1520
public interface SolrClientFactory {
1621

1722
SolrClient create(String spec);

core/sail/solr/src/main/java/org/eclipse/rdf4j/sail/solr/SolrDocumentDistance.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
import org.eclipse.rdf4j.sail.lucene.DocumentDistance;
1515
import org.eclipse.rdf4j.sail.lucene.util.GeoUnits;
1616

17+
/**
18+
* @deprecated since 5.3.0. Solr integration is deprecated for removal; use alternative Lucene-backed search
19+
* implementations instead.
20+
*/
21+
@Deprecated(since = "5.3.0", forRemoval = true)
1722
public class SolrDocumentDistance extends SolrDocumentResult implements DocumentDistance {
1823

1924
private final IRI units;

core/sail/solr/src/main/java/org/eclipse/rdf4j/sail/solr/SolrDocumentResult.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
import org.eclipse.rdf4j.sail.lucene.DocumentResult;
1414
import org.eclipse.rdf4j.sail.lucene.SearchDocument;
1515

16+
/**
17+
* @deprecated since 5.3.0. Solr integration is deprecated for removal; use alternative Lucene-backed search
18+
* implementations instead.
19+
*/
20+
@Deprecated(since = "5.3.0", forRemoval = true)
1621
public class SolrDocumentResult implements DocumentResult {
1722

1823
protected final SolrSearchDocument doc;

core/sail/solr/src/main/java/org/eclipse/rdf4j/sail/solr/SolrDocumentScore.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515

1616
import org.eclipse.rdf4j.sail.lucene.DocumentScore;
1717

18+
/**
19+
* @deprecated since 5.3.0. Solr integration is deprecated for removal; use alternative Lucene-backed search
20+
* implementations instead.
21+
*/
22+
@Deprecated(since = "5.3.0", forRemoval = true)
1823
public class SolrDocumentScore extends SolrDocumentResult implements DocumentScore {
1924

2025
private final Map<String, List<String>> highlighting;

core/sail/solr/src/main/java/org/eclipse/rdf4j/sail/solr/SolrIndex.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@
5959

6060
/**
6161
* @see LuceneSail
62+
* @deprecated since 5.3.0. Solr integration is deprecated for removal; use alternative Lucene-backed search
63+
* implementations instead.
6264
*/
65+
@Deprecated(since = "5.3.0", forRemoval = true)
6366
public class SolrIndex extends AbstractSearchIndex {
6467

6568
public static final String SERVER_KEY = "server";

core/sail/solr/src/main/java/org/eclipse/rdf4j/sail/solr/SolrSearchDocument.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
import org.eclipse.rdf4j.sail.lucene.SearchDocument;
2121
import org.eclipse.rdf4j.sail.lucene.SearchFields;
2222

23+
/**
24+
* @deprecated since 5.3.0. Solr integration is deprecated for removal; use alternative Lucene-backed search
25+
* implementations instead.
26+
*/
27+
@Deprecated(since = "5.3.0", forRemoval = true)
2328
public class SolrSearchDocument implements SearchDocument {
2429

2530
private final SolrDocument doc;

core/sail/solr/src/main/java/org/eclipse/rdf4j/sail/solr/SolrSearchQuery.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@
2929

3030
/**
3131
* To be removed, no longer used.
32+
*
33+
* @deprecated since 5.3.0. Solr integration is deprecated for removal; use alternative Lucene-backed search
34+
* implementations instead.
3235
*/
33-
@Deprecated
36+
@Deprecated(since = "5.3.0", forRemoval = true)
3437
public class SolrSearchQuery implements SearchQuery {
3538

3639
private final SolrQuery query;

core/sail/solr/src/main/java/org/eclipse/rdf4j/sail/solr/SolrUtil.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@
1414
import org.apache.solr.common.SolrInputDocument;
1515

1616
/**
17-
* Utility for Solr handling
17+
* Utility for Solr handling.
18+
*
19+
* @deprecated since 5.3.0. Solr integration is deprecated for removal; use alternative Lucene-backed search
20+
* implementations instead.
1821
*/
22+
@Deprecated(since = "5.3.0", forRemoval = true)
1923
public class SolrUtil {
2024

2125
/**

0 commit comments

Comments
 (0)