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 |
findById(String europeanaObjectId,
boolean similarItems)
Retrieve a record by id.
|
FullBean |
findById(String collectionId,
String recordId,
boolean similarItems)
Retrieve a record by splitted collectionId and recordId
|
List<BriefBean> |
findMoreLikeThis(String europeanaObjectId)
Deprecated.
|
List<BriefBean> |
findMoreLikeThis(String europeanaObjectId,
int count)
Deprecated.
|
Date |
getLastSolrUpdate() |
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)
returns a list of calculateTag suggestions and frequencies
|
List<Term> |
suggestions(String query,
int pageSize,
String field)
returns a list of calculateTag suggestions and frequencies
|
FullBean findById(String collectionId, String recordId, boolean similarItems) throws MongoRuntimeException, MongoDBException
collectionId - id of the collection to which this record belongsrecordId - similarItems - whether to retrieve similar itemsMongoRuntimeException, - SolrTypeExceptionMongoRuntimeExceptionMongoDBExceptionFullBean findById(String europeanaObjectId, boolean similarItems) throws MongoRuntimeException, MongoDBException
europeanaObjectId - The unique europeana idsimilarItems - Whether to retrieve similar itemsMongoRuntimeException, - MongoDBExceptionMongoRuntimeExceptionMongoDBExceptionFullBean 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 SolrTypeException
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 ResultSetSolrTypeException<T extends IdBean> ResultSet<T> search(Class<T> beanInterface, Query query) throws SolrTypeException
beanInterface - The required bean type, should be ApiBean or BriefBeanquery - Model class containing the calculateTag specification.SolrTypeExceptionList<org.apache.solr.client.solrj.response.FacetField.Count> createCollections(String facetFieldName, String queryString, String... refinements) throws SolrTypeException
facetFieldName - The SolrFacetType field to create the collection forqueryString - The Query to use for creating the collectionrefinements - Optional refinementsSolrTypeExceptionList<Term> suggestions(String query, int pageSize) throws SolrTypeException
query - The calculateTag term to find suggestions forpageSize - Amount of requested suggestionsSolrTypeExceptionList<Term> suggestions(String query, int pageSize, String field) throws SolrTypeException
query - The calculateTag term to find suggestions forpageSize - Amount of requested suggestionsSolrTypeException@Deprecated List<BriefBean> findMoreLikeThis(String europeanaObjectId) throws org.apache.solr.client.solrj.SolrServerException
europeanaObjectId - org.apache.solr.client.solrj.SolrServerExceptionMap<String,Integer> seeAlso(List<String> queries)
queries - Map of field names, and corresponding field values.@Deprecated List<BriefBean> findMoreLikeThis(String europeanaObjectId, int count) throws org.apache.solr.client.solrj.SolrServerException
europeanaObjectId - count - org.apache.solr.client.solrj.SolrServerExceptionDate getLastSolrUpdate() throws org.apache.solr.client.solrj.SolrServerException, IOException
org.apache.solr.client.solrj.SolrServerExceptionIOExceptionCopyright © 2018 Europeana Foundation. All rights reserved.