class_docstr: Test case of search interface 
class_docstr_tok: ["Test","case","of","search","interface"]
docstr: target: test search with inconsistent metric type (default is IP) with that of index
  method: create connection, collection, insert and search with not consistent metric type
  expected: Raise exception
docstr_tok: ["target",":","test","search","with","inconsistent","metric","type","(","default","is","IP",")","with","that","of","index","method",":","create","connection",",","collection",",","insert","and","search","with","not","consistent","metric","type","expected",":","Raise","exception"]
code: def test_high_level_search_not_consistent_metric_type(
      self, metric_type
  ):
      """
      target: test search with inconsistent metric type (default is IP) with that of index
      method: create connection, collection, insert and search with not consistent metric type
      expected: Raise exception
      """
      client = self._connect(enable_high_level_api=True)
      collection_name = cf.gen_unique_str(prefix)
      # 1. create collection
      client_w.create_collection(client, collection_name, default_dim)
      # 2. search
      rng = np.random.default_rng(seed=19530)
      vectors_to_search = rng.random((1, 8))
      search_params = {"metric_type": metric_type}
      error = {
          ct.err_code: 1100,
          ct.err_msg: f"metric type not match: invalid parameter[expected=IP][actual={metric_type}]",
      }
      client_w.search(
          client,
          collection_name,
          vectors_to_search,
          limit=default_limit,
          search_params=search_params,
          check_task=CheckTasks.err_res,
          check_items=error,
      )
      client_w.drop_collection(client, collection_name)
  
imports: import multiprocessing
  import numbers
  import random
  import numpy
  import threading
  import pytest
  import pandas
  import decimal
  from decimal import Decimal, getcontext
  from time import sleep
  import heapq
  from base.client_base import TestcaseBase
  from utils.util_log import test_log
  from common import common_func
  from common import common_type
  from common.common_type import CaseLabel, CheckTasks
  from utils.util_pymilvus import *
  from common.constants import *
  from pymilvus.orm.types import CONSISTENCY_STRONG, CONSISTENCY_BOUNDED, CONSISTENCY_SESSION, CONSISTENCY_EVENTUALLY
  from base.high_level_api_wrapper import HighLevelApiWrapper
label_desc: Use image node_id 7 for calling the TestHighLevelApi obj's underlying member method code with example usage: obj.test_high_level_search_not_consistent_metric_type(metric_type) without return types