Guides
Tutorials
public __construct(null|string $index, string $type)
public __construct(null|string $index, string $type)
index | string | |
type | string |
Gets a new instance with the given index.
public withIndex(string $index): ApiPlatform\Elasticsearch\Metadata\Document\DocumentMetadata
public withIndex(string $index): ApiPlatform\Elasticsearch\Metadata\Document\DocumentMetadata
index | string |
ApiPlatform\Elasticsearch\Metadata\Document\DocumentMetadata
Gets the document index.
public getIndex(): string
public getIndex(): string
string
Gets a new instance with the given type.
public withType(string $type): ApiPlatform\Elasticsearch\Metadata\Document\DocumentMetadata
public withType(string $type): ApiPlatform\Elasticsearch\Metadata\Document\DocumentMetadata
type | string |
ApiPlatform\Elasticsearch\Metadata\Document\DocumentMetadata
Gets the document type.
public getType(): string
public getType(): string
string