Documentation

SmartSearchController extends ArcheBaseController
in package

Description of SmartSearchController

Tags
author

nczirjak

Table of Contents

Properties

$config  : Config
$helper  : mixed
$model  : mixed
$ontology  : Ontology
$pdo  : PDO
$repoDb  : RepoDb
$schema  : Schema
$siteLang  : mixed
$baseUrl  : mixed
$context  : mixed
$preferredLang  : mixed
$reqFacets  : mixed
$requestHash  : mixed
$sConfig  : mixed
$searchInBinaries  : mixed
$searchPhrase  : mixed

Methods

__construct()  : mixed
autocomplete()  : Response
Search input autocomplete
dateFacets()  : Response
Fetch the date facets - deprecated
search()  : Response
The main search
changeAPILanguage()  : void
If the API needs a different response language then we have to change the session lang params to get the desired lang string translation
cacheResults()  : bool
Cache the search results
checkTmpDirs()  : mixed
getCachedData()  : string
get the existing cache
getCurrentLanguage()  : type
Get the site actual language
initialSearch()  : Response
The first load or after reset search, which provides only facets
setBasicPropertys()  : mixed
setContext()  : mixed
updateSearchHistoryCookie()  : mixed

Properties

Methods

autocomplete()

Search input autocomplete

public autocomplete(string $str) : Response
Parameters
$str : string
Return values
Response

dateFacets()

Fetch the date facets - deprecated

public dateFacets() : Response
Return values
Response

The main search

public search(array<string|int, mixed> $postParams) : Response
Parameters
$postParams : array<string|int, mixed>
Return values
Response

changeAPILanguage()

If the API needs a different response language then we have to change the session lang params to get the desired lang string translation

protected changeAPILanguage(string $lang) : void
Parameters
$lang : string

cacheResults()

Cache the search results

private cacheResults(type $result) : bool
Parameters
$result : type
Return values
bool

getCachedData()

get the existing cache

private getCachedData() : string
Return values
string

getCurrentLanguage()

Get the site actual language

private getCurrentLanguage() : type
Return values
type

initialSearch()

The first load or after reset search, which provides only facets

private initialSearch(array<string|int, mixed> $postParams) : Response
Parameters
$postParams : array<string|int, mixed>
Return values
Response

setBasicPropertys()

private setBasicPropertys(array<string|int, mixed> $postParams) : mixed
Parameters
$postParams : array<string|int, mixed>

        
On this page

Search results