Power Search Not Showing Relevant Results

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • verdipro
    Mini Mivite

    • Apr 2011
    • 23

    #1

    Power Search Not Showing Relevant Results

    Was wondering if someone had an answer to an issue that I am having. In the store search (using emporium plus power search) that word hat did not show our hats. It should 2 pages of results but only 1 hat, so it was less than 20 results total.

    Not a problem I did a rebuild & got it to bring up new products, etc in the search. However when I now search for "hat" it brings up over 100 results & the actual hats are all the way at the bottom. Most of the other items listed do not have hat in the title, description or even in another word such as "that". No combination of hat is present on any of those pages.

    Is there a reason for why I am not getting relevant results? I found an old post from 2 1/2 years ago (http://extranet.miva.com/forums/show...vancy-Question), but was not sure if anyone has come up with a solution since.

    Now if I do type hat into the search I get the 100 or so results initially. If I then check the "name - all of these words" box it then shows me the relevant hats. Only problem is most site users will not know to do that & can only get to that function by typing a word in the search box initially.
  • Brennan
    Super Moderator









    • Jun 2009
    • 3481

    #2
    Re: Power Search Not Showing Relevant Results

    You can "boost" the name field so the module gives more weight to name field if it contains the keywords:


    Field Boosting (MySQL stores only)
    Beginning with version 5.0580 you can implement the field boosting feature if your store uses MySQL. This lets you choose which fields are more important in the search. If the any of the search words are in those fields, the record will be sorted to the top of the search results list if the sort value is blank. If the customer chooses to sort on name, price, etc, then the boost is no longer pushed to the top. You can have more than one boosted field, as you see in the example below. They can be a regular product field or a custom product field. In the search form on the SRCH page template include the following code.

    <input type="hidden" name="psboost" value="name,code">

    http://www.emporiumplus.com/v5/powrsrch.htm
    Last edited by Brennan; 01-22-15, 05:36 PM.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment

    • verdipro
      Mini Mivite

      • Apr 2011
      • 23

      #3
      Re: Power Search Not Showing Relevant Results

      @Brennan, thank you for the fast reply. I tried that but it did not seem to work. Not sure if I did something wrong, but see a copy/paste of some of the code below from the SRCH page.

      <div id="page-header"><mvt:item name="hdft" param="header" /></div>

      <h1>Search Results</h1>

      <div class="search-again alignright">
      <form method="post" action="&mvt:global:sessionurl;Screen=SRCH">
      <input type="hidden" name="Store_Code" value="&mvte:store:code;" />
      <input type="hidden" name="psboost" value="name,code">
      <label for="Search" class="bold">Search Again:</label>
      <input type="text" name="Search" id="Search" class="textfield" value="&mvte:global:Search;" />
      <mvt:item name="buttons" param="Search" />
      <mvt:item name="powrsrch" param="fields" />
      </form>
      </div>

      <mvt:if expr="NOT ISNULL g.Search">
      <mvt:if expr="l.settings:search_product_count EQ 0">
      <span class="italic">No products matched your search criteria</span>
      <mvt:else>
      <div id="search-results"><mvt:comment><mvt:item name="search_results" /></mvt:comment>
      <mvt:item name="powrsrch" param="prod" />
      </div>
      </mvt:if>
      </mvt:if>

      Comment

      • verdipro
        Mini Mivite

        • Apr 2011
        • 23

        #4
        Re: Power Search Not Showing Relevant Results

        Actually it half worked. If I am already on the SRCH page & I type hat it does show them first, which is great. But it still does not work if say I am on the homepage & I type in the search bar. I click search & then the results that show up are still in correct at the top. Is there a way to adjust that?

        Comment

        • Mark Hood
          Mega Mivite








          • Nov 2006
          • 2560

          #5
          Re: Power Search Not Showing Relevant Results

          Originally posted by verdipro View Post
          Actually it half worked. If I am already on the SRCH page & I type hat it does show them first, which is great. But it still does not work if say I am on the homepage & I type in the search bar. I click search & then the results that show up are still in correct at the top. Is there a way to adjust that?
          You will also need to add that code to the form you have in what I assume is in your global header or navbar.
          Mark Hood
          Vermont Gear

          Comment

          • verdipro
            Mini Mivite

            • Apr 2011
            • 23

            #6
            Re: Power Search Not Showing Relevant Results

            That worked, thank you!

            Comment

            Working...
            X