place.hud.index.query

The records a spec asks for, or their counts grouped by a field, from HUD's index of public records (`hud index`). A collection the index has not seen is backfilled from that moment: its first answer holds what came in by the time asked to wait, and says it is not complete. The authors a spec names come in first. A collection held by too many repositories to take in whole is taken in per author: only the authors specs name are read, and a spec naming none answers from those, partial. No auth required.

Details · query
Kindquery
Authorityindex.hud.place
Commit rev3n3lhh3tnebju
Indexed

Showing version bafyreig2t4rmuob5nxdzbbo34ybpagb4e2tfc3e5jzltes67unbxrogfye. Show the latest

Query

query · GET

Parameters

query string

cursor

string

Where the last page ended, as its answer's cursor said.

  • maxLength: 512

spec

requiredstring

The spec, as JSON: collection, and optionally by, where, since, sort, group and limit.

  • maxLength: 4096

wait

integer

How many milliseconds to wait for the spec's authors' records still coming in before answering.

  • minimum: 0
  • maximum: 5000
  • default: 800

Output

application/json

complete

requiredboolean

Whether every repository holding the collection has been read into the index.

cursor

string

Where the next page starts; absent on the last.

  • maxLength: 512

finding

boolean

Whether the relay is still listing the repositories holding the collection: repos is then how many it listed so far, not their total. Absent from an index older than it.

groups

requiredarray

The values at the spec's group path with their counts, most first: empty for a spec that does not group.

itemsref
Reference

partial

requiredboolean

Whether the answer may miss records the index holds, or would hold: partialReason says why.

Why the answer is partial: filling, a field the spec reads is still being indexed, newest first, and this answer reached as far as it has come; deadline, the answer ran out of time and holds nothing, so ask again; perAuthor, the collection is held by too many repositories to take in whole, so it is taken in per author and a spec naming no authors (by) answers from those read in so far. Absent where the answer is not partial, and from an index older than it.

  • maxLength: 64
  • knownValues: filling | deadline | perAuthor

records

requiredarray

The records, in the spec's order: empty for a spec that groups.

itemsref
Reference

repos

requiredinteger

How many repositories the relay lists with the collection: while finding, how many it listed so far.

  • minimum: 0

reposIn

requiredinteger

How many of them have been read into the index.

  • minimum: 0

version

string

A mark of what the answer read, which changes whenever that could have changed (a record of the collection written or deleted, or the follow graph a spec of follows reads): the same spec asked again with the same version answers the same. Opaque; absent from an index older than it.

  • maxLength: 128

Errors

InvalidRequest

spec is missing, wait is not a number, or the cursor is not one this spec's pages give.

InvalidSpec

The spec is not one the index takes; the message says why.

IndexUnavailable

The index could not read its store.

#group

object

One value at the spec's group path, and how many records hold it.

Properties

count

requiredinteger
  • minimum: 1

key

requiredstring

The value, as text: a number written out in decimal.

  • maxLength: 8192

#record

object

A record, as its repository holds it.

Properties

cid

requiredstring · cid

uri

requiredstring · at-uri

value

requiredunknown

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Anyone's public records of a collection a frame app reads.

  • The collections HUD's index holds, and how far each has come in.

  • The platform's generic list query: one page of the records a pub.techne.draft.query names, in its order. Every record is read through the platform's one read path, whatever the query says: no record of a hidden or suspended account is answered, nor, to a signed-in caller, another's record across a block either way (the caller blocked its author, or its author blocked the caller); a public record also leaves out anything moderation holds back (a trusted verdict or `!takedown`); a permissioned rec

  • Records of one collection from the host's index, newest first. Without `repo`, a collection the group's site declares it reads, from the group (answered to anyone) or its members (members only). With `repo`, that one account's records — the group's or a member's — of any collection, kept on demand once asked for; members only. `field` and `equals` keep only records whose field (a name, or a path like subject.uri) equals that value. With `from: "network"`, everyone's records of the collection, fr