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

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

public class QueryServiceImpl
extends Object
implements QueryService

User: tirumalesh.b Date: 16/1/12 Time: 12:49 PM


Method Summary
 List<OleDocument> buildOleDocuments(List<Map<String,Object>> hitsOnPage)
           
 String buildQueryForDoc(OleDocument queryDoc)
           
 String getFieldValue(org.apache.solr.client.solrj.response.QueryResponse response, String fieldName)
           
static QueryService getInstance()
           
 List<Map<String,Object>> getSolrHitsForQuery(String inputQuery)
           
 List<String> getTitleValues(String fieldValue)
          This method returns the list of titles based on the given search value.
 List<String> getUUIDList(List<String> idList, String identifierType)
           
protected  void init()
           
 String queryField(SearchParams searchParams, String fieldName)
           
 List<OleDocument> queryForDocs(OleDocument queryDoc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static QueryService getInstance()

init

protected void init()

queryForDocs

public List<OleDocument> queryForDocs(OleDocument queryDoc)
                               throws Exception
Specified by:
queryForDocs in interface QueryService
Throws:
Exception

queryField

public String queryField(SearchParams searchParams,
                         String fieldName)
                  throws Exception
Specified by:
queryField in interface QueryService
Throws:
Exception

getFieldValue

public String getFieldValue(org.apache.solr.client.solrj.response.QueryResponse response,
                            String fieldName)

buildOleDocuments

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

buildQueryForDoc

public String buildQueryForDoc(OleDocument queryDoc)
Specified by:
buildQueryForDoc in interface QueryService
Parameters:
queryDoc -
Returns:
query Usage: Builds query string using OleDocument Data

getSolrHitsForQuery

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

getUUIDList

public List<String> getUUIDList(List<String> idList,
                                String identifierType)
Specified by:
getUUIDList in interface QueryService
Parameters:
idList -
identifierType -
Returns:

getTitleValues

public List<String> getTitleValues(String fieldValue)
This method returns the list of titles based on the given search value.

Specified by:
getTitleValues in interface QueryService
Parameters:
fieldValue -
Returns:


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