package sherlodoc
Search engine for OCaml documentation
Install
Dune Dependency
Authors
Maintainers
Sources
odoc-3.1.0.tbz
sha256=355b3cfff4934903cbaed8b51ce35e333e8609932d230294200a9f2d42ffa914
sha512=f78318d0a16164a9cd16ee02f611c2e00d32b772fe38e992d6db6ec94b1c00cd9c377fbfe64031b8f245e57b2f3aac9364108327e7f1693533ddcff94c476e05
doc/sherlodoc.query/Query/Make/index.html
Module Query.Make
Source
Parameters
Signature
search ~shard ~dynamic_sort {query; packages; limit}
returns (pretty_query, results)
where pretty_query
is a re-printed version of query
and results
is the list of results corresponding to the query and the various parameters.
shards
is a list of databases.results
is the union of the results of each database of the listshards
. Ifshards
is a very long list,api
might be slow to return, but in some cases you do not have a choice. Currently,index
generates only one shard, but it used to generate many to be able to handle the sheer size of the opam repository.
~dynamic_sort
changes the order ofresults
. It istrue
by default, and is only set tofalse
for debugging purposes.
query
is the query string whose shape is a list of space-separated words, followed by an optionnal: ...
type annotation that filters the results by type. The type annotation accepts_
as a wildcard :: string -> _
will return entries that take astring
as argument, but returns anything.
limit
is the maximum length ofresults
. Having a very large number might be an issue.
packages
is not function, use[]
for this argument.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page