public class SRUCQLQueryServiceImpl extends Object implements SRUCQLQueryService
BATH, BATH_ID, DC, DC_ID, LOCAL_Id, MAXIMUM_RECORDS, OLE, OLE_ID, REC, REC_ID, RECORD_SCHEMA, SORTKEYS, SRU_QUERY_ADJ_RELATION, SRU_QUERY_ALL_RELATION, SRU_QUERY_ANY_RELATION, SRU_QUERY_AUTHOR, SRU_QUERY_CQL_KEYWORDS, SRU_QUERY_CREATOR, SRU_QUERY_DATE, SRU_QUERY_EQUALS_RELATION, SRU_QUERY_EXACT_RELATION, SRU_QUERY_GREATERTHAN_EQUAL_RELATION, SRU_QUERY_GREATERTHAN_RELATION, SRU_QUERY_ISBN, SRU_QUERY_ISSN, SRU_QUERY_LESSERTHAN_EQUAL_RELATION, SRU_QUERY_LESSERTHAN_RELATION, SRU_QUERY_LOCAL_ID, SRU_QUERY_OCLC, SRU_QUERY_PUBLICATION_DATE, SRU_QUERY_PUBLISHER, SRU_QUERY_SERVER_CHOICE, SRU_QUERY_SUBJECT, SRU_QUERY_TITLE, SRU_QUERY_WITHIN_RELATION, START_RECORD
Modifier and Type | Method and Description |
---|---|
List<OleDocument> |
buildOleDocuments(List<Map<String,Object>> hitsOnPage) |
String |
getExactIndex(String index) |
String |
getIndex(String index) |
static SRUCQLQueryServiceImpl |
getInstance() |
String |
getQuery(String term,
String relation,
String index,
boolean solrQueryFlag) |
List<Map<String,Object>> |
getSolrHitsForQuery(String inputQuery,
Map reqParamMap) |
String |
getSolrReqQuery(Map reqParamMap,
String solrQuery) |
String |
getSortKeyValue(String sortKey) |
String |
getWithinQuery(String term) |
List<OleDocument> |
queryForBibDocs(Map reqParamMap,
String solrQuery) |
public static SRUCQLQueryServiceImpl getInstance()
public List<OleDocument> queryForBibDocs(Map reqParamMap, String solrQuery) throws Exception
queryForBibDocs
in interface SRUCQLQueryService
solrQuery
- Exception
public String getQuery(String term, String relation, String index, boolean solrQueryFlag) throws Exception
getQuery
in interface SRUCQLQueryService
term
- relation
- index
- solrQueryFlag
- Exception
public String getExactIndex(String index)
index
- public String getSortKeyValue(String sortKey)
sortKey
- public List<OleDocument> buildOleDocuments(List<Map<String,Object>> hitsOnPage)
hitsOnPage
- public List<Map<String,Object>> getSolrHitsForQuery(String inputQuery, Map reqParamMap) throws Exception
inputQuery
- Exception
- Usage: Gets Solr response for input query and builds List of Maps holding Solr Doc Datapublic String getSolrReqQuery(Map reqParamMap, String solrQuery)
public String getWithinQuery(String term)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.