Interface ManagedResourceService
- All Known Implementing Classes:
SolrManagedResourceServiceImpl
public interface ManagedResourceService
This service is responsible for managing resources like synonyms and stopwords.
- Author:
- Nick Crum ncrum
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddSynonyms(String language, String term, List<String> synonyms) Add synonyms for the given term.booleanaddSynonyms(String language, List<String> synonyms) Adds synonyms for each of the given terms to each other.booleanaddSynonymsDefault(String term, List<String> synonyms) booleanaddSynonymsDefault(List<String> synonyms) booleandeleteSynonymsByTerm(String language, String term) Delete the synonyms for the given term.booleangetSynonyms(String language) Reloads the solr collections for the two catalog cores.booleanreplaceSynonyms(String language, String term, List<String> synonyms) Replace the synonyms for the given term with a new set of synonyms.booleanreplaceSynonymsDefault(String term, List<String> synonyms)
-
Method Details
-
getSynonyms
- Parameters:
language- the language- Returns:
- a Map of terms and their synonyms
-
getSynonymsDefault
-
addSynonyms
Add synonyms for the given term.- Parameters:
language-term-synonyms-- Returns:
- whether the request was successful
-
addSynonyms
Adds synonyms for each of the given terms to each other.- Parameters:
language-synonyms-- Returns:
- whether the request was successful
-
addSynonymsDefault
-
addSynonymsDefault
-
replaceSynonyms
Replace the synonyms for the given term with a new set of synonyms.- Parameters:
language-term-synonyms-- Returns:
- whether the request was successful
-
replaceSynonymsDefault
-
deleteSynonymsByTerm
Delete the synonyms for the given term.- Parameters:
language-term-- Returns:
- whether the request was successful
-
deleteSynonymsByTermDefault
-
reloadCollections
Long reloadCollections()Reloads the solr collections for the two catalog cores.- Returns:
- whether the request was successful
-