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

# Set Continuous Indexing

> [!NOTE]
>
> **[Click for Python SDK](https://docs.nucleus.scale.com/en/latest/api/nucleus/index.html#nucleus.Dataset.set_continuous_indexing)**
>
> ```
> Dataset.set_continuous_indexing(enable: bool) -> dict
> ```

This endpoint enables or disables image level continuous indexing for a Dataset, provided that one exists.

When continuous indexing is enabled, embeddings will be automatically generated for each image appended to the dataset. These embeddings are used for Autotag and similarity search. When continuous indexing is disabled, embeddings will not be generated for newly uploaded images. Enabling continuous indexing will also automatically kick off an image indexing job to index existing images without embeddings in the Dataset.

Continuous indexing is enabled by default on all newly created Datasets as of November 30, 2021.

You will not be able to toggle continuous indexing if there is a currently running image indexing job within the last two days. To see a list of your currently running async jobs, use the [async job polling endpoint](https://api-reference.scale.com/docs/nucleus/api-reference/list-async-jobs.md).


## OpenAPI

````yaml openapi/nucleus.json POST /indexing/{dataset_id}/setContinuous
openapi: 3.1.0
info:
  title: Nucleus API
  version: '1.1'
servers:
  - url: https://api.scale.com/v1/nucleus
security:
  - sec0: []
paths:
  /indexing/{dataset_id}/setContinuous:
    post:
      summary: Set Continuous Indexing
      operationId: set-continuous-indexing
      parameters:
        - name: dataset_id
          in: path
          description: The Scale-generated ID of the Dataset.
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                enable:
                  type: boolean
                  description: Whether to enable or disable continuous indexing.
                  default: false
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    dataset_id: ds_by0a81gnf6gfy9hw6rpg
                    message: Continuous indexing is now enabled for dataset!
                    job_id: job_ffsj9afawlfkd
                    job_last_known_status: Running
                    job_type: indexingImage
                    job_creation_time: '2021-07-20T18:07:13.055Z'
              schema:
                type: object
                properties:
                  dataset_id:
                    type: string
                    example: ds_by0a81gnf6gfy9hw6rpg
                  message:
                    type: string
                    example: Continuous indexing is now enabled for dataset!
                  job_id:
                    type: string
                    example: job_ffsj9afawlfkd
                  job_last_known_status:
                    type: string
                    example: Running
                  job_type:
                    type: string
                    example: indexingImage
                  job_creation_time:
                    type: string
                    example: '2021-07-20T18:07:13.055Z'
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: http
      scheme: basic

````