org.kuali.ole.docstore.discovery.service
Class SRUCQLQueryServiceImpl

java.lang.Object
  extended by org.kuali.ole.docstore.discovery.service.SRUCQLQueryServiceImpl
All Implemented Interfaces:
SRUCQLQueryService

public class SRUCQLQueryServiceImpl
extends Object
implements SRUCQLQueryService

Created with IntelliJ IDEA. User: ? Date: 8/6/12 Time: 11:42 AM To change this template use File | Settings | File Templates.


Field Summary
 
Fields inherited from interface org.kuali.ole.docstore.discovery.service.SRUCQLQueryService
MAXIMUM_RECORDS, RECORD_SCHEMA, SORTKEYS, SRU_QUERY_ALL_RELATION, SRU_QUERY_ANY_RELATION, SRU_QUERY_AUTHOR, SRU_QUERY_EXACT_RELATION, SRU_QUERY_GREATERTHAN_EQUAL_RELATION, SRU_QUERY_GREATERTHAN_RELATION, SRU_QUERY_ISBN, SRU_QUERY_LESSERTHAN_EQUAL_RELATION, SRU_QUERY_LESSERTHAN_RELATION, SRU_QUERY_PUBLICATION_DATE, SRU_QUERY_PUBLISHER, SRU_QUERY_SRC_RELATION, SRU_QUERY_TITLE, START_RECORD
 
Method Summary
 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)
           
 List<OleDocument> queryForBibDocs(Map reqParamMap, String solrQuery)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SRUCQLQueryServiceImpl getInstance()

queryForBibDocs

public List<OleDocument> queryForBibDocs(Map reqParamMap,
                                         String solrQuery)
                                  throws Exception
Specified by:
queryForBibDocs in interface SRUCQLQueryService
Parameters:
solrQuery -
Returns:
return list of bib id values
Throws:
Exception

getQuery

public String getQuery(String term,
                       String relation,
                       String index,
                       boolean solrQueryFlag)
                throws Exception
Specified by:
getQuery in interface SRUCQLQueryService
Parameters:
term -
relation -
index -
solrQueryFlag -
Returns:
solr query
Throws:
Exception

getIndex

public String getIndex(String index)
Parameters:
index -
Returns:
query fields string

getExactIndex

public String getExactIndex(String index)
Parameters:
index -
Returns:
query fields string

getSortKeyValue

public String getSortKeyValue(String sortKey)
Parameters:
sortKey -
Returns:

buildOleDocuments

public List<OleDocument> buildOleDocuments(List<Map<String,Object>> hitsOnPage)
Parameters:
hitsOnPage -
Returns:
List of OleDocuments

getSolrHitsForQuery

public List<Map<String,Object>> getSolrHitsForQuery(String inputQuery,
                                                    Map reqParamMap)
                                             throws Exception
Parameters:
inputQuery -
Returns:
hitsOnPage
Throws:
Exception - Usage: Gets Solr response for input query and builds List of Maps holding Solr Doc Data

getSolrReqQuery

public String getSolrReqQuery(Map reqParamMap,
                              String solrQuery)


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.