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

# Get Searchability Scores

> Get stored searchability scores for tags in a dataset context.

## Query Parameters

| Parameter            | Type           | Required | Description                                    |
|---------------------|----------------|----------|------------------------------------------------|
| `data_connector_name`| `str`          | Yes      | Name of the data connector/dataset             |
| `dataslice_id`      | `str`          | No       | Optional dataslice ID for filtered scores      |
| `tag_names`         | `List[str]`    | No       | Optional list of specific tag names            |

## Response

Returns a simple dictionary mapping tag names to their searchability scores:

```json
{
  "Invoice Number": 0.85,
  "Date": 0.92,
  "Vendor": 0.78
}
```

Frontend can merge this with tag definitions client-side for optimal performance.



## OpenAPI

````yaml /deasy-openapi-stainless.yml get /tags/searchability_scores
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: /rest/unstructured
security: []
paths:
  /tags/searchability_scores:
    get:
      tags:
        - Tags
      summary: Get Searchability Scores
      description: >-
        Get stored searchability scores for tags in a dataset context.


        ## Query Parameters


        | Parameter            | Type           | Required |
        Description                                    |

        |---------------------|----------------|----------|------------------------------------------------|

        | `data_connector_name`| `str`          | Yes      | Name of the data
        connector/dataset             |

        | `dataslice_id`      | `str`          | No       | Optional dataslice
        ID for filtered scores      |

        | `tag_names`         | `List[str]`    | No       | Optional list of
        specific tag names            |


        ## Response


        Returns a simple dictionary mapping tag names to their searchability
        scores:


        ```json

        {
          "Invoice Number": 0.85,
          "Date": 0.92,
          "Vendor": 0.78
        }

        ```


        Frontend can merge this with tag definitions client-side for optimal
        performance.
      operationId: get_searchability_scores_tags_searchability_scores_get
      parameters:
        - name: data_connector_name
          in: query
          required: true
          schema:
            type: string
            title: Data Connector Name
        - name: dataslice_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Dataslice Id
        - name: tag_names
          in: query
          required: false
          schema:
            items:
              type: string
            type: array
            title: Tag Names
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: number
                title: >-
                  Response Get Searchability Scores Tags Searchability Scores
                  Get
        '403':
          description: Missing token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '500':
          description: >-
            Internal Server Error. An unexpected error occurred while processing
            the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
      security:
        - BasicAuth: []
        - BearerAuth: []
          UserIdAuth: []
      x-codeSamples:
        - lang: Python
          source: |-
            import os
            from unstructured import UnstructuredClient

            client = UnstructuredClient(
                username=os.environ.get("UNSTRUCTURED_USERNAME"),  # This is the default and can be omitted
                password=os.environ.get("UNSTRUCTURED_PASSWORD"),  # This is the default and can be omitted
            )
            response = client.tags.get_searchability_scores(
                data_connector_name="data_connector_name",
            )
            print(response)
        - lang: JavaScript
          source: |-
            import UnstructuredClient from 'unstructured-sdk';

            const client = new UnstructuredClient({
              authMethod: 'My Auth Method',
              username: process.env['UNSTRUCTURED_USERNAME'], // This is the default and can be omitted
              password: process.env['UNSTRUCTURED_PASSWORD'], // This is the default and can be omitted
            });

            const response = await client.tags.getSearchabilityScores({
              data_connector_name: 'data_connector_name',
            });

            console.log(response);
components:
  schemas:
    HTTPError:
      properties:
        detail:
          type: string
          title: Detail
      type: object
      required:
        - detail
      title: HTTPError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
    BearerAuth:
      type: http
      scheme: bearer
    UserIdAuth:
      type: apiKey
      in: header
      name: X-User-ID

````