GET searchperpackage

codesearch.debian.net

Summary: Like /search, but aggregates per package
Operation ID: searchperpackage
Auth: unknown
Description

The search results are currently sorted arbitrarily, but we intend to sort them by ranking eventually: https://github.com/Debian/dcs/blob/51338e934eb7ee18d00c5c18531c0790a83cb698/cmd/dcs-web/querymanager.go#L719

Parameters (2)

match_mode (string, query, optional, default: regexp)

Whether the query is to be interpreted as a literal (`literal`) instead of as an RE2 regular expression (`regexp`). Literal searches are faster and do not require escaping special characters, regular expression searches are more powerful.

Constraints: {'enum': ['literal', 'regexp']}

query (string, query, required)

The search query, for example `who knows...` (literal) or `who knows\.\.\.` (regular expression). See https://codesearch.debian.net/faq for more details about which keywords are supported. The regular expression flavor is RE2, see https://github.com/google/re2/blob/master/doc/syntax.txt

No probe data for this endpoint yet.