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_PUBLICATION_DATE="publicationDate";
22      public  static final String SRU_QUERY_ISBN="isbn";
23      public  static final String SRU_QUERY_PUBLISHER="publisher";
24  
25      // SRU   request parameter relations
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      // SRU request parameter names
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  }