Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
column priority in full text search
Old 08-25-2009, 04:10 PM column priority in full text search
orionoreo's Avatar
Ultra Talker

Posts: 335
Name: Jerry
Trades: 0
i currently have the following search query

PHP Code:
$get_search "SELECT *, MATCH(comp_name, comp_desc) AGAINST ('$search_var' IN BOOLEAN MODE) AS relevance FROM $table WHERE MATCH(comp_name, comp_desc) AGAINST('$search_var' IN BOOLEAN MODE) ORDER BY relevance DESC"
say I search for candy... and I have an entry call Candy Land and Walmart... in Walmart's description candy comes up a few times... so the results shows walmart first then candy land... is there a way to set priority on the name then the desc?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
orionoreo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to column priority in full text search
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.08077 seconds with 12 queries