Revision 59116
Added by Katerina Iatropoulou almost 4 years ago
SolrClientLocator.java | ||
---|---|---|
40 | 40 |
cachedUrl = chooseIndexService(urls); |
41 | 41 |
|
42 | 42 |
} else { |
43 |
cachedUrl = getCachedIndexService(urls); |
|
43 | 44 |
logger.warn("Falling back to cached value for index : " + cachedUrl); |
44 | 45 |
throw new IllegalArgumentException("Could not locate an index service with a SOLR interface"); |
45 | 46 |
} |
... | ... | |
57 | 58 |
return client; |
58 | 59 |
} |
59 | 60 |
|
60 |
private String chooseIndexService(List<String> urls) {
|
|
61 |
private String getCachedIndexService(List<String> urls) {
|
|
61 | 62 |
if (cachedUrl.equals("${services.index.default.url}")) |
62 | 63 |
return urls.get(0); |
63 | 64 |
return cachedUrl; |
64 | 65 |
} |
65 | 66 |
|
67 |
private String chooseIndexService(List<String> urls) { |
|
68 |
return urls.get(0); |
|
69 |
} |
|
70 |
|
|
71 |
|
|
66 | 72 |
public ServiceLocator<ISLookUpService> getLookUpServiceServiceLocator() { |
67 | 73 |
return lookUpServiceServiceLocator; |
68 | 74 |
} |
Also available in: Unified diff
DOIs mixed with other PIDs fixed - related to #5767