Project

General

Profile

« Previous | Next » 

Revision 44602

Added methods for single solr query for search and browse. Size does not trigger extra solr query. Refine uses field queries. Pending APIs for different entities - only the genarla resources api is currently enabled. Pending handling format for both XML and JSON. All these related to #1432 and #2479

View differences:

SolrIndexClient.java
48 48
        return epr;
49 49
    }
50 50

  
51
    public void newMethod(){}
52

  
53
    public EPR getBrowsingStatistics2(String query, String index, String mdFormatId, String layoutId) throws IndexServiceException {
54
        EPR epr = new EPR();
55

  
56
        epr.setAddress(solrServerUrl);
57
        epr.setParameter("action", "browse");
58
        epr.setParameter("id", index);
59
        epr.setParameter("query", query);
60
        epr.setParameter("mdformat", mdFormatId);
61
        epr.setParameter("layout", layoutId);
62
        epr.setParameter("interpretation", this.interpretation);
63

  
64
        return epr;
65
    }
66

  
51 67
    @Override
52 68
    public Hint suggestiveSearch(String s, String s2, String s3, String s4, String s5) throws IndexServiceException {
53 69
        throw new UnsupportedOperationException();

Also available in: Unified diff