public interface SearchService
| Modifier and Type | Method and Description |
|---|---|
List<Item> |
getRelatedItems(Context context,
Item item,
DiscoveryMoreLikeThisConfiguration moreLikeThisConfiguration) |
DiscoverResult |
search(Context context,
DiscoverQuery query)
Convenient method to call @see #search(Context, DSpaceObject,
DiscoverQuery) with a null DSpace Object as scope (i.e.
|
DiscoverResult |
search(Context context,
DiscoverQuery query,
boolean includeWithdrawn) |
DiscoverResult |
search(Context context,
DSpaceObject dso,
DiscoverQuery query)
Convenient method to call @see #search(Context, DSpaceObject,
DiscoverQuery, boolean) with includeWithdrawn=false
|
DiscoverResult |
search(Context context,
DSpaceObject dso,
DiscoverQuery query,
boolean includeWithdrawn) |
List<DSpaceObject> |
search(Context context,
String query,
String orderfield,
boolean ascending,
int offset,
int max,
String... filterquery) |
InputStream |
searchJSON(Context context,
DiscoverQuery query,
DSpaceObject dso,
String jsonIdentifier) |
InputStream |
searchJSON(Context context,
DiscoverQuery query,
String jsonIdentifier) |
DiscoverFilterQuery |
toFilterQuery(Context context,
String field,
String operator,
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
|
DiscoverResult search(Context context, DiscoverQuery query) throws SearchServiceException
context - DSpace Context object.query - the discovery query object.SearchServiceExceptionDiscoverResult search(Context context, DSpaceObject dso, DiscoverQuery query) throws SearchServiceException
context - DSpace Context objectdso - a DSpace Object to use as scope of the search (only results
within this object)query - the discovery query objectSearchServiceExceptionDiscoverResult search(Context context, DiscoverQuery query, boolean includeWithdrawn) throws SearchServiceException
context - DSpace Context object.query - the discovery query object.includeWithdrawn - use true to include in the results also withdrawn
items that match the query.SearchServiceExceptionDiscoverResult search(Context context, DSpaceObject dso, DiscoverQuery query, boolean includeWithdrawn) throws SearchServiceException
context - DSpace Context objectdso - a DSpace Object to use as scope of the search (only results
within this object)query - the discovery query objectincludeWithdrawn - use true to include in the results also withdrawn
items that match the querySearchServiceExceptionInputStream searchJSON(Context context, DiscoverQuery query, String jsonIdentifier) throws SearchServiceException
SearchServiceExceptionInputStream searchJSON(Context context, DiscoverQuery query, DSpaceObject dso, String jsonIdentifier) throws SearchServiceException
SearchServiceExceptionList<DSpaceObject> search(Context context, String query, String orderfield, boolean ascending, int offset, int max, String... filterquery)
DiscoverFilterQuery toFilterQuery(Context context, String field, String operator, String value) throws SQLException
context - the DSpace contextfield - the field of the filter queryvalue - the filter query valueSQLException - ...List<Item> getRelatedItems(Context context, Item item, DiscoveryMoreLikeThisConfiguration moreLikeThisConfiguration)
Copyright © 2014 DuraSpace. All Rights Reserved.