|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Search Engine
I am in need of building a search engine for a intranet. I would have worked it out myself given more time, unfortunatly I have limited time < 7 days so if anyone could point me in the right direction it would be appreicated. Searching would be performed on client data (ie: Name, Email, Phone, Address, Last contact, etc)
Thanks liaaam |
|
#2
|
|||
|
|||
|
RE: Search Engine
search the database with the using the LIKE clause:
select * from database where name LIKE '%something%' or you could use MySQL's fulltext searching if you are using MySQL... |
|
#3
|
|||
|
|||
|
RE: Search Engine
I used this select query to search within the table that contains ULRs (fields: url, title, keywords, description, name_category).
Example of query if search word is 'hobby' Select IF(POSITION('hobby' IN CONCAT_WS('',url,title,keywords,description, name_category)),1,0), id, name_category as cat, url, title, description, id_category from urls WHERE CONCAT_WS('',url,title,keywords,description, name_category) LIKE '%hobby%' ORDER BY 1 desc, cat desc,title This select I create dinamycally regarding amount of search words. I tried this select on table with 30 000 records, and it works fast. |
|
#4
|
|||||
|
|||||
|
RE: Search Engine
I use the following script - obviously you will need to change the fields to reflect your own, but it works well:
php Code:
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > Search Engine |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|