Results 1 to 10 of 12
-
26th Mar 2011, 03:10 AM #1OPMember
tips for php/mysql search methods?
Currently I'm using a basic full-text searching with my php / mysql download script, its a basic system but I'm seeing that full-text searching isn't that great and wondering if there are a few tips on how I can improve the quality of it?
Thanks.c0rrup Reviewed by c0rrup on . tips for php/mysql search methods? Currently I'm using a basic full-text searching with my php / mysql download script, its a basic system but I'm seeing that full-text searching isn't that great and wondering if there are a few tips on how I can improve the quality of it? Thanks. Rating: 5
-
26th Mar 2011, 03:42 AM #2MemberWebsite's:
10gb.in uploadjet.netvbulletin you can try installing spinx
10Gb.in - Affordable Web Hosting Strictly No oversell |
Kimsufi Reseller With 80 payment options
-
26th Mar 2011, 07:28 AM #3MemberWebsite's:
tribupinoy.net pinoyddl.orgor you can try google.. google is your friend..
-
26th Mar 2011, 08:51 AM #4Member
You can try looking into the Zend Lucene Search as it's easy to implement in almost any PHP project.
It's creating a search index and you can easily customize the search results / indexed data to your need.
-
26th Mar 2011, 11:37 AM #5Member
What is your problem exactly? I think that fullsearch engine in mysql is good enough. If there is the perfomance problem you can try standalone indexing software like Sphinx...
-
26th Mar 2011, 08:34 PM #6Respected Member
The only way you are going to get quality returns is to use like instead of match against boolean in the select statement.
-
26th Mar 2011, 10:04 PM #7OPMember
LIKE is actually very inefficient on large datasets as it has to scan the entire index whereas FULLTEXT doesn't (since it is made for searching, LIKE is not). You can see this by EXPLAINing a query, it will check every row in the table
I'm trying out a few query changes now that might help, but anymore tips would be nice.
EDIT:
problem sorted now thanks to JmZ
-
27th Mar 2011, 03:22 AM #8Respected Member
Hmm. I have 280,000 posts and it eats through it in seconds.
You have to make sure you have full text indexing also.
Glad you got it working to your liking tho.
-
27th Mar 2011, 10:54 AM #9OPMember
You must mean milliseconds, if a query takes seconds, it is not a good query.
Also, LIKE shouldn't make use of a FULLTEXT index and most probably doesn't.
Try a few million rows, then the difference in performance is clear, LIKE is terrible for searching.
-
27th Mar 2011, 04:43 PM #10Respected Member
Sorry don't have a few million on site.
You obviously are talking on a dedicated server. Not a shared server
I tried your site 5 times during the day and it took over 4 seconds to load each time. Seems long for the small amount of queries and small amount of images.
Also searched for movie and it took 8 seconds to load. Hmmm..
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Videobb earnin methods.
By p0ssessed in forum File Host DiscussionReplies: 9Last Post: 14th Dec 2011, 07:09 AM -
Search Google Tips
By Raw in forum Tutorials and GuidesReplies: 2Last Post: 19th Nov 2011, 06:51 AM -
paypal methods to withdraw
By icestorm in forum PaypalReplies: 5Last Post: 23rd May 2011, 05:19 AM
themaRegister - register to forums...
Version 3.54 released. Open older version (or...