Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Join Date
    May 2005
    Location
    London, England
    Posts
    22
    Plugin Contributions
    0

    Default Re: Improving search results

    Quote Originally Posted by fontaholic View Post
    rob, thank you for this code. i'm hoping to get it to work. i did the text indexing and put the code changes above into my header_php.php file, but it's not working (as far as i can tell). you reference something called 'robs_keywords'... how do i define that for my own site? ultimately i'm hoping to have this sort search results by product category, then products name if possible. do you think that is possible? thanks!
    the variable robs_keywords is defined in the code above. Are you using the latest version of Zen? Sorry I don't have much time to support this.

    Rob

  2. #12
    Join Date
    Jun 2008
    Posts
    113
    Plugin Contributions
    0

    Default Re: Improving search results

    thanks so much for replying. i'm on 1.3.8a right now on my live server but am in the process of cleaning up my dev version to upgrade to 1.3.9. if i need to wait to do this untill then, i can add it to my post-upgrade list!
    :) emily
    http://store.inspiritcommon.com/
    ZC 1.3.8a on Godaddy :: EP 1.2.5.4 :: Adv Search 1.1 and a buncha other stuff

  3. #13
    Join Date
    May 2005
    Location
    London, England
    Posts
    22
    Plugin Contributions
    0

    Default Re: Improving search results

    Looks like I'm still on 1.3.8 so that's probably not the problem.

    Rob

  4. #14
    Join Date
    May 2005
    Location
    London, England
    Posts
    22
    Plugin Contributions
    0

    Default Re: Improving search results

    It might be because you have "Advanced Search 1.1" installed? I've not seen that mod but looks interesting, when I get some spare time I will try installing it and see how it works with my changes.

    Rob

  5. #15

    Default Re: Improving search results

    Rob, thank you sharing this solution. It has saved me loads of time and effort. Works like a dream.

  6. #16
    Join Date
    Apr 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: Improving search results

    Quote Originally Posted by fontaholic View Post
    rob, thank you for this code. i'm hoping to get it to work. i did the text indexing and put the code changes above into my header_php.php file, but it's not working (as far as i can tell). you reference something called 'robs_keywords'... how do i define that for my own site? ultimately i'm hoping to have this sort search results by product category, then products name if possible. do you think that is possible? thanks!
    SWEEEEEEEET!!!! that sorted it right out. top notch!!!

  7. #17
    Join Date
    Apr 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: Improving search results

    Nice one! that sorted my search out loads; there's still a few stragglers here and there but it's infinitely better! thanks man i really appreciate that!

  8. #18
    Join Date
    Dec 2009
    Posts
    58
    Plugin Contributions
    0

    Default Re: Improving search results

    I just performed the mod on my 1.3.9h store and it works great! I just need to do the additional modification to the mysql config file to account for the 3 letter words. Thanks for posting the code!
    Vu Nguyen | Multimedia Developer & Webmaster
    Robotics Academy/Robomatter
    Robomatter Robotics Education Store

  9. #19
    Join Date
    Jul 2009
    Location
    Texas
    Posts
    187
    Plugin Contributions
    1

    Default Re: Improving search results

    Quote Originally Posted by madmouse View Post
    // Ranking code by Rob - www.funkyraw.com
    $robs_keywords=stripslashes($_GET['keyword']);
    $from_str = ", MATCH(pd.products_name) AGAINST('$robs_keywords') AS rank1, MATCH(pd.products_description) AGAINST('$robs_keywords') AS rank2 ";
    //end ranking code
    Just a note. In 1.5.1 the $robs_keywords=stripslashes($_GET['keyword']); line breaks searches containing a single quote. Commenting it out fixes it.
    BuyDentalEquipment Designed/Administrated by Falls Geek
    My modules: Simple Popup

  10. #20
    Join Date
    Sep 2012
    Posts
    10
    Plugin Contributions
    0

    Default Re: Improving search results

    Quote Originally Posted by llynix View Post
    Just a note. In 1.5.1 the $robs_keywords=stripslashes($_GET['keyword']); line breaks searches containing a single quote. Commenting it out fixes it.
    Thank you! I just discovered this in 1.5.0, so you saved me a lot of time searching for a fix.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Is there a way to have advanced search results open the results in a new window?
    By member in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Mar 2008, 08:27 PM
  2. Improving Site Search
    By mutualadvantage in forum General Questions
    Replies: 1
    Last Post: 18 Feb 2008, 10:47 PM
  3. Replies: 3
    Last Post: 27 Aug 2007, 08:29 PM
  4. Replies: 8
    Last Post: 5 Dec 2006, 10:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •