dev.knotless.searchCode
Searches the default branches of the public repositories an appview indexes, in Zoekt's query language: words and quoted text as substrings, ignoring case unless the query holds a capital, a regular expression between slashes, and filters such as file:, lang: and case:yes. No authentication needed. Repositories taken down are left out. An appview that searches no code answers 501.
Details · query
| Kind | query |
|---|---|
| Authority | knotless.dev |
| Indexed |
Query
query · GETParameters
query stringcursor
stringHow many files the pages before held. The pages go 200 files deep at most.
maxLength: 32
limit
integerThe most files to answer with.
minimum: 1maximum: 50default: 20
What to search for.
maxLength: 1000
repo
string · at-uriOnly this repository's dev.knotless.repo record, its authority a DID or a handle.
Output
application/jsoncursor
stringAbsent on the last page, and once the pages are 200 files deep.
How many files the query found in all, of which files are the best.
minimum: 0
languages
arrayThe languages of the files found, counting those its lang: filters leave out, most files first: of the first 1000 files at most. The first page alone lists them.
How many matches the query found in all.
minimum: 0
#chunk
objectLines of a file holding matches, with a line on either side.
Properties
The lines, each after the first following a newline, with no newline at the end.
highlights
stringWhat its highlighting paints over the content, encoded as dev.knotless.getFile's ranges are, the lines read alone. Absent for a language with no grammar.
The first line's number, from 1.
minimum: 1
#fileView
objectA file the query found, with the lines around what it found there.
Properties
Runs of lines holding matches, in order. Empty when only the path matched.
commit
stringThe commit of the default branch that was indexed, whose lines these are: a page of the file links there, as the branch may have moved since.
maxLength: 64
language
stringWhat it is written in, as Zoekt names it from its extension or contents.
maxLength: 100
The file's path in the repository's default branch.
maxLength: 4096
#languageCount
objectA language files were found in, and how many.
#range
objectA match, or the part of one on one line.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
dev.knotless.listRepos
queryPublic repositories an appview has indexed, newest first.
-
Accounts owning public repositories an appview has indexed, found by handle.