Elastic · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Elasticsearch Document API

34 actions 34 updates phrasing extends openapi/elastic-document-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Elastic's API. It is a proposal applied on top of the contract, not a document Elastic publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 34 · first 16 shown; the file carries all of them

$.info
$.paths['/_bulk'].put
$.paths['/_bulk'].post
$.paths['/{index}/_bulk'].put
$.paths['/{index}/_bulk'].post
$.paths['/{index}/_create/{id}'].put
$.paths['/{index}/_create/{id}'].post
$.paths['/{index}/_doc/{id}'].get
$.paths['/{index}/_doc/{id}'].put
$.paths['/{index}/_doc/{id}'].post
$.paths['/{index}/_doc/{id}'].delete
$.paths['/{index}/_doc/{id}'].head
$.paths['/{index}/_delete_by_query'].post
$.paths['/_delete_by_query/{task_id}/_rethrottle'].post
$.paths['/{index}/_source/{id}'].get
$.paths['/{index}/_source/{id}'].head

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Elasticsearch Document API
  version: 1.0.0
extends: openapi/elastic-document-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-17'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 33
- target: $.paths['/_bulk'].put
  update:
    x-apievangelist-phrasing:
      intent: Bulk index or delete documents with PUT
      effect: write
      questions:
      - Can I send a bulk batch of index and delete actions with a PUT request?
      - Is there a PUT form of the bulk endpoint that isn't tied to one index?
      instructions:
      - text: PUT a bulk batch of index and delete actions across any indices.
      - text: Send this bulk payload with PUT and run it through pipeline {pipeline}.
        slots:
          pipeline: query.pipeline
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_bulk'].post
  update:
    x-apievangelist-phrasing:
      intent: Bulk index, update or delete many documents
      effect: write
      questions:
      - How do I load thousands of documents into Elasticsearch in one request?
      - Can a single bulk request write to several different indices at once?
      - Will a bulk request tell me which ingest pipelines ran on each document?
      instructions:
      - text: Bulk load these documents into the cluster in one request.
      - text: Run a bulk request and refresh afterwards with refresh set to {refresh}.
        slots:
          refresh: query.refresh
      - text: Bulk index these documents with routing value {routing}.
        slots:
          routing: query.routing
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_bulk'].put
  update:
    x-apievangelist-phrasing:
      intent: Bulk write to one index using PUT
      effect: write
      questions:
      - Can I PUT a bulk batch that defaults every action to one index?
      - What's the PUT variant of bulk indexing scoped to a single index?
      instructions:
      - text: PUT a bulk batch into index {index}.
        slots:
          index: path.index
      - text: Use PUT to bulk write documents to {index} through pipeline {pipeline}.
        slots:
          index: path.index
          pipeline: query.pipeline
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_bulk'].post
  update:
    x-apievangelist-phrasing:
      intent: Bulk index or delete documents in one index
      effect: write
      questions:
      - How can I bulk load documents into a single index without naming it on every line?
      - Can bulk writes to my products index go through an ingest pipeline?
      instructions:
      - text: Bulk index these documents into {index}.
        slots:
          index: path.index
      - text: Bulk write to {index} and wait for refresh with refresh set to {refresh}.
        slots:
          index: path.index
          refresh: query.refresh
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_create/{id}'].put
  update:
    x-apievangelist-phrasing:
      intent: Create a document only if its ID is new
      effect: write
      questions:
      - How do I add a document that must fail if the ID already exists?
      - Can I create a document in a data stream with a fixed ID?
      instructions:
      - text: Create document {id} in {index}, failing if it already exists.
        slots:
          id: path.id
          index: path.index
      - text: Create new document {id} in {index} through pipeline {pipeline}.
        slots:
          id: path.id
          index: path.index
          pipeline: query.pipeline
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_create/{id}'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a new document with a given ID via POST
      effect: write
      questions:
      - Is there a POST form of the create-only document endpoint?
      - Can I POST a document to _create so it never overwrites an existing one?
      instructions:
      - text: POST new document {id} to {index} using the create-only endpoint.
        slots:
          id: path.id
          index: path.index
      - text: Use POST _create to add {id} to {index} with routing {routing}.
        slots:
          id: path.id
          index: path.index
          routing: query.routing
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_doc/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Retrieve a document by its ID
      effect: read
      questions:
      - How do I fetch a single document from an index by its ID?
      - Can I fetch only certain source fields of a document?
      instructions:
      - text: Get document {id} from {index}.
        slots:
          id: path.id
          index: path.index
      - text: Fetch document {id} from {index} including only fields {source_includes}.
        slots:
          id: path.id
          index: path.index
          source_includes: query._source_includes
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_doc/{id}'].put
  update:
    x-apievangelist-phrasing:
      intent: Create or replace a document at a given ID
      effect: write
      questions:
      - How do I store a document under a specific ID, replacing any existing one?
      - Can I use optimistic concurrency with sequence numbers when overwriting a document?
      instructions:
      - text: Index this document as {id} in {index}, replacing it if it exists.
        slots:
          id: path.id
          index: path.index
      - text: Overwrite {id} in {index} only if seq_no is {if_seq_no} and primary term is {if_primary_term}.
        slots:
          id: path.id
          index: path.index
          if_seq_no: query.if_seq_no
          if_primary_term: query.if_primary_term
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_doc/{id}'].post
  update:
    x-apievangelist-phrasing:
      intent: Create or replace a document at an ID via POST
      effect: write
      questions:
      - Can I POST a document to a specific ID instead of using PUT?
      - Is POST to _doc with an ID the same as indexing with PUT?
      instructions:
      - text: POST this document to {index} as ID {id}.
        slots:
          index: path.index
          id: path.id
      - text: Use POST _doc to write {id} into {index} with op_type {op_type}.
        slots:
          index: path.index
          id: path.id
          op_type: query.op_type
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_doc/{id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a document by ID
      effect: destructive
      questions:
      - How do I remove one document from an index by its ID?
      - Can I delete a document only if it hasn't changed since I read it?
      instructions:
      - text: Delete document {id} from {index}.
        slots:
          id: path.id
          index: path.index
      - text: Delete {id} from {index} only if its seq_no is {if_seq_no}.
        slots:
          id: path.id
          index: path.index
          if_seq_no: query.if_seq_no
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_doc/{id}'].head
  update:
    x-apievangelist-phrasing:
      intent: Check whether a document exists
      effect: read
      questions:
      - Can I check if a document exists without downloading it?
      - What's the cheapest way to test for a document ID in an index?
      instructions:
      - text: Check whether document {id} exists in {index}.
        slots:
          id: path.id
          index: path.index
      - text: Tell me if {index} contains a document with ID {id}.
        slots:
          index: path.index
          id: path.id
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_delete_by_query'].post
  update:
    x-apievangelist-phrasing:
      intent: Delete every document matching a query
      effect: destructive
      questions:
      - How do I delete all documents older than a date from an index?
      - Can a delete by query keep going when it hits version conflicts?
      - Is there a way to cap how many documents a delete by query removes?
      instructions:
      - text: Delete all documents in {index} that match this query.
        slots:
          index: path.index
      - text: Delete matching docs in {index}, proceeding on conflicts set to {conflicts}.
        slots:
          index: path.index
          conflicts: query.conflicts
      - text: Delete at most {max_docs} matching documents from {index}.
        slots:
          max_docs: requestBody.max_docs
          index: path.index
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_delete_by_query/{task_id}/_rethrottle'].post
  update:
    x-apievangelist-phrasing:
      intent: Change the speed of a running delete by query
      effect: write
      questions:
      - Can I slow down a delete by query that's already running?
      - How do I speed up an in-progress delete by query task?
      instructions:
      - text: Rethrottle delete by query task {task_id} to {rps} requests per second.
        slots:
          task_id: path.task_id
          rps: query.requests_per_second
      - text: Set the delete by query task {task_id} to {rps} requests per second.
        slots:
          task_id: path.task_id
          rps: query.requests_per_second
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_source/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get only a document's source JSON
      effect: read
      questions:
      - How do I get just the _source of a document without metadata?
      - Can I fetch only part of a document's source body?
      instructions:
      - text: Return only the source of document {id} in {index}.
        slots:
          id: path.id
          index: path.index
      - text: Get the source of {id} from {index}, excluding fields {source_excludes}.
        slots:
          id: path.id
          index: path.index
          source_excludes: query._source_excludes
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_source/{id}'].head
  update:
    x-apievangelist-phrasing:
      intent: Check whether a document's source is stored
      effect: read
      questions:
      - Can I tell if a document has its _source stored without fetching it?
      - Is there a check for source availability on a single document?
      instructions:
      - text: Check whether document {id} in {index} has a stored source.
        slots:
          id: path.id
          index: path.index
      - text: Confirm the _source of {id} exists in {index}.
        slots:
          id: path.id
          index: path.index
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_doc'].post
  update:
    x-apievangelist-phrasing:
      intent: Add a document with an auto-generated ID
      effect: write
      questions:
      - How do I add a document and let Elasticsearch pick the ID?
      - Can I append a log event to a data stream without choosing an ID?
      instructions:
      - text: Add this document to {index} with an auto-generated ID.
        slots:
          index: path.index
      - text: Append this event to {index} through pipeline {pipeline}, letting the ID be generated.
        slots:
          index: path.index
          pipeline: query.pipeline
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_mget'].get
  update:
    x-apievangelist-phrasing:
      intent: Fetch many documents by ID in one request
      effect: read
      questions:
      - How do I retrieve several documents from different indices at once?
      - Can one multi-get request pull documents by ID from more than one index?
      instructions:
      - text: Get these documents from their indices in one multi-get.
      - text: Multi-get documents with IDs {ids}.
        slots:
          ids: requestBody.ids
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_mget'].post
  update:
    x-apievangelist-phrasing:
      intent: Fetch many documents by ID using POST
      effect: read
      questions:
      - Can I send a multi-get as POST when my client can't put a body on GET?
      - Is there a POST form of the cluster-wide multi-get?
      instructions:
      - text: POST a multi-get for these docs across indices.
      - text: Use POST to multi-get the documents listed in {docs}.
        slots:
          docs: requestBody.docs
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_mget'].get
  update:
    x-apievangelist-phrasing:
      intent: Fetch many documents from one index by ID
      effect: read
      questions:
      - How do I fetch a batch of IDs from my users index in one call?
      - Can I multi-get from a single index by just listing IDs?
      instructions:
      - text: Get documents {ids} from {index}.
        slots:
          ids: requestBody.ids
          index: path.index
      - text: Multi-get from {index} returning only fields {source_includes}.
        slots:
          index: path.index
          source_includes: query._source_includes
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_mget'].post
  update:
    x-apievangelist-phrasing:
      intent: Fetch many documents from one index via POST
      effect: read
      questions:
      - Is there a POST variant of multi-get scoped to one index?
      - Can I POST a list of IDs to fetch from a single index?
      instructions:
      - text: POST a multi-get of IDs {ids} against {index}.
        slots:
          ids: requestBody.ids
          index: path.index
      - text: Use POST to fetch several documents from {index}.
        slots:
          index: path.index
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_mtermvectors'].get
  update:
    x-apievangelist-phrasing:
      intent: Get term vectors for many documents
      effect: read
      questions:
      - Can I get term frequencies for several documents in one request?
      - Which term statistics can a multi term vectors call return across indices?
      instructions:
      - text: Get term vectors for documents {ids} in one call.
        slots:
          ids: query.ids
      - text: Return multi term vectors for fields {fields} with term statistics on.
        slots:
          fields: query.fields
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_mtermvectors'].post
  update:
    x-apievangelist-phrasing:
      intent: Get term vectors for many documents via POST
      effect: read
      questions:
      - Can I POST a multi term vectors request with a docs body?
      - Is there a POST form of the cluster-wide multi term vectors call?
      instructions:
      - text: POST a multi term vectors request for these docs.
      - text: Use POST to get term vectors for IDs {ids}.
        slots:
          ids: query.ids
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_mtermvectors'].get
  update:
    x-apievangelist-phrasing:
      intent: Get term vectors for many docs in one index
      effect: read
      questions:
      - How do I get term vectors for several documents in my articles index?
      - Can I include offsets and positions for many docs in one index?
      instructions:
      - text: Get term vectors for docs {ids} in {index}.
        slots:
          ids: query.ids
          index: path.index
      - text: Return multi term vectors in {index} with positions set to {positions}.
        slots:
          index: path.index
          positions: query.positions
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_mtermvectors'].post
  update:
    x-apievangelist-phrasing:
      intent: Get term vectors for many docs in one index via POST
      effect: read
      questions:
      - Is there a POST variant of multi term vectors for a single index?
      - Can I POST document IDs to get their term vectors from one index?
      instructions:
      - text: POST a multi term vectors request for {ids} in {index}.
        slots:
          ids: query.ids
          index: path.index
      - text: Use POST to get term vectors from {index} for fields {fields}.
        slots:
          index: path.index
          fields: query.fields
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_reindex'].post
  update:
    x-apievangelist-phrasing:
      intent: Copy documents from one index to another
      effect: write
      questions:
      - How do I copy all documents from an old index into a new one?
      - Can I transform documents with a script while reindexing?
      - Is there a way to limit how many documents a reindex copies?
      instructions:
      - text: Reindex everything from source {source} into destination {dest}.
        slots:
          source: requestBody.source
          dest: requestBody.dest
      - text: Reindex {source} into {dest} throttled to {rps} requests per second.
        slots:
          source: requestBody.source
          dest: requestBody.dest
          rps: query.requests_per_second
      - text: Copy at most {max_docs} documents from {source} to {dest}.
        slots:
          max_docs: requestBody.max_docs
          source: requestBody.source
          dest: requestBody.dest
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_reindex/{task_id}/_rethrottle'].post
  update:
    x-apievangelist-phrasing:
      intent: Change the speed of a running reindex
      effect: write
      questions:
      - Can I throttle a reindex that is overloading my cluster?
      - How do I remove the throttle on a reindex task in progress?
      instructions:
      - text: Rethrottle reindex task {task_id} to {rps} requests per second.
        slots:
          task_id: path.task_id
          rps: query.requests_per_second
      - text: Set running reindex {task_id} to {rps} requests per second.
        slots:
          task_id: path.task_id
          rps: query.requests_per_second
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_termvectors/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get term vectors for a stored document
      effect: read
      questions:
      - What terms and frequencies are in a specific document's text field?
      - Can I see token positions and offsets for one document?
      instructions:
      - text: Get term vectors for document {id} in {index}.
        slots:
          id: path.id
          index: path.index
      - text: Show term vectors of {id} in {index} for fields {fields}.
        slots:
          id: path.id
          index: path.index
          fields: query.fields
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_termvectors/{id}'].post
  update:
    x-apievangelist-phrasing:
      intent: Get term vectors for a stored document via POST
      effect: read
      questions:
      - Can I POST a term vectors request for one document by ID?
      - Is there a POST form for a single document's term vectors with filter settings?
      instructions:
      - text: Send a POST for the single-document term vectors of {id} stored in {index}.
        slots:
          id: path.id
          index: path.index
      - text: Use POST to get term vectors of {id} in {index} with term statistics set to {term_statistics}.
        slots:
          id: path.id
          index: path.index
          term_statistics: query.term_statistics
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_termvectors'].get
  update:
    x-apievangelist-phrasing:
      intent: Get term vectors for an ad-hoc document
      effect: read
      questions:
      - Can I see how a piece of text would be tokenized without indexing it?
      - How do I get term vectors for an artificial document I pass in the body?
      instructions:
      - text: Get term vectors in {index} for this artificial document {doc}.
        slots:
          index: path.index
          doc: requestBody.doc
      - text: Analyze artificial doc {doc} against {index} mappings and return term vectors.
        slots:
          doc: requestBody.doc
          index: path.index
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_termvectors'].post
  update:
    x-apievangelist-phrasing:
      intent: Get term vectors for an ad-hoc document via POST
      effect: read
      questions:
      - Is there a POST variant for term vectors of a document I supply inline?
      - Can I POST text with a per-field analyzer to see its term vectors?
      instructions:
      - text: POST artificial document {doc} to {index} for term vectors.
        slots:
          doc: requestBody.doc
          index: path.index
      - text: Use POST with per-field analyzer {per_field_analyzer} to get term vectors in {index}.
        slots:
          per_field_analyzer: requestBody.per_field_analyzer
          index: path.index
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_update/{id}'].post
  update:
    x-apievangelist-phrasing:
      intent: Partially update a document
      effect: write
      questions:
      - How do I change a few fields on an existing document without resending it?
      - Can I upsert a document if it doesn't exist yet?
      - Can I update a document with a script, like incrementing a counter?
      instructions:
      - text: Update document {id} in {index} with these fields {doc}.
        slots:
          id: path.id
          index: path.index
          doc: requestBody.doc
      - text: Update {id} in {index} with script {script}, retrying {retries} times on conflict.
        slots:
          id: path.id
          index: path.index
          script: requestBody.script
          retries: query.retry_on_conflict
      - text: Upsert {id} in {index} using {doc} as the document.
        slots:
          id: path.id
          index: path.index
          doc: requestBody.doc
      method: generated
      generated: '2026-11-17'
- target: $.paths['/{index}/_update_by_query'].post
  update:
    x-apievangelist-phrasing:
      intent: Update every document matching a query
      effect: write
      questions:
      - How do I apply a script to all documents that match a query?
      - Can I pick up a mapping change by updating documents in place?
      instructions:
      - text: Run update by query on {index} with script {script}.
        slots:
          index: path.index
          script: requestBody.script
      - text: Update documents in {index} matching {query} with script {script}.
        slots:
          index: path.index
          query: requestBody.query
          script: requestBody.script
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_update_by_query/{task_id}/_rethrottle'].post
  update:
    x-apievangelist-phrasing:
      intent: Change the speed of a running update by query
      effect: write
      questions:
      - Can I change the throttle of an update by query mid-run?
      - Is it possible to speed up an update by query task already running?
      instructions:
      - text: Rethrottle update by query task {task_id} to {rps} requests per second.
        slots:
          task_id: path.task_id
          rps: query.requests_per_second
      - text: Set update by query {task_id} to {rps} requests per second.
        slots:
          task_id: path.task_id
          rps: query.requests_per_second
      method: generated
      generated: '2026-11-17'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/elastic-document-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.