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.

Search not returning all results

August 13, 2008 3:27am

Subscribe [1]
  • #1 / Aug 13, 2008 3:27am

    SFU Surrey

    61 posts

    The search function doesn’t appear to be returning results for one of my weblogs. Also it doesn’t seem to pick up all the entries. Is there something that I need to do to ensure each weblog and entry is selected?

    I am just using the basic search function from the user guide. I have also made sure that the weblogs I am searching are listed. What am I doing wrong?

  • #2 / Aug 13, 2008 6:08am

    Justin Hurlburt

    344 posts

    Greetings,

    Which version/build of EE are you using? Also, may we see an example of your template code that is not returning the desired results?

  • #3 / Aug 14, 2008 6:22pm

    SFU Surrey

    61 posts

    Hi There, my search bar which is on my main page has this code:

    <table width="100%" border="0">
      <tr>
        <td width="10%"> </td>
        <td width="90%">{exp:search:simple_form weblog="connect_events|connect_news" no_result_page="search/noresults"} 
          Search Connect:
            <input type="text" name="keywords" id="keywords" value="" size="18" maxlength="100" />
          
          <!--<a href="http://{path=search/index}">Advanced Search</a>-->
    <input type="submit" value="submit" class="submit" /></p>
          {/exp:search:simple_form}</td>
      </tr>
    </table>

    and the results page has this code:

    <table class='breadcrumb' border='0' cellpadding='0' cellspacing='0' width='99%'>
    <tr>
    <td><span class="defaultBold">  <a href="http://{homepage}">{site_name}</a> ›  <a href="http://{path=search/index}">{lang:search}</a> ›  {lang:search_results}</span></td>
    <td align="center"></td>
    <td align="right"></td>
    </tr>
    </table>
    
    
    <span class="defaultBold">{lang:keywords} {exp:search:keywords}</span>
    
    <span class="defaultBold">{lang:total_search_results} {exp:search:total_results}</span>
    
    
    <div class='outerBorder'>
    <div class='tablePad'>
    
    <table border="0" cellpadding="6" cellspacing="1" width="100%">
      <tr> 
        <td class="resultHead">{lang:title}</td>
        <td class="resultHead">{lang:excerpt}</td>
        <td class="resultHead">{lang:date}</td>
      </tr>
      {exp:search:search_results switch="resultRowOne|resultRowTwo"} 
      <tr> 
        <td class="{switch}" width="30%" valign="top"><b>
    <a permalink=" class=">{title}</a></b></td>
        <td class="{switch}" width="30%" valign="top">{excerpt}</td>
        <td class="{switch}" width="10%" valign="top">{entry_date format="%m/%d/%y"}</td>
      </tr>
      {/exp:search:search_results} 
    </table>
    
    
    {if paginate}
    
    <div class='paginate'>
    
    <span class='pagecount'>{page_count}</span>  {paginate}
    
    </div>
    
    {/if}
    
    </div>
    </div>

    Also I am using ExpressionEngine v 1.6.4 and build 20080626

  • #4 / Aug 14, 2008 6:35pm

    Sue Crocker

    26054 posts

    SFU Surrey, you’re missing one setting:

    EEHowTo Wiki: HowTo Set Simple Search to Include Comments

    search_in="everywhere"
  • #5 / Aug 14, 2008 8:54pm

    SFU Surrey

    61 posts

    Hi there,

    where should I put the search_in=“everywhere”? I tried putting it in the search bar and it still is outputting the same results.

    The problem seems that it is not searching one of my weblogs. But I have put both of them listed there.

  • #6 / Aug 15, 2008 3:45pm

    Sue Crocker

    26054 posts

    You add that to the your existing tag like this:

    {exp:search:simple_form weblog="connect_events|connect_news" search_in="everywhere" no_result_page="search/noresults"}

    Did you set up fields that are searchable for each weblog?

  • #7 / Aug 15, 2008 3:54pm

    SFU Surrey

    61 posts

    Yes. I have set the body tag of the weblog that isn’t returning results in the search to be searchable. However shouldn’t it automatically search the titles of the entries? It is currently searching the titles of one of the weblogs, but not the other.

  • #8 / Aug 17, 2008 12:18pm

    Robin Sowell

    13255 posts

    With no search_in parameter it should just search titles by default- and it should be searching both of those weblogs.  If you just put the one weblog it’s not searching in now for the weblog param- does it pull anything back from it?  And triple check that the shortname is correct.

  • #9 / Aug 19, 2008 3:01pm

    SFU Surrey

    61 posts

    Yes I already tried that, but it did not turn up any results at all.

  • #10 / Aug 19, 2008 8:18pm

    Sue Crocker

    26054 posts

    SFU Surrey, do you have a link we could see this at?

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

ExpressionEngine News!

#eecms, #events, #releases