SearchAbstract
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.
at line 39
void
setType(string $type)
Set Type to use in Elasticsearch
at line 50
void
setSearchColumn(string $value)
Set Search Column to use for search in Elasticsearch
at line 61
protected void
extractResult($query)
Function to extract Search Result From ElasticSearch
at line 81
protected void
validate(string $query)
Function to validate Search
at line 100
abstract search
search(string $query)
Abstract function to be implement for search