DOCUMENTATION
/
언어
English
Français
Deutsch
日本語
한국어
Português
시작하기
가이드
개발자
참조
릴리스 정보
자습서
상태
  1. 개요
    • Snowflake Horizon Catalog
      • Snowflake에 연결하기 위한 애플리케이션 및 도구
      • 가상 웨어하우스
      • 데이터베이스, 테이블 및 뷰
      • 데이터 타입
        • 데이터 통합
          1. Snowflake Openflow
          2. Apache Iceberg™
            1. Apache Iceberg™ 테이블
            2. Snowflake Open Catalog
        • Data engineering
          1. 데이터 로딩
          2. 동적 테이블
          3. Streams and tasks
          4. Row timestamps
            • Snowflake의 dbt 프로젝트
            • 데이터 언로딩
          5. Storage lifecycle policies
          6. 마이그레이션
          7. 쿼리
          8. 목록
          9. 협업
          10. Snowflake AI & ML
          11. Snowflake Postgres
          12. 경고 및 알림
          13. 보안
          14. 데이터 거버넌스
          15. 개인정보 보호
          16. 조직 및 계정
          17. 비즈니스 연속성 및 데이터 복구
          18. 성능 최적화
          19. 비용 및 청구

          Batch Cortex Search¶

          Snowflake logo in black (no text) Preview Feature — Private

          Support for this feature is currently not in production and is available only to selected accounts.

          The Batch Cortex Search function is a table function that allows you to submit a batch of queries to a Cortex Search Service. It is intended for offline use-cases with high throughput requirements, such as entity resolution, deduplication, or clustering tasks.

          Jobs submitted to a Cortex Search Service with the CORTEX_SEARCH_BATCH function leverage additional compute resources to provide a significantly higher level of throughput (queries per second) than the interactive (Python, REST or, SEARCH_PREVIEW) API search query surfaces.

          Syntax¶

          Use the following syntax to query a Cortex Search Service in batch mode using the CORTEX_SEARCH_BATCH table function:

          SELECT
              q.query,
              r.*
          FROM query_table AS q,
          LATERAL CORTEX_SEARCH_BATCH(
              service_name => '<database>.<schema>.<cortex_search_service>',
              query => q.query,           -- optional STRING
              filter => q.filter,         -- optional VARIANT
              limit => 10,                -- optional INT
              options => q.options        -- optional VARIANT
          ) AS r;
          
          Copy

          Parameters¶

          The CORTEX_SEARCH_BATCH function supports the following parameters:

          service_name (string, required)

          Fully-qualified name of the Cortex Search Service to query.

          query (string, optional)

          Column containing query string for searching the service.

          filter (variant, optional)

          Column containing filter objects to apply to the search results.

          limit (integer, optional)

          Maximum number of results to return per query. Default: 10.

          options (variant, optional)

          Column containing additional search options and configurations.

          참고

          At least one of query or filter must be specified.

          Usage notes¶

          • The throughput of the batch search function may vary depending on the amount of data indexed in the queried Cortex Search Service and the complexity of the search queries. Users are encouraged to run the function on a small number of queries to measure the throughput for their specific workload. In general, queries to larger services with more filter conditions see lower throughput.

          • The throughput of the batch search function (the number of search queries processed per second) is not influenced by the size of the warehouse used to query it.

          • The batch search function is not optimized for quickly processing a small number of search queries. For sub-second latency on a small number of queries, it is suggested to use the interactive (Python, REST or, SEARCH_PREVIEW) API search query surfaces.

          • A single Cortex Search Service can be queried in interactive and batch mode concurrently without any degradation to interactive query performance or throughput. Separate compute resources are used to serve interactive and batch queries.

          • There is no limit to the number of concurrent batch queries that can be run at a given time on a given service.

          Cost considerations¶

          During the Preview, the batch search function does not incur any serving cost. The only incremental cost incurred to run a batch job is for the Virtual Warehouse compute. In future releases of the product, a serving cost will be incurred per unit of time that a batch job is running.

          Regional availability¶

          During the preview, the batch search function is available in the following regions:

          • AWS US East 1 (N. Virginia)

          • AWS US West 2 (Oregon)

          Example Usage¶

          In this example, match products in a user-submitted order form to a “golden” product catalog.

          -- Create the golden product catalog with canonical product names
          CREATE OR REPLACE TABLE golden_catalog (product_name TEXT);
          INSERT INTO golden_catalog VALUES
            ('Wireless Bluetooth Headphones'),
            ('Wireless Noise-Canceling Earbuds'),
            ('USB-C Charging Cable 6ft'),
            ('Portable Power Bank 10000mAh');
          
          -- Create Cortex Search Service on the golden catalog
          CREATE CORTEX SEARCH SERVICE golden_product_service
          ON product_name
          WAREHOUSE = <warehouse_name>
          TARGET_LAG = '1 day'
          AS
          SELECT product_name FROM golden_catalog;
          
          -- Create a table of user-submitted products (may contain variations or typos)
          CREATE OR REPLACE TABLE submitted_products (product TEXT);
          INSERT INTO submitted_products VALUES
            ('bluetooth headphones wireless'),
            ('usb c cable');
          
          -- For each user-submitted product, query the service for the 5 closest golden results
          SELECT
            q.product, s.*
          FROM submitted_products AS q,
          LATERAL CORTEX_SEARCH_BATCH(
              service_name => 'golden_product_service',
              query => q.product,
              limit => 2
          ) AS s;
          
          Copy

          이 페이지가 도움이 되었습니까?

          Snowflake 방문하기
          대화에 참여하기
          Snowflake로 개발하기
          피드백 공유하기
          블로그에서 최신 게시물 읽기
          자체 인증 받기
          개인정보 보호정책사이트 이용약관쿠키 설정© 2026 Snowflake, Inc. All Rights Reserved.
          1. Syntax
          2. Parameters
          3. Usage notes
          4. Cost considerations
          5. Regional availability
          6. Example Usage
          1. Cortex Search
          2. Cortex Search Service 쿼리하기
          3. CREATE CORTEX SEARCH SERVICE