---
title: "Create new index"
method: POST
path: "/api/v2/indexing/create"
tags: ["IndexV2"]
---

# Create new index

`POST /api/v2/indexing/create`

This method creates a new index in Hawksearch. The new index will be empty. Other methods must be used to populate the index. The methods, IndexItems and DeleteIndexItems are used to add, update and delete items in an index. The index will not be set to be active until the Set-Current method is called, passing the name of the index. Each client engine can have multiple indexes, but only 1 current index at a time.

## Headers

- `X-HawkSearch-ApiKey` string, required

## Request body

- CreateIndexParams — Create index params
  - `Suffix` string — User defined suffix
  - `SkipRebuildPercolator` boolean — Skip Rebuild Percolator during index creation
  - `SkipRebuildAutocomplete` boolean — /// Skip Rebuild Autocomplete Popular Searches during index creation

## Response `200`

OK

- object

---

[API](https://skmtc.net/hawksearch/apis/hawksearch-elasticsearch-indexingapi.md) · [All operations](https://skmtc.net/hawksearch/apis/hawksearch-elasticsearch-indexingapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hawksearch/hawksearch-elasticsearch-indexingapi/versions/24cba7bf3468/schema)
