Project

General

Profile

« Previous | Next » 

Revision 41450

for missing openaire results : give a second chance searching in the index for inference true

View differences:

IndexResultHandler.java
18 18
    private String fetchDatasetResult(String id) throws Exception {
19 19
        return searchUtils.fetchDatasetXmlFromIndex(id);
20 20
    }
21
    private String fetchDedupPublicationResult(String id) throws Exception {
22
        return searchUtils.fetchDedupPublicationXmlFromIndex(id);
23
    }
21 24

  
25
    private String fetchDedupDatasetResult(String id) throws Exception {
26
        return searchUtils.fetchDedupDatasetXmlFromIndex(id);
27
    }
22 28
    /**
23 29
     *Searches for both publications and datasets
24 30
     * @param id
......
39 45

  
40 46
        return OafParser.oaf2Result(oaf);
41 47
    }
48
    public Result fetchDedupResultById(String id) throws Exception {
42 49

  
50
        String oaf = fetchDedupPublicationResult(id);
51

  
52
        if (oaf == null) {
53
            oaf = fetchDedupDatasetResult(id);
54
        }
55

  
56
        if (oaf == null) {
57
            return null;
58
        }
59

  
60
        return OafParser.oaf2Result(oaf);
61
    }
43 62
    public SearchUtils getSearchUtils() {
44 63
        return searchUtils;
45 64
    }

Also available in: Unified diff