Site Search Engine not supporting autocompleteSuggestions

Hi All,

I have code implemented with react Elasticsearch ui component "SearchBox" to have autocompleteSuggestions.
With documentation seems this should work for all engine types. But I am stuck on achieving this feature, can anyone help on this !!

Config :
export const searchEngineConfig = {
apiConnector: searchEngineConnector,
autocompleteQuery: {
suggestions: {
types: {
documents: {
fields: ['title']
}
},
size: 4
}
}
}
};

should i try using beforeSearchCall to achieve this feature @JasonStoltz any thoughts could you help me on this ?

Hey @sarrame. Not all features are supported by Site Search in Search UI. The features are listed here: https://github.com/elastic/search-ui/tree/master/packages/search-ui-site-search-connector#search-ui-site-search-connector.

While autocomplete "autocompleteSuggestions" won't work, "autocompleteResults" will. See https://github.com/elastic/search-ui/blob/master/ADVANCED.md#properties.

There is no way to get autocompleteSuggestions to work with Site Search because query suggestions are not supported in the Site Search API.

Does that make sense?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.