#community-help

Adding Attributes in 'ais-configure' Component

TLDR em1nos struggled with adding attributesToRetrieve or include_fields to an ais-configure component. Jason advised adding include_fields in additionalSearchParameters.

Powered by Struct AI
5
15mo
Solved
Join the chat
Jul 16, 2022 (15 months ago)
em1nos
Photo of md5-f33ae8b829901656b655c985c894be3a
em1nos
08:41 AM
I'm trying to add attributesToRetrieve or include_fields in a ais-configure component. Doesn't seem to work.
08:41
em1nos
08:41 AM
hitsPerPage works fine. But none of the other ones.
08:43
em1nos
08:43 AM
I didn't use all these duplicate parameters AT ONCE obviously 🙂
08:48
em1nos
08:48 AM
Looking through the instantsearch adapter source code, this doesn't seem possible as far as I can tell.
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
06:21 PM
You can add include_fields in additionalSearchParameters when instantiating the adapter. No need to use ais-configure