Class ContentAssistResourceBuilder
java.lang.Object
io.goobi.viewer.api.rest.resourcebuilders.ContentAssistResourceBuilder
Manages contentAssist requests by returning lists of suggested values from partial input.
- Author:
- florian
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCollections
(String solrField, String inputString) getCollections.
-
Constructor Details
-
ContentAssistResourceBuilder
public ContentAssistResourceBuilder()
-
-
Method Details
-
getCollections
public List<String> getCollections(String solrField, String inputString) throws de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException, IndexUnreachableException getCollections.
- Parameters:
solrField
- aString
object.inputString
- aString
object.- Returns:
- a
List
object. - Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
- if the solrField doesn't exist in the indexIndexUnreachableException
- If an error occurred communicating with the SOLR index
-