\FAA\Obj\SearchFilterLike

Summary

Methods
Properties
Constants
__construct()
ToSqlQuery()
ToQuery()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(string|array  $field,string|array  $value,boolean  $is_or = false,boolean  $empty = false)

Filter constructor.

Create an equality search filter where field name must be the same as input

Parameters

string|array $field

Name of the search field

string|array $value

The search value

boolean $is_or

Merge with other filters with or

boolean $empty

Allow empty value

ToSqlQuery()

ToSqlQuery(): \FAA\Obj\Search\SqlTerm|null

To query term

Returns

\FAA\Obj\Search\SqlTerm|null

ToQuery()

ToQuery(): string

Create query Convert to solr search query like name:test

Returns

string —

The search query