Forum

Thread tagged as: Question, Problem

seach_key only returns values that exist?

I'm using a search box to filter blog posts. I trying to display the entered search term on the search results page.

<perch:search id="search_key" />

This only seems to return anything that already exists on the site. If I enter a word that does not exist on the site, nothing is returned.

Additionally, it will output the search term as many times as it appears on the site. I can fix that with 'count' => 1. Is this how <perch:search id="search_key" /> is designed to work? Are there other options? Perhaps a plain PHP function to decode the query string to be readable?

Nicholas Nelson

Nicholas Nelson 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you give me more context? Are you searching or filtering? Which page functions are you using? Which template does this code appear in?