Announcement

Collapse
No announcement yet.

Search pulling up all/non related products

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Search pulling up all/non related products

    Having a real issue with our search function not working how we want it to. If you search for "salomon skis" our search is pulling up 2000+ products which it shouldn't be! It is also including duplicates next to the original product. We need duplicates to appear in filters but there is no advantage to having them appear in search results, and it really looks messy!

    Any help with making our search pull relevant products up would be appreciated!

    http://www.sailandski.co.uk

    Thanks Ben

    Edit: Once you have searched for a product from our header, the page it takes you to also has a search box on, when this is used it appears to do nothing. As if the the search button is broken.

    #2
    Originally posted by Sail and Ski View Post
    It is also including duplicates next to the original product.
    There is a script change available to the version 12.0.2 SearchScript.pl in the Site1 installation folder which I was supplied by SellerDeck support to remove product duplicates from the search results. If you use this then make a File menu > Snapshot > Export backup first and be careful how you edit. If you need to revert the file find it in "C:\Program Files\SellerDeck 2013\Original".

    "Open SearchScript.pl in an editor. Search for "sub DisplayResults" then the line
    Code:
    my @Results = sort
    (around line 1903). Amend that line to:
    Code:
    my @TempResults = sort
    Find the line:
    Code:
    keys %mapProdRefToSortOrders;                   # get product references then sort
    Append some code, so that including that above line you have:
    Code:
    keys %mapProdRefToSortOrders;                   # get product references then sort
        my @Results;
        if ($::g_InputHash{FT} ne "GF")                 # not General Filter search?
            {
            @Results = map {(index($_, "!") eq -1) ? $_ : ()} @TempResults; # remove duplicate products from search results
            }
        else
            {
            @Results = @TempResults;                        # don't remove duplicate products from search results
            }
    What this does is to eliminate duplicate products from the list of products if a search is being done, prior to pagination etc. Duplicates are detected when a '!' is found in the product reference." When published check the search works correctly.
    Peblaco

    Comment


      #3
      If you are getting a lot of search results you may wish to look at the Search and Filtering Settings options. Also see: I want the Quick Search to be able to search for several keywords at once, rather than just looking for products which have all the keywords entered in it.
      Peblaco

      Comment

      Working...
      X