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 returns no results

January 24, 2014 9:02am

Subscribe [2]
  • #1 / Jan 24, 2014 9:02am

    akrug23

    30 posts

    I am trying to use the Simple Search module but it keeps returning no results using the system error message. Here is the code that I am using

    {exp:search:simple_form 
        channel="employment" 
        results_page="/search/test/"
        no_result_page="/search/noresults/" 
        form_class="search-form"
        search_in="everywhere"
        where="any"}

    I am searching for a word that is in the title of one of three entries in the employment channel.

    I am using this with Stash if that makes a difference.

    Thanks for the help.

  • #2 / Jan 24, 2014 9:12am

    Boyink!

    5011 posts

    Are your fields set to searchable?

  • #3 / Jan 24, 2014 10:30am

    akrug23

    30 posts

    Yes And the term that I am searching for is in the title.

    I did find this bug report https://support.ellislab.com/bugs/detail/19828. I have tried to make that change but now I get PHP Errors.

  • #4 / Jan 24, 2014 10:31am

    akrug23

    30 posts

    FYI I am using EE version 2.7.2

  • #5 / Jan 24, 2014 10:33am

    Boyink!

    5011 posts

    Sorry - just to be double sure, each field has it’s ‘searchable’ setting enabled?  That and not specifying the “search_in” parameter are most of the issues with simple search.

    Does the CP-based search on the Edit tab work?

    And how is Stash being used here? Can you remove it from the equation?

  • #6 / Jan 24, 2014 10:35am

    Boyink!

    5011 posts

    Might not be the issue, but remove the leading and trailing “/” from your result and no result parameters. You’re just telling EE a template group/template name, not really so much a path.

  • #7 / Jan 24, 2014 10:38am

    akrug23

    30 posts

    Yes I have the search radio button on the body text field in the Employment channel fields set to yes. I am also searching for a word that is in the title of one of the entries in that channel. But I am still getting no results found and it is using the system message and not the template that I am specifying in the parameters.

    And yes the search is working on the edit page

  • #8 / Jan 24, 2014 10:47am

    akrug23

    30 posts

    I have removed the leading slash and now the Template debugging says “Template group and template not found, showing 404 page”

    The templates do exist as they are in the template manager.

  • #9 / Jan 24, 2014 10:47am

    Boyink!

    5011 posts

    Trailing slash too?

  • #10 / Jan 24, 2014 10:49am

    akrug23

    30 posts

    yes I removed both

  • #11 / Jan 24, 2014 10:52am

    Boyink!

    5011 posts

    Feels like either a bug or somehow a corrupt file. Were it me I’d create a new template group, copy in the search related templates, and re-code my search tag to look at those new templates. If the issue persists I’d update to 2.7.3.  If it still persists I’d get EE tech support involved.

  • #12 / Jan 24, 2014 10:55am

    akrug23

    30 posts

    I have already tried the changing the template groups and templates so I will try to upgrade EE and see if that works.

  • #13 / Jan 24, 2014 11:17am

    akrug23

    30 posts

    I have just upgraded to EE 2.7.3 and I am still getting the error about the template not being found.

  • #14 / Jan 24, 2014 11:18am

    Boyink!

    5011 posts

    Can you link to those templates using standard path variables?

  • #15 / Jan 24, 2014 11:22am

    akrug23

    30 posts

    Yes that works

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

ExpressionEngine News!

#eecms, #events, #releases