API Searching
Set publicSearch to true to expose /!/dexter/search for client-side search interfaces. It accepts GET and POST.
const response = await fetch('/!/dexter/search', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
index: 'content',
query: 'small birds',
limit: 6,
params: {
hybrid: { embedder: 'fullText' }
}
}),
})
const { data, meta } = await response.json()The endpoint is unauthenticated. Anything in a configured index becomes publicly readable through it. Enable it only once you are satisfied the indexed fields are safe to serve to anyone — user records in particular are rarely appropriate. It is off by default.
Only indexes named in your config are reachable, the result limit is capped, and the response carries indexed documents and nothing else — no configuration, no credentials, no provider diagnostics. Provider error text is never returned, because it can name internal hosts and index structure.
Last updated