Newbie- How do I change what text is returned in the search results

Sorry, I’m new to Algolia and cannot figure out how to do what I think should be very obvious…

I have categories being returned within the search results on our magento 2 installation. This is correct, but it returns just the path of the category in the search results. I want it to return the category meta-title.
image

I can’t find anything in the documentation which relates to which objects are displayed in the search results. Can anyone point me in the right direction?

Hi @richardmyers! Thanks for posting your question. By default, the category template in the autocomplete will render the path value.

If you need to change this, you can copy the autocomplete/category.phtml template in your theme, to change the attribute it is rendering from path to meta_title:

Let us know if that helps you out.