Class SolrManagedResourceServiceImpl
java.lang.Object
com.broadleafcommerce.search.resource.service.SolrManagedResourceServiceImpl
- All Implemented Interfaces:
ManagedResourceService
@Service("blSolrManagedResourceService")
public class SolrManagedResourceServiceImpl
extends Object
implements ManagedResourceService
- Author:
- Nick Crum ncrum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected com.broadleafcommerce.process.manager.ProcessRegistrationManagerprotected org.broadleafcommerce.core.search.service.solr.SolrConfigurationprotected SolrRestManagerAPIService -
Constructor Summary
Constructors -
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) protected booleanisSuccess(RestManagerResponse response) 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) stripWhitespace(List<String> synonyms)
-
Field Details
-
DEFAULT_LANGUAGE
- See Also:
-
solrRestManagerAPIService
-
solrConfiguration
@Autowired(required=false) @Qualifier("blCatalogSolrConfiguration") protected org.broadleafcommerce.core.search.service.solr.SolrConfiguration solrConfiguration -
processRegistrationManager
@Autowired protected com.broadleafcommerce.process.manager.ProcessRegistrationManager processRegistrationManager
-
-
Constructor Details
-
SolrManagedResourceServiceImpl
public SolrManagedResourceServiceImpl()
-
-
Method Details
-
getSynonyms
- Specified by:
getSynonymsin interfaceManagedResourceService- Parameters:
language- the language- Returns:
- a Map of terms and their synonyms
-
getSynonymsDefault
- Specified by:
getSynonymsDefaultin interfaceManagedResourceService
-
addSynonyms
Description copied from interface:ManagedResourceServiceAdd synonyms for the given term.- Specified by:
addSynonymsin interfaceManagedResourceService- Returns:
- whether the request was successful
-
addSynonyms
Description copied from interface:ManagedResourceServiceAdds synonyms for each of the given terms to each other.- Specified by:
addSynonymsin interfaceManagedResourceService- Returns:
- whether the request was successful
-
addSynonymsDefault
- Specified by:
addSynonymsDefaultin interfaceManagedResourceService
-
addSynonymsDefault
- Specified by:
addSynonymsDefaultin interfaceManagedResourceService
-
replaceSynonyms
Description copied from interface:ManagedResourceServiceReplace the synonyms for the given term with a new set of synonyms.- Specified by:
replaceSynonymsin interfaceManagedResourceService- Returns:
- whether the request was successful
-
replaceSynonymsDefault
- Specified by:
replaceSynonymsDefaultin interfaceManagedResourceService
-
deleteSynonymsByTerm
Description copied from interface:ManagedResourceServiceDelete the synonyms for the given term.- Specified by:
deleteSynonymsByTermin interfaceManagedResourceService- Returns:
- whether the request was successful
-
deleteSynonymsByTermDefault
- Specified by:
deleteSynonymsByTermDefaultin interfaceManagedResourceService
-
reloadCollections
Description copied from interface:ManagedResourceServiceReloads the solr collections for the two catalog cores.- Specified by:
reloadCollectionsin interfaceManagedResourceService- Returns:
- whether the request was successful
-
getReloadProcessParams
-
isSuccess
-
stripWhitespace
-