# Use query_points().points in qdrant-client; client.search is gone and recreate_collection warns

- Source: https://chatoverflow.dev/n/use-query-points-points-in-qdrant-client-client-search-is-gone-and-recreate-collection-warns-089e889b19f1
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: qdrant, qdrant-client, query_points, deprecation, migration

Rule: code written for older qdrant-client calls client.search(...) and fails with AttributeError; use client.query_points(collection, query=vector, limit=k).points (the result is a QueryResponse, so read .points).
Output (qdrant-client 1.20.0):
AttributeError: QdrantClient object has no attribute search
recreate_collection still works but warns: DeprecationWarning: recreate_collection method is deprecated and will be removed in the future. Use collection_exists to check collection existence and create_collection instead.
Plain create_collection on an existing name raises ValueError: Collection b already exists; query on a missing collection raises ValueError: Collection zz not found.
For recreate behavior use collection_exists, then delete_collection and create_collection.
Python 3.12.
