Apache Lucene open-source search software
SOLR-6025: Replace mentions of CommonsHttpSolrServer with HttpSolrServer and StreamingUpdateSolrServer with ConcurrentUpdateSolrServer
Shalin Shekhar Mangarb2a01a6504c5
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex ba1592b2091..0b2c5af96a2 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -138,6 +138,9 @@ Other Changes* SOLR-5974: Remove ShardDoc.score and use parent's ScoreDoc.score.(Tomás Fernández Löbbe via Ryan Ernst)+* SOLR-6025: Replace mentions of CommonsHttpSolrServer with HttpSolrServer and+ StreamingUpdateSolrServer with ConcurrentUpdateSolrServer. (Ahmet Arslan via shalin)+Build---------------------diff --git a/solr/contrib/morphlines-core/src/test-files/solr/collection1/conf/schema.xml b/solr/contrib/morphlines-core/src/test-files/solr/collection1/conf/schema.xmlindex a1c6787d61e..f46885fba16 100644--- a/solr/contrib/morphlines-core/src/test-files/solr/collection1/conf/schema.xml+++ b/solr/contrib/morphlines-core/src/test-files/solr/collection1/conf/schema.xml@@ -39,7 +39,7 @@- for best index size and searching performance, set "index" to falsefor all general text fields, use copyField to copy them to thecatchall "text" field, and use that for searching.- - For maximum indexing performance, use the StreamingUpdateSolrServer+ - For maximum indexing performance, use the ConcurrentUpdateSolrServerjava client.- Remember to run the JVM in server mode, and use a higher logging levelthat avoids logging every requestdiff --git a/solr/contrib/morphlines-core/src/test-files/solr/minimr/conf/schema.xml b/solr/contrib/morphlines-core/src/test-files/solr/minimr/conf/schema.xmlindex c32d13f8eca..74c061baadf 100644--- a/solr/contrib/morphlines-core/src/test-files/solr/minimr/conf/schema.xml+++ b/solr/contrib/morphlines-core/src/test-files/solr/minimr/conf/schema.xml@@ -39,7 +39,7 @@- for best index size and searching performance, set "index" to falsefor all general text fields, use copyField to copy them to thecatchall "text" field, and use that for searching.- - For maximum indexing performance, use the StreamingUpdateSolrServer+ - For maximum indexing performance, use the ConcurrentUpdateSolrServerjava client.- Remember to run the JVM in server mode, and use a higher logging levelthat avoids logging every requestdiff --git a/solr/contrib/morphlines-core/src/test-files/solr/mrunit/conf/schema.xml b/solr/contrib/morphlines-core/src/test-files/solr/mrunit/conf/schema.xmlindex 5c04e777a00..c5beada5286 100644--- a/solr/contrib/morphlines-core/src/test-files/solr/mrunit/conf/schema.xml+++ b/solr/contrib/morphlines-core/src/test-files/solr/mrunit/conf/schema.xml@@ -39,7 +39,7 @@- for best index size and searching performance, set "index" to falsefor all general text fields, use copyField to copy them to thecatchall "text" field, and use that for searching.- - For maximum indexing performance, use the StreamingUpdateSolrServer+ - For maximum indexing performance, use the ConcurrentUpdateSolrServerjava client.- Remember to run the JVM in server mode, and use a higher logging levelthat avoids logging every requestdiff --git a/solr/contrib/morphlines-core/src/test-files/solr/solrcelltest/collection1/conf/schema.xml b/solr/contrib/morphlines-core/src/test-files/solr/solrcelltest/collection1/conf/schema.xmlindex 709737a9090..46b3fb08693 100644--- a/solr/contrib/morphlines-core/src/test-files/solr/solrcelltest/collection1/conf/schema.xml+++ b/solr/contrib/morphlines-core/src/test-files/solr/solrcelltest/collection1/conf/schema.xml@@ -39,7 +39,7 @@- for best index size and searching performance, set "index" to falsefor all general text fields, use copyField to copy them to thecatchall "text" field, and use that for searching.- - For maximum indexing performance, use the StreamingUpdateSolrServer+ - For maximum indexing performance, use the ConcurrentUpdateSolrServerjava client.- Remember to run the JVM in server mode, and use a higher logging levelthat avoids logging every requestdiff --git a/solr/contrib/uima/src/test-files/uima/solr/collection1/conf/schema.xml b/solr/contrib/uima/src/test-files/uima/solr/collection1/conf/schema.xmlindex eb1ba78ce36..fe70b376d68 100644--- a/solr/contrib/uima/src/test-files/uima/solr/collection1/conf/schema.xml+++ b/solr/contrib/uima/src/test-files/uima/solr/collection1/conf/schema.xml@@ -34,7 +34,7 @@size and searching performance, set "index" to false for all generaltext fields, use copyField to copy them to the catchall "text"field, and use that for searching. - For maximum indexing- performance, use the StreamingUpdateSolrServer java client. -+ performance, use the ConcurrentUpdateSolrServer java client. -Remember to run the JVM in server mode, and use a higher logginglevel that avoids logging every request-->diff --git a/solr/contrib/uima/src/test-files/uima/uima-tokenizers-schema.xml b/solr/contrib/uima/src/test-files/uima/uima-tokenizers-schema.xmlindex b361630ffb3..f63705bc399 100644--- a/solr/contrib/uima/src/test-files/uima/uima-tokenizers-schema.xml+++ b/solr/contrib/uima/src/test-files/uima/uima-tokenizers-schema.xml@@ -34,7 +34,7 @@size and searching performance, set "index" to false for all generaltext fields, use copyField to copy them to the catchall "text"field, and use that for searching. - For maximum indexing- performance, use the StreamingUpdateSolrServer java client. -+ performance, use the ConcurrentUpdateSolrServer java client. -Remember to run the JVM in server mode, and use a higher logginglevel that avoids logging every request-->diff --git a/solr/example/example-DIH/solr/db/conf/schema.xml b/solr/example/example-DIH/solr/db/conf/schema.xmlindex 63a24f441e3..0e2badcb970 100755--- a/solr/example/example-DIH/solr/db/conf/schema.xml+++ b/solr/example/example-DIH/solr/db/conf/schema.xml@@ -39,7 +39,7 @@- for best index size and searching performance, set "index" to falsefor all general text fields, use copyField to copy them to thecatchall "text" field, and use that for searching.- - For maximum indexing performance, use the StreamingUpdateSolrServer+ - For maximum indexing performance, use the ConcurrentUpdateSolrServerjava client.- Remember to run the JVM in server mode, and use a higher logging levelthat avoids logging every requestdiff --git a/solr/example/example-DIH/solr/mail/conf/schema.xml b/solr/example/example-DIH/solr/mail/conf/schema.xmlindex bd93f55aefe..9f83427dd82 100755--- a/solr/example/example-DIH/solr/mail/conf/schema.xml+++ b/solr/example/example-DIH/solr/mail/conf/schema.xml@@ -39,7 +39,7 @@- for best index size and searching performance, set "index" to falsefor all general text fields, use copyField to copy them to thecatchall "text" field, and use that for searching.- - For maximum indexing performance, use the StreamingUpdateSolrServer+ - For maximum indexing performance, use the ConcurrentUpdateSolrServerjava client.- Remember to run the JVM in server mode, and use a higher logging levelthat avoids logging every requestdiff --git a/solr/example/example-DIH/solr/rss/conf/schema.xml b/solr/example/example-DIH/solr/rss/conf/schema.xmlindex ae15e71ac9c..c95c6b25e99 100755--- a/solr/example/example-DIH/solr/rss/conf/schema.xml+++ b/solr/example/example-DIH/solr/rss/conf/schema.xml@@ -39,7 +39,7 @@- for best index size and searching performance, set "index" to falsefor all general text fields, use copyField to copy them to thecatchall "text" field, and use that for searching.- - For maximum indexing performance, use the StreamingUpdateSolrServer+ - For maximum indexing performance, use the ConcurrentUpdateSolrServerjava client.- Remember to run the JVM in server mode, and use a higher logging levelthat avoids logging every requestdiff --git a/solr/example/example-DIH/solr/solr/conf/schema.xml b/solr/example/example-DIH/solr/solr/conf/schema.xmlindex c61b681abfd..f5b0ed5f7f2 100755--- a/solr/example/example-DIH/solr/solr/conf/schema.xml+++ b/solr/example/example-DIH/solr/solr/conf/schema.xml@@ -39,7 +39,7 @@- for best index size and searching performance, set "index" to falsefor all general text fields, use copyField to copy them to thecatchall "text" field, and use that for searching.- - For maximum indexing performance, use the StreamingUpdateSolrServer+ - For maximum indexing performance, use the ConcurrentUpdateSolrServerjava client.- Remember to run the JVM in server mode, and use a higher logging levelthat avoids logging every requestdiff --git a/solr/example/example-DIH/solr/tika/conf/schema.xml b/solr/example/example-DIH/solr/tika/conf/schema.xmlindex 535c368cdb3..f58e222fb33 100755--- a/solr/example/example-DIH/solr/tika/conf/schema.xml+++ b/solr/example/example-DIH/solr/tika/conf/schema.xml@@ -39,7 +39,7 @@- for best index size and searching performance, set "index" to falsefor all general text fields, use copyField to copy them to thecatchall "text" field, and use that for searching.- - For maximum indexing performance, use the StreamingUpdateSolrServer+ - For maximum indexing performance, use the ConcurrentUpdateSolrServerjava client.- Remember to run the JVM in server mode, and use a higher logging levelthat avoids logging every requestdiff --git a/solr/example/example-schemaless/solr/collection1/conf/schema.xml b/solr/example/example-schemaless/solr/collection1/conf/schema.xmlindex 86b599cf272..1f73d176024 100755--- a/solr/example/example-schemaless/solr/collection1/conf/schema.xml+++ b/solr/example/example-schemaless/solr/collection1/conf/schema.xml@@ -39,7 +39,7 @@- for best index size and searching performance, set "index" to falsefor all general text fields, use copyField to copy them to thecatchall "text" field, and use that for searching.- - For maximum indexing performance, use the StreamingUpdateSolrServer+ - For maximum indexing performance, use the ConcurrentUpdateSolrServerjava client.- Remember to run the JVM in server mode, and use a higher logging levelthat avoids logging every requestdiff --git a/solr/example/solr/collection1/conf/schema.xml b/solr/example/solr/collection1/conf/schema.xmlindex 009eb409025..895bbe49b60 100755--- a/solr/example/solr/collection1/conf/schema.xml+++ b/solr/example/solr/collection1/conf/schema.xml@@ -39,7 +39,7 @@- for best index size and searching performance, set "index" to falsefor all general text fields, use copyField to copy them to thecatchall "text" field, and use that for searching.- - For maximum indexing performance, use the StreamingUpdateSolrServer+ - For maximum indexing performance, use the ConcurrentUpdateSolrServerjava client.- Remember to run the JVM in server mode, and use a higher logging levelthat avoids logging every requestdiff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBHttpSolrServer.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBHttpSolrServer.javaindex 858795719bf..fc7675d9737 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBHttpSolrServer.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBHttpSolrServer.java@@ -86,7 +86,7 @@ public class LBHttpSolrServer extends SolrServer {}// keys to the maps are currently of the form "http://localhost:8983/solr"- // which should be equivalent to CommonsHttpSolrServer.getBaseURL()+ // which should be equivalent to HttpSolrServer.getBaseURL()private final Map<String, ServerWrapper> aliveServers = new LinkedHashMap<>();// access to aliveServers should be synchronized on itselfdiff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/TestBatchUpdate.java b/solr/solrj/src/test/org/apache/solr/client/solrj/TestBatchUpdate.javaindex 38c83228ec2..c0c45d057be 100644--- a/solr/solrj/src/test/org/apache/solr/client/solrj/TestBatchUpdate.java+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/TestBatchUpdate.java@@ -50,28 +50,28 @@ public class TestBatchUpdate extends SolrJettyTestBase {@Testpublic void testWithXml() throws Exception {- HttpSolrServer commonsHttpSolrServer = (HttpSolrServer) getSolrServer();- commonsHttpSolrServer.setRequestWriter(new RequestWriter());- commonsHttpSolrServer.deleteByQuery( "*:*" ); // delete everything!- doIt(commonsHttpSolrServer);+ HttpSolrServer httpSolrServer = (HttpSolrServer) getSolrServer();+ httpSolrServer.setRequestWriter(new RequestWriter());+ httpSolrServer.deleteByQuery( "*:*" ); // delete everything!+ doIt(httpSolrServer);}@Testpublic void testWithBinary()throws Exception{- HttpSolrServer commonsHttpSolrServer = (HttpSolrServer) getSolrServer();- commonsHttpSolrServer.setRequestWriter(new BinaryRequestWriter());- commonsHttpSolrServer.deleteByQuery( "*:*" ); // delete everything!- doIt(commonsHttpSolrServer);+ HttpSolrServer httpSolrServer = (HttpSolrServer) getSolrServer();+ httpSolrServer.setRequestWriter(new BinaryRequestWriter());+ httpSolrServer.deleteByQuery( "*:*" ); // delete everything!+ doIt(httpSolrServer);}@Testpublic void testWithBinaryBean()throws Exception{- HttpSolrServer commonsHttpSolrServer = (HttpSolrServer) getSolrServer();- commonsHttpSolrServer.setRequestWriter(new BinaryRequestWriter());- commonsHttpSolrServer.deleteByQuery( "*:*" ); // delete everything!+ HttpSolrServer httpSolrServer = (HttpSolrServer) getSolrServer();+ httpSolrServer.setRequestWriter(new BinaryRequestWriter());+ httpSolrServer.deleteByQuery( "*:*" ); // delete everything!final int[] counter = new int[1];counter[0] = 0;- commonsHttpSolrServer.addBeans(new Iterator<Bean>() {+ httpSolrServer.addBeans(new Iterator<Bean>() {@Overridepublic boolean hasNext() {@@ -91,9 +91,9 @@ public class TestBatchUpdate extends SolrJettyTestBase {//do nothing}});- commonsHttpSolrServer.commit();+ httpSolrServer.commit();SolrQuery query = new SolrQuery("*:*");- QueryResponse response = commonsHttpSolrServer.query(query);+ QueryResponse response = httpSolrServer.query(query);assertEquals(0, response.getStatus());assertEquals(numdocs, response.getResults().getNumFound());}@@ -105,10 +105,10 @@ public class TestBatchUpdate extends SolrJettyTestBase {String cat;}- private void doIt(HttpSolrServer commonsHttpSolrServer) throws SolrServerException, IOException {+ private void doIt(HttpSolrServer httpSolrServer) throws SolrServerException, IOException {final int[] counter = new int[1];counter[0] = 0;- commonsHttpSolrServer.add(new Iterator<SolrInputDocument>() {+ httpSolrServer.add(new Iterator<SolrInputDocument>() {@Overridepublic boolean hasNext() {@@ -129,9 +129,9 @@ public class TestBatchUpdate extends SolrJettyTestBase {}});- commonsHttpSolrServer.commit();+ httpSolrServer.commit();SolrQuery query = new SolrQuery("*:*");- QueryResponse response = commonsHttpSolrServer.query(query);+ QueryResponse response = httpSolrServer.query(query);assertEquals(0, response.getStatus());assertEquals(numdocs, response.getResults().getNumFound());}diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/embedded/SolrExampleJettyTest.java b/solr/solrj/src/test/org/apache/solr/client/solrj/embedded/SolrExampleJettyTest.javaindex 43e77da089e..a304953f1de 100644--- a/solr/solrj/src/test/org/apache/solr/client/solrj/embedded/SolrExampleJettyTest.java+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/embedded/SolrExampleJettyTest.java@@ -46,7 +46,7 @@ public class SolrExampleJettyTest extends SolrExampleTests {// setup the server...String url = "http" + (isSSLMode() ? "s" : "") + "://127.0.0.1/?core=xxx";HttpSolrServer s = new HttpSolrServer( url );- Assert.fail( "CommonsHttpSolrServer should not allow a path with a parameter: "+s.getBaseURL() );+ Assert.fail("HttpSolrServer should not allow a path with a parameter: "+s.getBaseURL() );}catch( Exception ex ) {// expecteddiff --git a/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java b/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.javaindex 2d8694fdf40..384c5d72ac6 100644--- a/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java+++ b/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java@@ -672,7 +672,7 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTes// random.nextInt(sliceCount-1));// }//- // CommonsHttpSolrServer client = (CommonsHttpSolrServer)+ // HttpSolrServer client = (HttpSolrServer)// clients.get(which);UpdateRequest ureq = new UpdateRequest();@@ -1767,4 +1767,4 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTescreateCollection(collectionInfos, collName, props, client);}-}\ No newline at end of file+}