code: def test_only_target_is_search_with_different_scoring():
      target = random_vector()
  
      # First, search
      response = request_with_validation(
          api="/collections/{collection_name}/points/search",
          method="POST",
          path_params={"collection_name": collection_name},
          body={
              "vector": target,
              "limit": 8,
          },
      )
      assert response.ok, response.json()
  
      search_points = response.json()["result"]
  
      # Then, discover
      response = request_with_validation(
          api="/collections/{collection_name}/points/discover",
          method="POST",
          path_params={"collection_name": collection_name},
          body={
              "target": target,
              "limit": 8,
          },
      )
      assert response.ok, response.json()
  
      discover_points = response.json()["result"]
  
      assert len(discover_points) == 8
  
      # Results should be in same order, but different scores
      assert len(search_points) == len(discover_points)
      for search_point, discover_point in zip(
          search_points, discover_points
      ):
          assert search_point["id"] == discover_point["id"]
          assert search_point["score"] != discover_point["score"]
  
file_path: qdrant/openapi/tests/openapi_integration/test_discovery.py
imports: import math
  import random
  import pytest
  from .helpers.collection_setup import basic_collection_setup, drop_collection
  from .helpers.helpers import request_with_validation
label_desc: Use image node_id 6 for calling a global function with example usage: test_only_target_is_search_with_different_scoring() without return types