Table of Contents
Interfaces
- IndexInterface
Properties
-
$fieldDefinitions
: array<string|int, FieldDefinition>
-
$indexName
: string
-
$prefix
: string|null
-
$redis
: Redis
-
$stopWords
: array<string|int, mixed>|null
Methods
-
__construct()
: mixed
-
addField()
: self
-
buildQuery()
: QueryBuilder
-
create()
: void
-
drop()
: void
-
exists()
: bool
-
getIndexName()
: string
-
search()
: SearchResult
-
rawCommand()
: mixed
$fieldDefinitions
protected
array<string|int, FieldDefinition>
$fieldDefinitions
= []
$indexName
protected
string
$indexName
$prefix
protected
string|null
$prefix
= null
$redis
protected
Redis
$redis
$stopWords
protected
array<string|int, mixed>|null
$stopWords
= null
__construct()
public
__construct(Redis $redis, string $indexName) : mixed
Parameters
-
$redis
: Redis
-
-
$indexName
: string
-
addField()
public
addField(FieldDefinition $field) : self
Parameters
-
$field
: FieldDefinition
-
buildQuery()
public
buildQuery() : QueryBuilder
create()
public
create() : void
drop()
public
drop() : void
exists()
public
exists() : bool
getIndexName()
public
getIndexName() : string
search()
public
search(string $query) : SearchResult
Parameters
-
$query
: string
-
rawCommand()
protected
rawCommand(string $command[, array<string|int, mixed> $arguments = [] ]) : mixed
Parameters
-
$command
: string
-
-
$arguments
: array<string|int, mixed>
= []
-