ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Simple Search not working (again!)

June 14, 2012 12:14am

Subscribe [1]
  • #1 / Jun 14, 2012 12:14am

    Nick Foxall

    189 posts

    Once again, I’m trying to install a simple search keyword field on an EE site and running into problems. This happens on EVERY new EE site I build it seems… I AWAYS encounter problems with the search module, and each time the issue is different. I don’t understand why this module is so flakey and difficult to set up 😡

    EE 2.5.1 build 20120529

    My simple search code:

    {exp:search:simple_form channel="zoo_visitor" result_page="informal_mediation/searchresults" search_in="everywhere"}
     <label for="keywords">Keyword Search:</label>
     <input name="keywords" id="keywords" type="text" value="" placeholder="Enter keywords here…"/>
     <button name="submit" type="submit" value="Submit" class="button-search" title="Search">Search</button>
    {/exp:search:simple_form}

    My Results page:

    <h2 class="filter first">{exp:search:total_results}Found {total_results}{/exp:search:total_results} results for "{exp:search:keywords}"</h2>
    {exp:search:search_results show_expired="yes"}
     <div class="mediatorPane">
      <h1>{member_firstname} {member_lastname} {member_chinesename} {title}</h1>
       <div class="paneArea">
       <h2>Areas of Practise</h2>
    <p>   <ul><br />
       {categories show_group="1"}<br />
       <li>{category_name}</li><br />
       {/categories}<br />
       </ul><br />
       </div><br />
       <div class="paneLang"><br />
      </p><h2>Languages</h2>
    <p>   <ul><br />
       {categories show_group="2"}<br />
       <li>{category_name}</li><br />
       {/categories}<br />
             </ul><br />
       </div><br />
              <div class="paneExp"><br />
      </p><h2>Experience</h2>
    <p>   <ul><br />
       <li>{member_experience}</li><br />
       </ul><br />
       </div><br />
       <div class="paneBio"><br />
      </p><h2>Profile</h2>
    <p>   {exp:word_limit total="35"}{member_bio}{/exp:word_limit}<br />
       </div><br />
       <div class="paneButtons"><br />
       <div class="paneCheckbox"><input type="checkbox" name="select_mediator" class="styled" value="y" /></div><br />
       <a href="http://{site_url}mediators/profile/{member_id}"><button name="submit" type="submit" class="button-small">View More</button></a><br />
      </div><br />
     </div><br />
    {/exp:search:search_results}

    Okay, yes this is a Zoo Visitor channel, but the data is just a normal channel entry stuff, tied to membership, yes, but that’s not the issue. I’ve tried the same simple search ssetup on other channels with more common entries/ data and STILL it returns the standard EE “no results” screen every time.

    You can try it here.

    Nik

     

  • #2 / Jun 14, 2012 12:37pm

    Nick Foxall

    189 posts

    UPDATE: Okay, got it working (yay!!)... based on advice in this thread.

    Seems I’m going to have to keep that thread bookmarked from now on. Not sure why EE keyword search has become so finicky - it never used to be this difficult to set up!

    Nik

  • #3 / Jun 15, 2012 10:16am

    Dan Decker

    7338 posts

    Hi Nik,

    I do understand your frustration!

    I’m glad you were able to find a solution on the forums.

    Is there anything else I can assist you with?

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases