Project

General

Profile

« Previous | Next » 

Revision 55922

Re-added Solr collection postfix, otherwise we cannot find the proper index collection

View differences:

OpenaireIdResolver.java
31 31
public class OpenaireIdResolver {
32 32

  
33 33
	private static final Log log = LogFactory.getLog(OpenaireIdResolver.class);
34
	public final static String SOLR_COLLECTION_POSTFIX = "-index-openaire";
34 35
	private final static String RESULT_FIELD = "__result";
35 36
	private final static String XPATH_TO_MERGED = "//*[local-name()='entity']/*//children/result/@objidentifier";
36 37
	private final SAXReader saxReader = new SAXReader();
......
47 48
	}
48 49

  
49 50
	protected List<String> findOriginalIds(final String id) {
50
		try(final SolrIndexClient client = (SolrIndexClient) indexClientFactory.getClient(getPublicIndexCollection())) {
51
		try(final SolrIndexClient client = (SolrIndexClient) indexClientFactory.getClient(getPublicIndexCollection()+SOLR_COLLECTION_POSTFIX)) {
51 52

  
52 53
			final String query = String.format("objidentifier:\"%s\"", id);
53 54
			final QueryResponse response = client.query(query, 1);

Also available in: Unified diff