Get pro search to work. I must me missing something simple
{exp:pro_search:form required="keywords" result_page="customerportal/search-results"}
<div>
<input type="search" name="keywords" id="keywords" placeholder="Search messages"><button type="submit">Submit</button>
</div>
{if pro_search_keywords_missing}Please enter a keyword{/if}
{/exp:pro_search:form}Search results page
{exp:pro_search:results
query="{segment_3}"
channel="message"
limit="5"
}
<a href="http://{auto_path}">{title}</a>
{if pro_search_no_results}
No results for <strong>{pro_search_keywords}</strong>.
{/if}
{/exp:pro_search:results}I just keep getting the No results… message.
Any thoughts where to look on this?
A bit of a group effort, but the issue turned out to be that while a collection had been created and the fields in the field settings were marked as searchable, in the Pro Search settings for the collection, the fields didn’t have a search value above zero, so they weren’t being included.
It was also noted that sometimes the query parameter isn’t as useful on search results as it is for when you want to output more like the channel entry tag.
Interested in learning more solutions or want to get to know other EE users? Read more about joining the slack here! Join Our Slack!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.