View Javadoc
1   package org.kuali.ole.docstore.discovery.service;
2   
3   import org.kuali.ole.docstore.model.bo.OleDocument;
4   
5   import java.util.List;
6   import java.util.Map;
7   
8   /**
9    * Created with IntelliJ IDEA.
10   * User: ?
11   * Date: 8/6/12
12   * Time: 11:42 AM
13   * To change this template use File | Settings | File Templates.
14   */
15  public interface SRUCQLQueryService {
16  
17      //SRU request parameter index
18  
19      public static final String SRU_QUERY_TITLE = "title";
20      public static final String SRU_QUERY_AUTHOR = "author";
21      public static final String SRU_QUERY_CREATOR = "creator";
22      public static final String SRU_QUERY_PUBLICATION_DATE = "publicationDate";
23      public static final String SRU_QUERY_DATE = "date";
24      public static final String SRU_QUERY_ISBN = "isbn";
25      public static final String SRU_QUERY_PUBLISHER = "publisher";
26      public static final String SRU_QUERY_ISSN = "issn";
27      public static final String SRU_QUERY_LOCAL_ID = "localId";
28      public static final String SRU_QUERY_OCLC = "oclc";
29      public static final String SRU_QUERY_SUBJECT="subject";
30      public static final String SRU_QUERY_SERVER_CHOICE="cql.serverChoice";
31      public static final String SRU_QUERY_CQL_KEYWORDS = "cql.keywords";
32  
33      // SRU   request parameter relations
34  
35      //public static final String SRU_QUERY_SRC_RELATION = "scr"; //Support for scr is removed as part upgradation of CQL 1.2
36      public static final String SRU_QUERY_ANY_RELATION = "any";
37      public static final String SRU_QUERY_ALL_RELATION = "all";
38      public static final String SRU_QUERY_EXACT_RELATION = "==";
39      public static final String SRU_QUERY_LESSERTHAN_RELATION = "<";
40      public static final String SRU_QUERY_LESSERTHAN_EQUAL_RELATION = "<=";
41      public static final String SRU_QUERY_GREATERTHAN_RELATION = ">";
42      public static final String SRU_QUERY_GREATERTHAN_EQUAL_RELATION = ">=";
43      public static final String SRU_QUERY_ADJ_RELATION = "adj";
44      public static final String SRU_QUERY_WITHIN_RELATION = "within";
45      public static final String SRU_QUERY_EQUALS_RELATION = "=";
46  
47      // SRU request parameter names
48  
49      public static final String START_RECORD = "startRecord";
50      public static final String MAXIMUM_RECORDS = "maximumRecords";
51      public static final String RECORD_SCHEMA = "recordSchema";
52      public static final String SORTKEYS = "sortKeys";
53  
54      public static final String LOCAL_Id ="localId";
55      public static final String REC_ID = "rec.id";
56      public static final String DC_ID="dc.id";
57      public static final String OLE_ID="ole.id";
58      public static final String BATH_ID="bath.id";
59      public static final String DC="dc.";
60      public static final String OLE="ole.";
61      public static final String BATH="bath.";
62      public static final String REC="rec.";
63  
64  
65  
66      public String getQuery(String term, String relation, String index, boolean solrQueryFlag) throws Exception;
67  
68      public List<OleDocument> queryForBibDocs(Map reqParamMap, String solrQuery) throws Exception;
69  }