org.kuali.ole.docstore.discovery.service
Class QueryServiceImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.