Hybrid Search — API Configuration

Choose how many results Hybrid Search loads at a time, and which articles it can return.

useApi takes the request body that Hybrid Search sends to the Hybrid Search API. The query comes from the reader, and the other fields control what comes back.

Number of results

rows sets how many search results each request returns. The default is 10. When the reader scrolls to the end of the list, the next request loads the next rows results.

client.ui.hybridSearch.useApi({
  rows: 20,
});

Filter the articles

fq restricts the search results, and the articles the answer can cite. It takes the same filter syntax as every other Miso endpoint.

client.ui.hybridSearch.useApi({
  fq: 'categories:"Markets"',
});

A reader's facet choices apply inside your filter, and the facet counts follow it. See Filtering (fq).

Filter values are matched exactly. Check yours against the rules for case and quoting.