public interface SearchService
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.solr.client.solrj.response.FacetField.Count> |
createCollections(String facetFieldName,
String queryString,
String... refinements)
Create collection list for a given query and facet field
|
FullBean |
fetchFullBean(String europeanaObjectId)
Retrieve a record by europeanaObjectId (no further processing)
|
FullBean |
findById(String europeanaObjectId,
boolean similarItems)
Retrieve a record by id and calling processFullBean() afterwards
|
FullBean |
findById(String collectionId,
String recordId,
boolean similarItems)
Retrieves a record by collectionId and recordId and calling processFullBean() afterwards
|
List<BriefBean> |
findMoreLikeThis(String europeanaObjectId)
Deprecated.
|
List<BriefBean> |
findMoreLikeThis(String europeanaObjectId,
int count)
Deprecated.
|
Date |
getLastSolrUpdate() |
FullBean |
processFullBean(FullBean fullBean,
String europeanaObjectId,
boolean similarItems)
(optionally) adding similar items to a FullBean, etcetera
|
Map<String,Integer> |
queryFacetSearch(String query,
String[] qf,
List<String> queries) |
FullBean |
resolve(String europeanaObjectId,
boolean similarItems)
Retrieve a record by id.
|
FullBean |
resolve(String collectionId,
String recordId,
boolean similarItems)
Retrieve a record by splitted collectionId and recordId
|
String |
resolveId(String europeanaObjectId)
Checks if an europeanaObjectId is old and has a newId.
|
String |
resolveId(String collectionId,
String recordId)
Uses the provided collectionId and recordId to create an EuropeanaId and checks if that id is old and has a newId.
|
<T extends IdBean> |
search(Class<T> beanInterface,
Query query)
Perform a calculateTag in SOLR based on the given query and return the results
in the format of the given class.
|
<T extends IdBean> |
search(Class<T> beanInterface,
Query query,
boolean debug)
Perform a calculateTag in SOLR based on the given query and return the results
in the format of the given class.
|
Map<String,Integer> |
seeAlso(List<String> queries)
Returns a list of "see also" suggestions.
|
List<Term> |
suggestions(String query,
int pageSize)
Deprecated.
as of September 2018 (not working properly and very little usage)
|
List<Term> |
suggestions(String query,
int pageSize,
String field)
returns a list of calculateTag suggestions and frequencies
|
FullBean fetchFullBean(String europeanaObjectId) throws EuropeanaException
europeanaObjectId - The unique europeana idEuropeanaExceptionFullBean processFullBean(FullBean fullBean, String europeanaObjectId, boolean similarItems)
fullBean - The FullBean to be processed (injectWebMetaInfoBatch etc.)europeanaObjectId - The unique europeana idsimilarItems - whether to retrieve similar itemsEuropeanaExceptionFullBean findById(String collectionId, String recordId, boolean similarItems) throws EuropeanaException
collectionId - id of the collection to which this record belongsrecordId - similarItems - whether to retrieve similar itemsEuropeanaExceptionFullBean findById(String europeanaObjectId, boolean similarItems) throws EuropeanaException
europeanaObjectId - The unique europeana idsimilarItems - Whether to retrieve similar itemsEuropeanaExceptionFullBean resolve(String europeanaObjectId, boolean similarItems) throws SolrTypeException
europeanaObjectId - The unique europeana idsimilarItems - Whether to retrieve similar itemsSolrTypeExceptionFullBean resolve(String collectionId, String recordId, boolean similarItems) throws SolrTypeException
collectionId - id of the collection to which this record belongsrecordId - similarItems - Whether to retrieve similar itemsSolrTypeExceptionString resolveId(String europeanaObjectId) throws BadDataException
europeanaObjectId - the old record idBadDataException - if a circular id reference is foundString resolveId(String collectionId, String recordId) throws BadDataException
collectionId - the collection IdrecordId - the record IdBadDataException - if a circular id reference is found<T extends IdBean> ResultSet<T> search(Class<T> beanInterface, Query query, boolean debug) throws EuropeanaException
beanInterface - The required bean type, should be ApiBean or BriefBeanquery - Model class containing the calculateTag specification.debug - includes the string representing the Solrquery in the ResultSetEuropeanaException<T extends IdBean> ResultSet<T> search(Class<T> beanInterface, Query query) throws EuropeanaException
beanInterface - The required bean type, should be ApiBean or BriefBeanquery - Model class containing the calculateTag specification.EuropeanaException;EuropeanaExceptionList<org.apache.solr.client.solrj.response.FacetField.Count> createCollections(String facetFieldName, String queryString, String... refinements) throws EuropeanaException
facetFieldName - The SolrFacetType field to create the collection forqueryString - The Query to use for creating the collectionrefinements - Optional refinementsEuropeanaException;EuropeanaException@Deprecated List<Term> suggestions(String query, int pageSize) throws EuropeanaException
query - The calculateTag term to find suggestions forpageSize - Amount of requested suggestionsEuropeanaException;EuropeanaExceptionList<Term> suggestions(String query, int pageSize, String field) throws EuropeanaException
query - The calculateTag term to find suggestions forpageSize - Amount of requested suggestionsEuropeanaException;EuropeanaException@Deprecated List<BriefBean> findMoreLikeThis(String europeanaObjectId) throws EuropeanaException
europeanaObjectId - EuropeanaException;EuropeanaExceptionMap<String,Integer> seeAlso(List<String> queries)
queries - Map of field names, and corresponding field values.@Deprecated List<BriefBean> findMoreLikeThis(String europeanaObjectId, int count) throws EuropeanaException
europeanaObjectId - count - EuropeanaException;EuropeanaExceptionDate getLastSolrUpdate() throws EuropeanaException
EuropeanaException;IOExceptionEuropeanaExceptionCopyright © 2018 Europeana Foundation. All rights reserved.