homepage Welcome to WebmasterWorld Guest from 54.205.242.179
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Product Search Algorithm
What's the best approach for searching products?
nick279




msg:3775691
 12:21 pm on Oct 29, 2008 (gmt 0)

Just adding on a PHP search facility to my e-commerce site and struggled to find an answer for this.

I haven't utilised a plaintext search (mysql) for my products search, but have several fields I'd like to search. Was going to do a keyword density approach for each of the below fields, and weight it using the following:-

40% weight = Product Title
20% weight = Product Description
20% weight = Meta Tags (title/description/kw)
20% weight = Other fields

$weighting = array("title"=>0.4, "description"=>0.2, "meta"=>0.2, "other"=>0.2);

Are there quicker or better ways to do this / am I missing a trick?

 

dreamcatcher




msg:3784809
 2:00 pm on Nov 12, 2008 (gmt 0)

How about MySQL`s FULLTEXT search functions?

[dev.mysql.com...]

dc

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved