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)
Retrieves the moreLikeThis List of BriefBeans
|
List<BriefBean> |
findMoreLikeThis(String europeanaObjectId,
int count)
Returns a specified number of moreLikeThis objects
|
List<Neo4jBean> |
getChildren(String nodeId)
Get the children of the node (max 10)
|
List<Neo4jBean> |
getChildren(String nodeId,
int offset)
Get the children of the node (max 10)
|
List<Neo4jBean> |
getChildren(String nodeId,
int offset,
int limit)
Get the children of the node (max 10)
|
long |
getChildrenCount(String nodeId)
Get the number of children this node has
|
List<Neo4jBean> |
getFollowingSiblings(String nodeId)
Get the node's 10 following siblings
|
List<Neo4jBean> |
getFollowingSiblings(String nodeId,
int limit)
Get the nodes following siblings
|
Neo4jBean |
getHierarchicalBean(String nodeId)
Get a node object
|
Neo4jStructBean |
getInitialStruct(String nodeId)
Get the initial structure, which contains self, the ancestors,
preceding and following siblings
|
Date |
getLastSolrUpdate() |
List<Neo4jBean> |
getPrecedingSiblings(String nodeId)
Get the nodes preceding siblings (max 10)
|
List<Neo4jBean> |
getPrecedingSiblings(String nodeId,
int limit)
Get the nodes preceeding siblings
|
boolean |
isHierarchy(String nodeId) |
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.
|
void |
setNeo4jTimeoutMillis(int neo4jTimeoutMillis)
overrule the default isHierachy() check timeout value of 4000 millis (4 sec)
|
<T extends IdBean> |
sitemap(Class<T> beanInterface,
Query query)
Create a sitemap
|
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
|
void setNeo4jTimeoutMillis(int neo4jTimeoutMillis)
FullBean findById(String collectionId, String recordId, boolean similarItems) throws MongoRuntimeException, MongoDBException, Neo4JException
collectionId - id of the collection to which this record belongsrecordId - similarItems - whether to retrieve similar itemsMongoRuntimeException, - SolrTypeExceptionMongoRuntimeExceptionMongoDBExceptionNeo4JExceptionFullBean findById(String europeanaObjectId, boolean similarItems) throws MongoRuntimeException, MongoDBException, Neo4JException
europeanaObjectId - The unique europeana idsimilarItems - Whether to retrieve similar itemsMongoRuntimeException, - MongoDBExceptionMongoRuntimeExceptionMongoDBExceptionNeo4JExceptionFullBean 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.SolrTypeException<T extends IdBean> ResultSet<T> sitemap(Class<T> beanInterface, Query query) throws SolrTypeException
beanInterface - query - 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 suggestionsSolrTypeExceptionList<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.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.SolrServerExceptionIOExceptionMap<String,Integer> queryFacetSearch(String query, String[] qf, List<String> queries)
Neo4jBean getHierarchicalBean(String nodeId) throws Neo4JException
nodeId - The ID of the recordNeo4JExceptionList<Neo4jBean> getChildren(String nodeId, int offset, int limit)
nodeId - The ID of the recordoffset - The offset of the first childlimit - The number of records to retrieveList<Neo4jBean> getChildren(String nodeId, int offset)
nodeId - The ID of the recordoffset - The offset of the first childList<Neo4jBean> getChildren(String nodeId)
nodeId - The ID of the recordList<Neo4jBean> getPrecedingSiblings(String nodeId, int limit) throws Neo4JException
nodeId - The ID of the recordlimit - How many siblings to retrieveNeo4JExceptionList<Neo4jBean> getPrecedingSiblings(String nodeId) throws Neo4JException
nodeId - The ID of the recordNeo4JExceptionList<Neo4jBean> getFollowingSiblings(String nodeId, int limit) throws Neo4JException
nodeId - The ID of the recordlimit - How many siblings to retrieveNeo4JExceptionList<Neo4jBean> getFollowingSiblings(String nodeId) throws Neo4JException
nodeId - The ID of the recordNeo4JExceptionlong getChildrenCount(String nodeId) throws Neo4JException
nodeId - Neo4JExceptionNeo4jStructBean getInitialStruct(String nodeId) throws Neo4JException
nodeId - The ID of the recordNeo4JExceptionboolean isHierarchy(String nodeId) throws Neo4JException
Neo4JExceptionCopyright © 2017 Europeana Foundation. All rights reserved.