public final class CmsSolrSpellchecker extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SPELLCHECKER_INDEX_CORE
The spellcheck core name.
|
| Modifier and Type | Method and Description |
|---|---|
static CmsSolrSpellchecker |
getInstance()
Return an instance of this class.
|
static CmsSolrSpellchecker |
getInstance(org.apache.solr.core.CoreContainer container)
Return an instance of this class.
|
void |
getSpellcheckingResult(javax.servlet.http.HttpServletResponse res,
javax.servlet.ServletRequest servletRequest,
CmsObject cms)
Performs spellchecking using Solr and returns the spellchecking results using JSON.
|
void |
parseAndAddDictionaries(CmsObject cms)
Parses and adds dictionaries to the Solr index.
|
public static final java.lang.String SPELLCHECKER_INDEX_CORE
public static CmsSolrSpellchecker getInstance()
public static CmsSolrSpellchecker getInstance(org.apache.solr.core.CoreContainer container)
container - Solr CoreContainer container object in order to create a server object.public void getSpellcheckingResult(javax.servlet.http.HttpServletResponse res, javax.servlet.ServletRequest servletRequest, CmsObject cms) throws CmsPermissionViolationException, java.io.IOException
res - The HttpServletResponse object.servletRequest - The ServletRequest object.cms - The CmsObject object.CmsPermissionViolationException - in case of the anonymous guest userjava.io.IOException - if writing the response failspublic void parseAndAddDictionaries(CmsObject cms) throws CmsRoleViolationException
cms - the OpenCms object.CmsRoleViolationException - in case the user does not have the required role ROOT_ADMIN