Class AjaxSolr.AbstractSpellcheckWidget
Extends
AjaxSolr.AbstractWidget.
AbstractSpellcheckWidget
Defined in: AbstractSpellcheckWidget.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Interacts with Solr's SpellCheckComponent.
|
Field Attributes | Field Name and Description |
---|---|
<private> |
The suggestions.
|
- Fields borrowed from class AjaxSolr.AbstractWidget:
- id, manager, target
Method Attributes | Method Name and Description |
---|---|
An abstract hook for child implementations.
|
|
Uses the top suggestion for each word to return a suggested query.
|
- Methods borrowed from class AjaxSolr.AbstractWidget:
- init
Class Detail
AjaxSolr.AbstractSpellcheckWidget()
Interacts with Solr's SpellCheckComponent.
Requires String#strtr defined in ajaxsolr.support.js.
- See:
- http://wiki.apache.org/solr/SpellCheckComponent
Field Detail
<private>
{Object}
suggestions
The suggestions.
Method Detail
afterRequest()
beforeRequest()
handleSuggestions()
An abstract hook for child implementations.
Allow the child to handle the suggestions without parsing the response.
{String}
suggestion()
Uses the top suggestion for each word to return a suggested query.
- Returns:
- {String} A suggested query.