Hello we are using algolia for research on two apps
and in one not all results appears, only 5.
<Autocomplete
getSources={({ query }: any) => [
{
sourceId: “products”,
getSearchParams(test: any) {
return {
hitsPerPage: 20
};
},
getItems() {
return getAlgoliaResults({
searchClient,
queries: [
{
indexName: “places”,
query
}
]
});
},
onSelect(params: any) {
const { item, setQuery } = params;
handle(item);
},
templates: {
item({ item, components }: any) {
return ;
}
}
}
]}
/>
one part inside Autocomplete component
const search = autocomplete({
detachedMediaQuery: "",
container: containerRef.current,
renderer: { createElement, Fragment },
render({ children }: any, root) {
render(children, root);
},
...props
});
I really dont understand what is wrong and why the results give always 5 results only.
Does anybody have any idea ?