25 Jul 2011, 14:32
Generic-user-small

Jason Neel (5 posts)

I’m having trouble getting my search to return any results. No matter what I input into the search box, and no matter from what page I am searching from, I still get taken to the generic error page with the message:

Search Results:

Your search did not return any results.

Return to Previous Page

I checked to make sure that all of my channel fields are marked as searchable, and when I do search I am including words or phrases that actually appear in either the article’s text or title.

Does anyone have any recommendations on what I can check to get this to work?

25 Jul 2011, 15:37
Generic-user-small

Jason Neel (5 posts)

I solved my own problem, but I feel this should be pointed out. When I was testing my search box, I was searching for text that I knew was contained within my Top and Featured articles. However, it seems as though by default the EE simple search only looks through content marked with the status of open. I added a parameter to include not only open, but the featured statuses, and that seems to have solved the problem.

25 Oct 2011, 22:04
Generic-user-small

Al Dente (2 posts)

Agreed, this should be noted. I just wasted a lot of time solving this. frustrating ~

27 Oct 2011, 03:08
Generic-user-small

Jeanne Pickering (1 post)

Wow. Thanks for this, it saved me a lot of frustration. The syntax is:

{exp:search:simple_form 
channel="news_articles" 
search_in="everywhere" 
result_page="site/search" 
status="open|Top Story|closed|Featured Top Story" }
<input type="text" name="keywords" value="" 
id="search" size="17" />
<p><input type="submit" value="Go"></p>
{/exp:search:simple_form}
15 Feb 2013, 05:47
Generic-user-small

Bhumi B.Gothi (1 post)

Great. Thanks for solution.

  You must be logged in to comment