You are here

spellcheck

The spellcheck element specifies a request that spellcheck fragments should be added to the result set rows. The properties reflect Solr spellcheck parameters.
Note: Spell check only works on Alfresco Search Services with Solr 6 if you have already enabled suggestions.

Parameters

The parameter for the spellcheck element is:
Parameter Type Description
query String A facet query.

Example

For spell checking you can use a query like this:

{
  "query": {
    "query": "cm:title:alfrezco"
  },
  "spellcheck": {"query": "alfrezco"}
}
Alternatively, if you are already specifying userQuery, the following example produces the same result:
{
  "query": {
    "query": "cm:title:alfrezco",
    "userQuery": "alfrezco"
  },
  "spellcheck": {}
}
The spellcheck response includes a spellCheck context like this:
"context": {
  "spellCheck": {
    "type": "searchInsteadFor",
    "suggestions": ["alfresco"]
  }
},

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.