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,
preceeding and following siblings
|
Date |
getLastSolrUpdate()
Return last modification time of Solr index
|
List<Neo4jBean> |
getPreceedingSiblings(String nodeId)
Get the nodes preceeding siblings (max 10)
|
List<Neo4jBean> |
getPreceedingSiblings(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)
Retrieve the new record Id for the redirect from the old record id
|
String |
resolveId(String collectionId,
String recordId)
Retrieve the new record Id for the redirect from the old collection id
and record id
|
<T extends IdBean> |
search(Class<T> beanInterface,
Query query)
Perform a search 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.
|
<T extends IdBean> |
sitemap(Class<T> beanInterface,
Query query)
Create a sitemap
|
List<Term> |
suggestions(String query,
int pageSize)
returns a list of search suggestions and frequencies
|
List<Term> |
suggestions(String query,
int pageSize,
String field)
returns a list of search suggestions and frequencies
|
FullBean findById(String collectionId, String recordId, boolean similarItems) throws MongoDBException
europeanaObjectId - - The unique europeana id * @param similarItems - Whether to
retrieve similar itemsSolrTypeExceptionMongoDBExceptionFullBean findById(String europeanaObjectId, boolean similarItems) throws MongoDBException
europeanaObjectId - - The unique europeana idsimilarItems - - Whether to retrieve similar itemsSolrTypeExceptionMongoDBExceptionFullBean 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
europeanaObjectId - - The unique europeana idsimilarItems - - Whether to retrieve similar itemsSolrTypeExceptionString resolveId(String europeanaObjectId)
europeanaObjectId - - The old record idString resolveId(String collectionId, String recordId)
collectionId - - The collection IdrecordId - - The record Id<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 search 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 Facet 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 search term to find suggestions forpageSize - Amount of requested suggestionsSolrTypeExceptionList<Term> suggestions(String query, int pageSize, String field) throws SolrTypeException
query - The search 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)
fields - 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)
nodeId - The ID of the recordList<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> getPreceedingSiblings(String nodeId, int limit)
nodeId - The ID of the recordlimit - How many siblings to retrieveList<Neo4jBean> getPreceedingSiblings(String nodeId)
nodeId - The ID of the recordList<Neo4jBean> getFollowingSiblings(String nodeId, int limit)
nodeId - The ID of the recordlimit - How many siblings to retrieveList<Neo4jBean> getFollowingSiblings(String nodeId)
nodeId - long getChildrenCount(String nodeId)
nodeId - Neo4jStructBean getInitialStruct(String nodeId)
nodeId - The ID of the recordboolean isHierarchy(String nodeId)
Copyright © 2015 Europeana Foundation. All rights reserved.