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
index | string |
<a href="/docs/main/references/Elasticsearch/Metadata/Document/DocumentMetadata">ApiPlatform\Elasticsearch\Metadata\Document\DocumentMetadata</a>
Gets the document index.
public getIndex(): string
string
Gets a new instance with the given type.
public withType(string $type): ApiPlatform\Elasticsearch\Metadata\Document\DocumentMetadata
type | string |
<a href="/docs/main/references/Elasticsearch/Metadata/Document/DocumentMetadata">ApiPlatform\Elasticsearch\Metadata\Document\DocumentMetadata</a>
Gets the document type.
public getType(): string
string
Made with love by
Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.
Learn more