Axllent\FTSearch\SearchEngine
Synopsis
class SearchEngine
{
- // members
- private static array $data_objects = ;
- private static array $exclude_classes = ;
- private static integer $search_limit = 1000;
- private static integer $title_score = 2;
- private static integer $content_score = 2;
- private static integer $excerpt_length = 200;
- private static string $excerpt_ending = '...';
- private static string $excerpt_css_class = 'highlight';
- // methods
- public static ArrayList search()
- public static void attachFTSearchListener()
- private static void _attachFTSearchTrigger()
Members
private
- $content_score
—
int
Scor weight for content - $data_objects
—
array
Dataobjects to index - $excerpt_css_class
—
string
CSS class to apply to mathing words in excerpt - $excerpt_ending
—
string
End excerpts with... - $excerpt_length
—
int
Length of excerpt - $exclude_classes
—
array
Exclude classes - $search_limit
—
int
Search limit for results - $title_score
—
int
Score weight for title
Methods
private
- _attachFTSearchTrigger() — Attach a trigger to fire index updated when modified
public
- attachFTSearchListener() — FTSearchListener Attaches multiple extensions (workers or triggers) based on whether object is versioned or not.
- search() — Search function