\UserDefinedForm_ControllerFAQExtension
Synopsis
class UserDefinedForm_ControllerFAQExtension
extends DataExtension
{
- // members
- private static array $allowed_actions = ;
- private static integer $answer_character_limit = 120;
- public static string $search_index_class = 'KnowledgebaseSearchIndex';
- public static array $classes_to_search = ;
- // methods
- public SS_HTTPResponse searchFieldAction()
- public array search()
- public SearchQuery getSearchQuery()
- public ArrayData doSearch()
- public array parseSearchResults()
Hierarchy
Extends
- DataExtension
Members
private
- $allowed_actions — array
- $answer_character_limit
—
integer
Sets the character limit for the 'answer' data
public
- $classes_to_search
—
array
Array which defines classes/models for Solr to search in - $search_index_class
—
string
Solr index used to search Knowledgebase articles
Methods
public
- doSearch() — Performs a search against the configured Solr index from a given query, start and limit
- getSearchQuery() — Construct the search query required for Solr
- parseSearchResults() — Formatting the suggestions data into an array format so that it can be encoded into JSON
- search() — Executes the search function based on the keywords entered.
- searchFieldAction() — Action for triggering the search behaviour of the search field. Formats the response based on the Solr data received.