Elasticsearch Content Search

Execute raw search query (POST)

Changed on

Executes a raw JSON search query and returns the unprocessed search response in a portlet context. The request body accepts an Elasticsearch/OpenSearch JSON query. Unlike the /search endpoint, results are returned directly from the search engine without additional contentlet processing. The query is routed through the phase-aware search API, so it targets whichever engine the active OpenSearch migration phase selects (Elasticsearch in phases 0-1, OpenSearch in phases 2-3). The response preserves the legacy Elasticsearch-wire shape (took, hits.total, hits.hits[]._id/._index/._score/._source, aggregations, suggest) for backward compatibility, regardless of the engine that served the query.

post/api/es/raw

Request

Response

Search response returned successfully

object required

Search response in the legacy Elasticsearch-wire shape (took, hits, aggregations, suggest)

Changes

    • info

      api operation id searchRaw removed and replaced with rawSearchContentByESPost

    • info

      api tag Elasticsearch Content Search added

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the success response with the status