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 results

July 26, 2011 2:32pm

Subscribe [2]
  • #1 / Jul 26, 2011 2:32pm

    furryfrog

    17 posts

    hi there, i am working on a site nar-design.com

    when i perform a search in the left column, using the whole required phrase (jerry lee lewis for example), the results are returning everything that has any of the words within it such as sLEEpy La Beef, Lee Dorsey etc.

    How do i configure this to return the exact phrase that i enter?

    Thanks in adance

    Neil

  • #2 / Jul 27, 2011 4:51am

    John Henry Donovan

    12339 posts

    Neil,

    You can add the where=“all” parameter to your search form. This will return only results containing all of the specified words.

    Let us know if that helps

  • #3 / Jul 27, 2011 5:21am

    furryfrog

    17 posts

    thanks for the reply, ive tried that but i am getting no different, the code i am using is below. regards

    neil

    <div id=“main”>

    Search Results for: {super_search_keywords} ({super_search_total_results} Items)

              {exp:super_search:results paginate="bottom" allow_repeats="no" where="all" channel="albums|artists" num="15" relevance="album_artist=1+title=2+body=3" paginate_base="/search" order="title" sort="desc"}
                     
              {if "{super_search_total_results}” == “1”}
             
                  Searching…
                 
                  {exp:hs_redirect location="{page_uri}” method=“script”}
             
              {/if}
             
             
              {if super_search_no_results}Sorry no results were found, please try again.{/if}
                       
              {if "{channel}” == “Albums”}

            <div class=“album-info”>
                  {exp:imgsizer:size image="{album_image}” alt=”{title}” width=“75”}
                  <h4 [removed]>{album_artist}{title}{/album_artist}

                    {title}</h4>
                    click for more info
              </div>
             
              {/if}
             
                  {if "{channel}” == “Artists”}

              <div class=“artist-info”>
                   
                    <h4 [removed]>{title}</h4>
                      click for more info
                  </div>

                  {/if}
           
           
            {paginate}{total_pages} Pages {pagination_links}{/paginate}

            {/exp:super_search:results}
          </div> <!—// #main—>

  • #4 / Jul 27, 2011 5:35am

    John Henry Donovan

    12339 posts

    furryfrog,

    Super Search is a third-party add-on so you will need to ask the same question on their forums.

    My response was going on the assumption you were using the native search form

    Something simialr may exist though

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

ExpressionEngine News!

#eecms, #events, #releases