Skip to main content

Module search

Module search 

Source
Expand description

Scoped, grouped search: Request::Search and its reply.

Structs§

Copies
Experimental (federation): where an item is from, and its title’s copies on other servers, as a SearchHit and an Item reply have them.
SearchCounts
How many results each scope has, for the scope chips and the empty state. A count is what the catalog says, not a promise: the scope’s own search may find a few more or fewer. None where it is not known without asking again; a search that finds nothing in its scope counts the others.
SearchGroup
One kind’s results.
SearchHit
Experimental (federation): a search’s item for a client that names the feature. A title on several servers (the same TMDB, IMDb, TVDB, MusicBrainz or Plex id; an episode by its show’s, season and number) is one hit: this server’s copy when it has one, else the copy the user plays from or last played, else the first online.
SearchRequest
A search. On the wire, {"type": "search", "query": …, "scope": …}.
SearchResults
What a search found: Items, or for a client that names the experimental federation feature SearchHits.
TitleCopy
One copy of a title, on one server.

Enums§

TopResult
The top match: an item, or a person. On the wire, {"item": {...}} or {"person": {...}}. A person’s items are listed with Request::PersonItems.