public interface SearchService
| Modifier and Type | Method and Description |
|---|---|
java.util.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) |
java.util.List<DSpaceObject> |
search(Context context,
java.lang.String query,
java.lang.String orderfield,
boolean ascending,
int offset,
int max,
java.lang.String... filterquery) |
java.io.InputStream |
searchJSON(Context context,
DiscoverQuery query,
DSpaceObject dso,
java.lang.String jsonIdentifier) |
java.io.InputStream |
searchJSON(Context context,
DiscoverQuery query,
java.lang.String jsonIdentifier) |
DiscoverFilterQuery |
toFilterQuery(Context context,
java.lang.String field,
java.lang.String operator,
java.lang.String value)
Transforms the given string field and value into a filter query
|
java.lang.String |
toSortFieldIndex(java.lang.String metadataField,
java.lang.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 querySearchServiceExceptionjava.io.InputStream searchJSON(Context context, DiscoverQuery query, java.lang.String jsonIdentifier) throws SearchServiceException
SearchServiceExceptionjava.io.InputStream searchJSON(Context context, DiscoverQuery query, DSpaceObject dso, java.lang.String jsonIdentifier) throws SearchServiceException
SearchServiceExceptionjava.util.List<DSpaceObject> search(Context context, java.lang.String query, java.lang.String orderfield, boolean ascending, int offset, int max, java.lang.String... filterquery)
DiscoverFilterQuery toFilterQuery(Context context, java.lang.String field, java.lang.String operator, java.lang.String value) throws java.sql.SQLException
context - the DSpace contextfield - the field of the filter queryvalue - the filter query valuejava.sql.SQLException - ...java.util.List<Item> getRelatedItems(Context context, Item item, DiscoveryMoreLikeThisConfiguration moreLikeThisConfiguration)
java.lang.String toSortFieldIndex(java.lang.String metadataField,
java.lang.String type)
metadataField - the metadata fieldCopyright © 2013 DuraSpace. All Rights Reserved.