Fetch a document by docid

get/{index}/doc/{docid}

Path parameters

indexstring required

Index path or prebuilt index name.

docidstring required

Document id in the index.

Query parameters

parseboolean

If true, try to return parsed document contents; if false, return the raw stored document string.

Response

Document found.

apistring required
indexstring required
docidstring required

Example response

{
  "api": "v1"
}

Changes

Changed in 3 of the 3 revisions of this API.25

  • a95dfd31878114See the full diff
    • removed the required property document from the response with the 200 status

      response-required-property-removed

    • added the new optional query request parameter parse

      new-optional-request-parameter

    • added the non-success response with the status 405

      response-non-success-status-added

    • added the non-success response with the status 500

      response-non-success-status-added

    • added the required property doc to the response with the 200 status

      response-required-property-added

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog