org.dspace.discovery
Interface SearchService


public interface SearchService

Search interface that discovery uses

Author:
Kevin Van de Velde (kevin at atmire dot com), Mark Diggory (markd at atmire dot com), Ben Bosman (ben at atmire dot com)

Method Summary
 DiscoverResult search(Context context, DiscoverQuery query)
           
 DiscoverResult search(Context context, DSpaceObject dso, DiscoverQuery query)
           
 List<DSpaceObject> search(Context context, String query, String orderfield, boolean ascending, int offset, int max, String... filterquery)
           
 String searchJSON(DiscoverQuery query, DSpaceObject dso, String jsonIdentifier)
           
 String searchJSON(DiscoverQuery query, String jsonIdentifier)
           
 DiscoverFilterQuery toFilterQuery(Context context, String filterQuery)
          Transforms the given string into a filter query
 DiscoverFilterQuery toFilterQuery(Context context, String field, String value)
          Transforms the given string field and value into a filter query
 String toSortFieldIndex(String metadataField, String type)
          Transforms the metadata field of the given sort configuration into the indexed field which we can then use in our solr queries
 

Method Detail

search

DiscoverResult search(Context context,
                      DiscoverQuery query)
                      throws SearchServiceException
Throws:
SearchServiceException

search

DiscoverResult search(Context context,
                      DSpaceObject dso,
                      DiscoverQuery query)
                      throws SearchServiceException
Throws:
SearchServiceException

searchJSON

String searchJSON(DiscoverQuery query,
                  String jsonIdentifier)
                  throws SearchServiceException
Throws:
SearchServiceException

searchJSON

String searchJSON(DiscoverQuery query,
                  DSpaceObject dso,
                  String jsonIdentifier)
                  throws SearchServiceException
Throws:
SearchServiceException

search

List<DSpaceObject> search(Context context,
                          String query,
                          String orderfield,
                          boolean ascending,
                          int offset,
                          int max,
                          String... filterquery)

toFilterQuery

DiscoverFilterQuery toFilterQuery(Context context,
                                  String filterQuery)
                                  throws SQLException
Transforms the given string into a filter query

Parameters:
context - the DSpace context
filterQuery - the filter query
Returns:
a filter query object
Throws:
SQLException - ...

toFilterQuery

DiscoverFilterQuery toFilterQuery(Context context,
                                  String field,
                                  String value)
                                  throws SQLException
Transforms the given string field and value into a filter query

Parameters:
context - the DSpace context
field - the field of the filter query
value - the filter query value
Returns:
a filter query
Throws:
SQLException - ...

toSortFieldIndex

String toSortFieldIndex(String metadataField,
                        String type)
Transforms the metadata field of the given sort configuration into the indexed field which we can then use in our solr queries

Parameters:
metadataField - the metadata field
Returns:
the indexed field


Copyright © 2011 DuraSpace. All Rights Reserved.