How can I fix predictive search not working for type=page on my website?

How can I fix predictive search not working for type=page on my website?

ENG1N3X
Shopify Partner
3 0 0

Hello guys!

 

I am the developer of the https://sinobiofficial.com/ and i am trying to add the 'predictive search'.I did it successfully for type=product, but for the type=page it doesnt work.

DOCS: https://shopify.dev/themes/navigation-search/search/predictive-search#react-tabs-5

I will provide you a part of my fetch request:

fetch(`/search/suggest?q=${searchTerm}&resources[type]=product,page&resources[options][fields]=author,body,title,variants.title&resources[options][prefix]=last&resources[limit]=10&section_id=section-predictive-search`)

Our website have some pages:
https://sinobiofficial.com/pages/about
https://sinobiofficial.com/pages/page-sustainability
https://sinobiofficial.com/pages/orthopaedics

etc...

Their titles in the admin panel:
About
Sustainability
Orthopaedics

 

I added query parameters resources[options][fields]=author,body,title,variants.title and this should work, but no

 

You can try to test our search and predictive search
Also, when i go to - https://sinobiofficial.com/search - products/pages search works, BUT for the predictive search works only the type=product

 

Can you help me?

Reply 1 (1)

ENG1N3X
Shopify Partner
3 0 0

My bad. Can the moderators move this topic to the correct location?