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 returning results.

November 13, 2012 2:54am

Subscribe [1]
  • #1 / Nov 13, 2012 2:54am

    Sanity11

    314 posts

    This question may be related to a resolved thread.

    Hi All. I have tried the solution in the above topic, but I can’t get the search results to appear. This is my code:

    <div class="nav-collapse">
               {exp:search:simple_form 
                channel="ledenadministratie" 
                search_in="everywhere" 
                form_class="navbar-search pull-right" 
                no_result_page="ledenadministratie/geen-resultaten" 
                result_page="ledenadministratie/zoekresultaten" 
                status="not closed" 
                where="all" 
                show_expired="yes" 
                show_future_entries="yes"}
                    <input type="text" name="keywords" id="keywords" value="" maxlength="100" class="search-query span2" placeholder="Zoek lid">
       {/exp:search:simple_form}
              </div><!--/.nav-collapse -->

    It only returns results from the title field.

    Let’s say I have a value in the {title} field: “Foo”. And another in a {custom_field}: “Bar”.

    There are results when I search for “Foo”, there are also results when I search for “Bar”. But not when I search for “Foo Bar”. This is what I need. What am I doing wrong?

     

  • #2 / Nov 13, 2012 9:58am

    glenndavisgroup

    436 posts

    Change the where=“all” to where=“any”. I hope that helps.

    Mike

  • #3 / Nov 15, 2012 10:49am

    Dan Decker

    7338 posts

    Hi Sanity11,

    Mike is right on this. Try setting the where= parameter to the more permissive “any” value. That will tell the search to cast a wider net and should return some results.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases