---
title: "Search content with Lucene syntax"
method: POST
path: "/api/v1/content/_search"
tags: ["Content"]
---

# Search content with Lucene syntax

`POST /api/v1/content/_search`

Performs a comprehensive content search using [Lucene query syntax](https://dev.dotcms.com/docs/content-search-syntax). Supports filtering, sorting, pagination, and depth-based relationship loading. Returns structured JSON with search metadata and contentlet results.

> **Note:** This is a wrapper around the former `api/content/_search`. Both paths remain valid for backwards compatibility, but the `v1` path is preferred.

## Query parameters

- `rememberQuery` boolean

## Request body

- SearchForm
  - `query` string
  - `sort` string
  - `limit` integer
  - `offset` integer
  - `userId` string
  - `render` string
  - `depth` integer
  - `languageId` integer
  - `allCategoriesInfo` boolean

## Response `200`

Search completed successfully

- ResponseEntitySearchView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` SearchView
    - `resultsSize` integer
    - `queryTook` integer
    - `contentTook` integer
    - `jsonObjectView` JsonObjectView
      - `jsonObject` object
        - `asMap` object
        - `empty` boolean
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Invalid search parameters or malformed query
- `401` — Authentication required
- `403` — Insufficient permissions to access content
- `500` — Internal server error during search

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
