Current location: Hot Scripts Forums » Programming Languages » PHP » Advanced search


Advanced search

Reply
  #1 (permalink)  
Old 12-13-09, 03:23 PM
phpdoctor's Avatar
phpdoctor phpdoctor is offline
Code Guru
 
Join Date: Feb 2007
Location: New Zealand
Posts: 767
Thanks: 4
Thanked 2 Times in 2 Posts
Question Advanced search

Hi guys,

Im getting ready to create a search feature for this site...
It needs to search multiple tables and sort by relevance

Do you know any guides or have any tips/ideas?
__________________
01010000 01001000 01010000
Reply With Quote
  #2 (permalink)  
Old 12-14-09, 06:37 PM
Jcbones Jcbones is offline
Aspiring Coder
 
Join Date: Mar 2009
Location: North Carolina, USA
Posts: 516
Thanks: 5
Thanked 47 Times in 44 Posts
Yes, plenty of guides, plenty of ideas...
Reply With Quote
  #3 (permalink)  
Old 12-14-09, 06:59 PM
phpdoctor's Avatar
phpdoctor phpdoctor is offline
Code Guru
 
Join Date: Feb 2007
Location: New Zealand
Posts: 767
Thanks: 4
Thanked 2 Times in 2 Posts
Thanks, that helped alot.
__________________
01010000 01001000 01010000
Reply With Quote
  #4 (permalink)  
Old 12-14-09, 07:17 PM
Jcbones Jcbones is offline
Aspiring Coder
 
Join Date: Mar 2009
Location: North Carolina, USA
Posts: 516
Thanks: 5
Thanked 47 Times in 44 Posts
Yep, I sent about as much info as you did.


Edit: database type would be a good start.
Reply With Quote
  #5 (permalink)  
Old 12-14-09, 07:42 PM
phpdoctor's Avatar
phpdoctor phpdoctor is offline
Code Guru
 
Join Date: Feb 2007
Location: New Zealand
Posts: 767
Thanks: 4
Thanked 2 Times in 2 Posts
Ye sorry, MySql 5.0.45

Im wanting to search two tables called products & articles. Possibly more.
I need to search each table for some keywords then display any found record
in order of relevance.

When displaying I can render each item as a product or an article.
Do you think I need to search each table separately and then join them together?

Havent done any ordering by relevance before... Maybe if a keyword is found
in a field it adds to a score, then the records can be ordered by this score?

Sorry for being abit rude also >.>

Lex
__________________
01010000 01001000 01010000
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced Search not so advanced mclamais General HotScripts Site Discussion 1 10-15-05 11:20 PM
SEO Expert Available nakulgoyal Job Offers & Assistance 2 08-14-04 12:38 PM
Declared Functions skipper23 PHP 4 12-17-03 10:06 AM
index page not showing up skipper23 PHP 3 12-15-03 01:10 PM
file manager with advanced search function alexkeys PHP 0 12-05-03 01:24 PM


All times are GMT -5. The time now is 08:05 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.