class SearchAbstract

An abstract class for searching in Elasticsearch having an abstract search()

Properties

protected string|null $client
protected string|null $searchColumn

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)

Abstract function to be implement for search

Details

at line 17
__construct()

at line 28
void setIndex(string $index)

Set Index to Use in Elasticsearch.

Parameters

string $index

Return Value

void

at line 39
void setType(string $type)

Set Type to use in Elasticsearch

Parameters

string $type

Return Value

void

at line 50
void setSearchColumn(string $value)

Set Search Column to use for search in Elasticsearch

Parameters

string $value

Return Value

void

at line 61
protected void extractResult($query)

Function to extract Search Result From ElasticSearch

Parameters

$query

Return Value

void

at line 81
protected void validate(string $query)

Function to validate Search

Parameters

string $query

Return Value

void

Abstract function to be implement for search

Parameters

string $query

Return Value

search result