org.kuali.ole.docstore.discovery.service
Class DiscoveryServiceImpl
java.lang.Object
org.kuali.ole.docstore.discovery.service.DiscoveryServiceImpl
- All Implemented Interfaces:
- DiscoveryService
public class DiscoveryServiceImpl
- extends Object
- implements DiscoveryService
Fields inherited from interface org.kuali.ole.docstore.discovery.service.DiscoveryService |
AUTHOR_FACET, BIB_FIELDS, BIB_LINK_FIELDS, BIBLIOGRAPHIC, FORMAT_FACET, GENRE_FACET, HOLDINGS, HOLDINGS_FIELDS, HOLDINGS_LINK_FIELDS, INSTANCE, INSTANCE_FIELDS, INSTANCE_LINK_FIELDS, ITEM, ITEM_FIELDS, ITEM_LINK_FIELDS, LANGUAGE_FACET, PUBLICATION_DATE_FACET, SEARCH_TYPE_ADVANCED, SEARCH_TYPE_FACET, SEARCH_TYPE_FACET_DELETE, SEARCH_TYPE_LINK, SEARCH_TYPE_MORE_FACET, SEARCH_TYPE_NEW, SEARCH_TYPE_QUICK, SUBJECT_FACET |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static DiscoveryService getInstance()
init
protected void init()
search
public String search(SearchParams searchParams)
- Description copied from interface:
DiscoveryService
- Performs a search based on the given search parameters and returns the result in solr xml format.
This is used by the GUI screens.
- Specified by:
search
in interface DiscoveryService
- Parameters:
searchParams
- - search parameters
- Returns:
- search result in xml format
getFieldList
public String getFieldList(String docType)
setDocSearchUrl
public static void setDocSearchUrl(String docSearchUrl)
getDocSearchUrl
public static String getDocSearchUrl()
buildQuery
public String buildQuery(SearchParams searchParams)
- Specified by:
buildQuery
in interface DiscoveryService
buildQueryWithSearchParameters
public String buildQueryWithSearchParameters(List<SearchCondition> searchFieldsList)
buildQueryWithFacetParameters
public String buildQueryWithFacetParameters(List<String> facetsParametersList,
int facetMinCount,
int facetLimit)
buildQueryWithSortFields
public String buildQueryWithSortFields(String sortField,
String sortOrder)
buildQueryWithFieldListParameters
public String buildQueryWithFieldListParameters(List<String> fieldsList)
convertListToStringFieldValues
public static String convertListToStringFieldValues(Map<String,String> map)
buildFilterQuery
public String buildFilterQuery(Map<String,String> facetTermsMap)
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.