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.

Advanced search and search results are messed up

April 11, 2011 2:56pm

Subscribe [3]
  • #1 / Apr 11, 2011 2:56pm

    Timo Häkkinen

    25 posts

    I’m having some very weird issues with advanced search.

    I have one template for search results (search/index) and one for no results (search/none). Sometimes a search returns no results using the correct search/none template, sometimes I get the default Design -> Message Pages -> User Messages template displaying EE’s “no results” message. The path is still to the search (results) template.

    And the weirdest thing is that sometimes the exact same search query can return “no results” using EE’s template and all of a sudden it’ll give me results and then no results again. Just did a search for the exact same word and got 5 no results and 2 right results using the right template.

    Not using templates as files and the template group isn’t called search (I just said that here to make things easier).

    Form
    {exp:search:advanced_form result_page="{path_search_results}/index" no_result_page="{path_search_results}/none" channel="{site_lang}_pages|{site_lang}_products|{site_lang}_news" search_in="everywhere" status="Open|Hidden"}
    {/exp:search:advanced_form}
    
    Results
    {exp:search:search_results}
    <h3><a href="http://{page_url}">{title}</a></h3>
    <p>{excerpt}<br />
    {/exp:search:search_results}

    ExpressionEngine 2.1.3 build 20110405. I’m not on drugs.

  • #2 / Apr 12, 2011 6:09am

    John Henry Donovan

    12339 posts

    Hi Timo,

    Can you give using the example form from the docs a go to see if that works for you please

  • #3 / May 23, 2011 3:23pm

    Timo Häkkinen

    25 posts

    I just tried that and the problem is still there. With testing that I’ve done tonight, the problem seems to be more specifically:

    Sometimes query that with 100% certainly should give me results ends up giving me EE’s native error template (Design > Message pages > User messages) with “Your search did not return any results.”

    If I define no_result_page and do a search with gibberish, I correctly get this no results template. But if I do a search with something I know is there, sometimes I get the correct search results in the correct template, sometimes I get the Design > Messages pages > User messages telling me there aren’t any results. I do the exact search 10 times and there’s always this error template in there few times (with url still being search result template).

  • #4 / May 23, 2011 4:11pm

    Brandon Jones

    5500 posts

    Hi Timo,

    One issue relating to this has been fixed in the 2.1.5 beta, the other is pending. Thanks for your patience while we get these fixed.

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

ExpressionEngine News!

#eecms, #events, #releases