Changeset 31041
- Timestamp:
- 2016-11-02T20:07:40+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/src/main/java/org/hathitrust/extractedfeatures/ProcessForSolrIngest.java
r31028 r31041 110 110 ArrayList<String> solr_endpoints = new ArrayList<String>(); 111 111 112 String solr_endpoint_ips = System.getProperty("wcsa-ef-ingest.solr-endpoint-ips",null); 113 if (solr_endpoint_ips != null) { 114 String [] ips = solr_endpoint_ips.split(","); 115 for (String ip : ips) { 116 String solr_endpoint = _solr_url.replaceFirst("//.*?:", "//"+ip+":"); 117 solr_endpoints.add(solr_endpoint); 112 if (_solr_url != null) { 113 String solr_endpoint_ips = System.getProperty("wcsa-ef-ingest.solr-endpoint-ips",null); 114 if (solr_endpoint_ips != null) { 115 String [] ips = solr_endpoint_ips.split(","); 116 for (String ip : ips) { 117 String solr_endpoint = _solr_url.replaceFirst("//.*?:", "//"+ip+":"); 118 solr_endpoints.add(solr_endpoint); 119 } 118 120 } 119 } 120 else { 121 if (_solr_url != null) { 121 else { 122 122 solr_endpoints.add(_solr_url); 123 123 } 124 124 } 125 125 126 126 return solr_endpoints; 127 127 }
Note:
See TracChangeset
for help on using the changeset viewer.