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
10
11
12
13
14
15 public interface SRUCQLQueryService {
16
17
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_PUBLICATION_DATE="publicationDate";
22 public static final String SRU_QUERY_ISBN="isbn";
23 public static final String SRU_QUERY_PUBLISHER="publisher";
24
25
26
27 public static final String SRU_QUERY_SRC_RELATION="scr";
28 public static final String SRU_QUERY_ANY_RELATION="any";
29 public static final String SRU_QUERY_ALL_RELATION="all";
30 public static final String SRU_QUERY_EXACT_RELATION="exact";
31 public static final String SRU_QUERY_LESSERTHAN_RELATION="<";
32 public static final String SRU_QUERY_LESSERTHAN_EQUAL_RELATION="<=";
33 public static final String SRU_QUERY_GREATERTHAN_RELATION=">";
34 public static final String SRU_QUERY_GREATERTHAN_EQUAL_RELATION=">=";
35
36
37
38 public static final String START_RECORD = "startRecord";
39 public static final String MAXIMUM_RECORDS = "maximumRecords";
40 public static final String RECORD_SCHEMA ="recordSchema";
41 public static final String SORTKEYS ="sortKeys";
42
43
44 public String getQuery(String term,String relation,String index,boolean solrQueryFlag)throws Exception;
45 public List<OleDocument> queryForBibDocs(Map reqParamMap,String solrQuery) throws Exception;
46 }