Scroll points | Qdrant | API Reference (original) (raw)
POST
/collections/:collection_name/points/scroll
`| 1 | from qdrant_client import QdrantClient, models | | -- | ------------------------------------------------------------------------- | | 2 | | | 3 | client = QdrantClient(url="http://localhost:6333") | | 4 | | | 5 | client.scroll( | | 6 | collection_name="{collection_name}", | | 7 | scroll_filter=models.Filter( | | 8 | must=[ | | 9 | models.FieldCondition(key="color", match=models.MatchValue(value="red")), | | 10 | ] | | 11 | ), | | 12 | limit=1, | | 13 | with_payload=True, | | 14 | with_vectors=False, | | 15 | ) |
`
`| 1 | { | | -- | ---------------------------- | | 2 | "usage": { | | 3 | "cpu": 1, | | 4 | "payload_io_read": 1, | | 5 | "payload_io_write": 1, | | 6 | "payload_index_io_read": 1, | | 7 | "payload_index_io_write": 1, | | 8 | "vector_io_read": 1, | | 9 | "vector_io_write": 1 | | 10 | }, | | 11 | "time": 0.002, | | 12 | "status": "ok", | | 13 | "result": { | | 14 | "points": [ | | 15 | { | | 16 | "id": 40, | | 17 | "payload": { | | 18 | "city": "London", | | 19 | "color": "green" | | 20 | }, | | 21 | "vector": [ | | 22 | 0.875, | | 23 | 0.140625, | | 24 | 0.897599995136261 | | 25 | ], | | 26 | "shard_key": "region_1", | | 27 | "order_value": 42 | | 28 | }, | | 29 | { | | 30 | "id": 41, | | 31 | "payload": { | | 32 | "city": "Paris", | | 33 | "color": "red" | | 34 | }, | | 35 | "vector": [ | | 36 | 0.75, | | 37 | 0.640625, | | 38 | 0.8945000171661377 | | 39 | ], | | 40 | "shard_key": "region_1", | | 41 | "order_value": 42 | | 42 | } | | 43 | ], | | 44 | "next_page_offset": 42 | | 45 | } | | 46 | } |
`