protected function getSearchOptions($spellcheck)
    {
        $options = $this->config()->get('search_options');
        if ($spellcheck) {
            $options = array_merge($options, $this->config()->get('spellcheck_options'));
        }
        return $options;
    }