class Search extends SearchAbstract

Class to perform basic search extends from SearchElastic\SearchAbstract\SearchAbstract

Properties

protected string|null $client from SearchAbstract
protected string|null $searchColumn from SearchAbstract

Methods

__construct()

No description

void
setIndex(string $index)

Set Index to Use in Elasticsearch.

void
setType(string $type)

Set Type to use in Elasticsearch

void
setSearchColumn(string $value)

Set Search Column to use for search in Elasticsearch

void
extractResult($query)

Function to extract Search Result From ElasticSearch

void
validate(string $query)

Function to validate Search

search
search(string $query)

Search in Elasticsearch.

Details

in SearchAbstract at line 18
__construct()

in SearchAbstract at line 29
void setIndex(string $index)

Set Index to Use in Elasticsearch.

Parameters

string $index

Return Value

void

in SearchAbstract at line 40
void setType(string $type)

Set Type to use in Elasticsearch

Parameters

string $type

Return Value

void

in SearchAbstract at line 51
void setSearchColumn(string $value)

Set Search Column to use for search in Elasticsearch

Parameters

string $value

Return Value

void

in SearchAbstract at line 62
protected void extractResult($query)

Function to extract Search Result From ElasticSearch

Parameters

$query

Return Value

void

in SearchAbstract at line 82
protected void validate(string $query)

Function to validate Search

Parameters

string $query

Return Value

void

Search in Elasticsearch.

Parameters

string $query

Return Value

search result