> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Match fields

> Search a collection's schema and list matching fields, the number of documents that include each field, and each field's data type.



## OpenAPI

````yaml /api-reference/5.9/fusion-api-api-docs.json get /suggestions/collections/{collectionId}/schema/fields
openapi: 3.0.1
info:
  title: Fusion Proxy API
  description: Manage Fusion users, roles, realms, access tokens, and API keys.
  contact:
    name: Lucidworks
    url: www.lucidworks.com
    email: support@lucidworks.com
  license:
    name: License of API
    url: https://lucidworks.com/legal/developer-license-agreement/
  version: '5.9'
servers:
  - url: https://{FUSION HOST}/api
    description: Fusion
    variables:
      FUSION HOST:
        default: FUSION_HOST
        description: Your environment host.
security: []
tags:
  - name: Realm management
    description: >-
      Endpoints for creating, configuring, and managing authentication realms
      such as LDAP, SAML, OIDC, and others.
  - name: User management
    description: >-
      Endpoints for creating, updating, deleting, and retrieving Fusion users
      and their associated metadata.
  - name: Suggestions
    description: >-
      Endpoints that provide query suggestions or autocomplete results to
      improve search experiences.
  - name: API key management
    description: >-
      Endpoints for managing API keys used to authenticate Fusion services and
      integrations.
  - name: OAuth 2.0
    description: >-
      Endpoints that support OAuth 2.0 authentication, including token issuance
      and validation.
  - name: Role management
    description: >-
      Endpoints for creating and managing user roles and their associated
      permissions within Fusion.
  - name: System status
    description: >-
      Endpoints for retrieving basic system health, configuration, and
      authentication status.
externalDocs:
  description: Lucidworks Documentation
  url: https://doc.lucidworks.com/
paths:
  /suggestions/collections/{collectionId}/schema/fields:
    get:
      tags:
        - Suggestions
      summary: Match fields
      description: >-
        Search a collection's schema and list matching fields, the number of
        documents that include each field, and each field's data type.
      operationId: matchFields
      parameters:
        - name: collectionId
          description: The collection ID.
          in: path
          required: true
          schema:
            type: string
        - name: q
          in: query
          description: >-
            A full or partial field name to match in the specified collection's
            schema.
          required: true
          schema:
            type: string
          example: product
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int32
            default: 20
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: array
                items:
                  type: object
                  properties:
                    name:
                      type: string
                    docCount:
                      type: integer
                    type:
                      type: string
              example:
                - name: product_color
                  docCount: 9999
                  type: string
                - name: product_title
                  docCount: 9999
                  type: string
                - name: product_brand
                  docCount: 9999
                  type: string
                - name: product_locale
                  docCount: 9999
                  type: string
                - name: product_description
                  docCount: 9999
                  type: string

````