mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-09 21:08:31 +02:00
This commit both: - Fixes pre-existing mistakes in snippets, aka wrong code samples. - Adds hidden (`@hide`) statements that do not appear in the docs, but satisfy typecheckers.
13 lines
338 B
Python
13 lines
338 B
Python
from qdrant_client import QdrantClient, models # @hide
|
|
|
|
client = QdrantClient(url="http://localhost:6333") # @hide
|
|
|
|
client.create_payload_index(
|
|
collection_name="{collection_name}",
|
|
field_name="group_id",
|
|
field_schema=models.KeywordIndexParams(
|
|
type=models.KeywordIndexType.KEYWORD,
|
|
is_tenant=True,
|
|
),
|
|
)
|