Sunnysideup\SearchSimpleSmart\Core\SearchEngineCoreSearchMachine
Synopsis
class SearchEngineCoreSearchMachine
{
- // members
- protected array $filterProviders = ;
- protected string $sortProvider = SearchEngineSortByRelevance::class;
- protected $sortProviderValues = NULL;
- protected array $debugArray = ;
- protected bool $debug = false;
- protected bool $bypassCaching = false;
- protected integer $startTimeForRun = 0;
- protected integer $endTimeForRun = 0;
- protected integer $startTimeForCustomFilter = 0;
- protected integer $endTimeForCustomFilter = 0;
- protected integer $startTimeForCustomSort = 0;
- protected integer $endTimeForCustomSort = 0;
- protected bool $filterExecutedRAW = false;
- protected bool $filterExecutedSQL = false;
- protected bool $filterExecutedCustom = false;
- protected SearchEngineSearchRecord $searchRecord = NULL;
- protected string $searchProviderName = '';
- protected $searchProvider = '';
- protected array $listOfIDsAsArray = ;
- protected array $filterObjects = ;
- protected array $listOfIDsSQLAsArray = ;
- protected bool $hasCustomSort = false;
- protected array $nonCustomSort = ;
- protected string $nameForSortProvider = '';
- protected $sortProviderObject = NULL;
- protected array $sortArray = ;
- protected array $listOfIDsCustomAsArray = ;
- protected string $filterStringForDebug = '';
- private static string $class_name_for_search_provision = SearchEngineProviderMYSQLFullText::class;
- // methods
- public $this addFilter()
- public $this setSorter()
- public void setDebug()
- public void getDebug()
- public DataList run()
- public void ConvertDataListToOriginalObjects()
- public string getDebugString()
- protected void runGetGetVars()
- protected void runInitVars()
- protected void runGetSearchRecord()
- protected void runCreateFilters()
- protected void runGetPreviouslySavedData()
- protected void runFilterUsingSQL()
- protected void runSortUsingSQL()
- protected void runFilterUsingCustom()
- protected void runSortUsingCustom()
- protected void runDebugPrep1()
- protected void runDebugPrep2()
- protected void runDebugOutput()
- private void fancyPrintIDList()
- private void fancyPrintR()
Hierarchy
Uses
- SilverStripe\Core\Extensible
- SilverStripe\Core\Injector\Injectable
- SilverStripe\Core\Config\Configurable
Members
private
- $class_name_for_search_provision
—
string
class used to provide the raw results raw results are the SearchEngineDataObject matches for a particular keyword phrase, without any filters or sort.
protected
- $bypassCaching — Sunnysideup\SearchSimpleSmart\Core\bool
- $debug — Sunnysideup\SearchSimpleSmart\Core\bool
- $debugArray — array
- $endTimeForCustomFilter — float
- $endTimeForCustomSort — float
- $endTimeForRun — float
- $filterExecutedCustom — Sunnysideup\SearchSimpleSmart\Core\bool
- $filterExecutedRAW — Sunnysideup\SearchSimpleSmart\Core\bool
- $filterExecutedSQL — Sunnysideup\SearchSimpleSmart\Core\bool
- $filterObjects — array
- $filterProviders
—
array
ClassNameForFilter => ValuesToFilterFor... - $filterStringForDebug — string
- $hasCustomSort — Sunnysideup\SearchSimpleSmart\Core\bool
- $listOfIDsAsArray — array
- $listOfIDsCustomAsArray — array
- $listOfIDsSQLAsArray — array
- $nameForSortProvider — string
- $nonCustomSort — array
- $searchProvider —
- $searchProviderName — string
- $searchRecord — Sunnysideup\SearchSimpleSmart\Model\SearchEngineSearchRecord
- $sortArray — array
- $sortProvider — string
- $sortProviderObject — null
- $sortProviderValues — mixed
- $startTimeForCustomFilter — float
- $startTimeForCustomSort — float
- $startTimeForRun — float
Methods
private
protected
- runCreateFilters()
- runDebugOutput()
- runDebugPrep1()
- runDebugPrep2()
- runFilterUsingCustom()
- runFilterUsingSQL()
- runGetGetVars()
- runGetPreviouslySavedData()
- runGetSearchRecord()
- runInitVars()
- runSortUsingCustom()
- runSortUsingSQL()
public
- ConvertDataListToOriginalObjects()
- addFilter()
- getDebug()
- getDebugString() — returns HTML for Debug
- run() — this function runs the Core Search Machine
- setDebug()
- setSorter()