Class SearchResultResource
java.lang.Object
io.goobi.viewer.api.rest.v1.search.SearchResultResource
SearchResultResource class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRISAsFile
(String query, String sortString, String activeFacetString, int proximitySearchDistance) getTagsForPageJson
(String hitId, int numChildren) getTagsForPageJson.getTagsForPageJson
(String hitId, int numChildren, String resultGroupName)
-
Constructor Details
-
SearchResultResource
public SearchResultResource()
-
-
Method Details
-
getTagsForPageJson
@GET @Path("/hit/{id}/{numChildren}") @Produces("application/json") public SearchHitChildList getTagsForPageJson(@PathParam("id") String hitId, @PathParam("numChildren") int numChildren) throws DAOException, PresentationException, IndexUnreachableException, IOException, ViewerConfigurationException getTagsForPageJson.
- Parameters:
hitId
- aString
object.numChildren
- a int.- Returns:
- a
io.goobi.viewer.servlets.rest.search.SearchHitChildList
object. - Throws:
DAOException
- if any.PresentationException
- if any.IndexUnreachableException
- if any.IOException
- if any.ViewerConfigurationException
- if any.
-
getTagsForPageJson
@GET @Path("/hit/{id}/{numChildren}/{resultGroup}") @Produces("application/json") public SearchHitChildList getTagsForPageJson(@PathParam("id") String hitId, @PathParam("numChildren") int numChildren, @PathParam("resultGroup") String resultGroupName) throws DAOException, PresentationException, IndexUnreachableException, IOException, ViewerConfigurationException - Parameters:
hitId
- IDDOC of the main search hitnumChildren
- Number of child hits to loadresultGroupName
- Requested result group name- Returns:
SearchHitChildList
- Throws:
DAOException
PresentationException
IndexUnreachableException
IOException
ViewerConfigurationException
-
getRISAsFile
@GET @Path("/ris") @Produces("text/plain") public String getRISAsFile(@PathParam("query") String query, @PathParam("sortString") String sortString, @PathParam("activeFacetString") String activeFacetString, @PathParam("proximitySearchDistance") int proximitySearchDistance) throws PresentationException, IndexUnreachableException, DAOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException, ViewerConfigurationException - Throws:
PresentationException
IndexUnreachableException
DAOException
de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
ViewerConfigurationException
-