Page 1 of 1

Search not searching whole site

Posted: Sun Jul 24, 2011 8:55 am
by swarfega
I have recently enabled pretty urls on my site but have found that search now only outputs results from news and gallery.

How can I fix this?

Re: Search not searching whole site

Posted: Sun Jul 24, 2011 9:16 am
by uniqu3
Did you try reindexing your site with Search module?

Re: Search not searching whole site

Posted: Sun Jul 24, 2011 9:22 am
by swarfega
Just tried that, with the same results.

Re: Search not searching whole site

Posted: Sun Jul 24, 2011 9:28 am
by uniqu3
How does your Search result template look like?

Re: Search not searching whole site

Posted: Sun Jul 24, 2011 9:36 am
by swarfega

Code: Select all

{cms_module module="TruetypeText" style="Welcome" text=$searchresultsfor}{cms_module module="TruetypeText" style="Welcome" text=":"}<br />{cms_module module="TruetypeText" style="Welcome" text=$phrase}
{if $itemcount > 0}
<ul><span class="text">
  {foreach from=$results item=entry}
  <li>{$entry->title} - <a href="{$entry->url}">{$entry->urltxt}</a> ({$entry->weight}%)</li>
  {* 
     You can also instantiate custom behaviour on a module by module basis by looking at
     the $entry->module and $entry->modulerecord fields in $entry 
      ie: {if $entry->module == 'News'}{News action='detail' article_id=$entry->modulerecord detailpage='News'} 
  *}
  {/foreach}</span>
</ul>

<p class="postby">{$timetaken}: {$timetook}</p>
{else}
  <p><strong>{$noresultsfound}</strong></p>
{/if}

Re: Search not searching whole site

Posted: Sun Jul 24, 2011 9:43 am
by uniqu3
And it gives you page results if you disable pretty url?

Re: Search not searching whole site

Posted: Sun Jul 24, 2011 10:27 am
by swarfega
It was giving me complete results before I enabled pretty urls.