Skip to content
Luna
Esc
↑↓navigate↵open⌘Jpreview

Read an index

Reads one partition of an index through the index’s own read handler, as a live read from an app does. Without search it returns the partition’s rows. With search it returns the rows that match, each as {row, score}. An index changes through its sources alone, so there is no route that writes to one.

GET/_luna/tenants/{tenant}/indexes/{index}
Authorization
AuthorizationBearer token · headerrequired

An account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.

Scopes:data:read
Path parameters
tenantstringrequired

The tenant, by its name.

indexstringrequired

The index, by its name.

Query parameters
partitionstringrequired

The value of the index's partition field.

searchstring

Text to search the partition for.

prefixboolean

With search, true also matches words that start with the last word of the text.

limitinteger<int64>

How many rows to return. 50 when left out, 1000 at most.

min 0
Responses
200

The rows, or the matches with their scores.

Array of object
object
default

The request failed. The status says how and error.message says why.

errorErrorDetailrequired
Show properties
codestring | null

A code for programs to branch on, when the error has one.

messagestringrequired

What went wrong, in a sentence a person can read.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://luna.example.com/_luna/tenants/string/indexes/string?partition=string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
[
  {}
]

Was this page helpful?