Skip to content

Field is not indexed

What the field_not_indexed error from the Perafly API means and what to do about it.

On this page
Code
field_not_indexed
HTTP status
400
Group
Data

What it means

Filtering and sorting work only on indexed fields and on id, createdAt and updatedAt.

A typical detail: Mark <field> as indexed to filter or sort by it.

What to do

Mark the field as indexed in the collection (at most 5 per collection), or filter on another field.

Read more: Data

Example response

This is the shape of the answer. title and detail are in English, or in Turkish with Accept-Language: tr; detail appears when there's more to say.

{
  "type": "https://perafly.com/docs/errors/field_not_indexed",
  "title": "Field is not indexed",
  "status": 400,
  "code": "field_not_indexed",
  "detail": "Mark <field> as indexed to filter or sort by it.",
  "instance": "/v1/…",
  "requestId": "req_…"
}

All error codes