Configuration
Search Schedule Task
Kooboo full text search indexing service comes as a Kooboo schedule task, you need to enable this schedule task in order to index content. Before this, you also need to make sure that the Schedule Monitor as described in the Schedule Task document is enabled as well. Schedule Monitor is enabled by default. You can find it under Root --> System --> Schedule Task.
Text Schema fields
For customized fields to be included in the fulltext index database, you need to make sure the column "Search Index" is checked. Those system fields like "Title" will be indexed by default. For more information, refer to the Text Scheme document "Column definition" section.
Search Folder and detail URL
Folder is Kooboo’s unique concept to store content. You need to define which folder to search from and what detail URL format those content will use. Kooboo index only stores the content detail and does not store URL used, one content may be used in several different URLs and you need define the detail URL to use.
Go to Application --> SiteManager --> Search setting
Front site search
After Kooboo search index is configured, you can use Kooboo API to query index database from front end site. Below are two API methods
public SearchedContent[] Search(string key, int pageIndex, int pageSize, out int totalCount); public SearchedContent[] Search(string key, string category, bool searchBaseApps, int pageIndex, int pageSize, out int totalCount);
There is a Kooboo search module that contains a search box and a search result list page. Below is an example of front end site implementation.
