Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[PHP] Search Engine
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Localhost
I post too much
Reputation: 0

Joined: 28 Apr 2007
Posts: 3402

PostPosted: Mon Apr 06, 2009 3:51 pm    Post subject: [PHP] Search Engine Reply with quote

Well, currently i run a site ( http://iRule.at/Music ) that has roughly 1 million songs in its database.

The problem i am running across is that my current search algorithm is slow and all around shit.

Maybe i am just expecting to much out of MySQL and PHP...

Is there anything i can do to make a more reliable search engine and faster?

_________________
Back to top
View user's profile Send private message MSN Messenger
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Mon Apr 06, 2009 4:07 pm    Post subject: Re: [PHP] Search Engine Reply with quote

localhost wrote:
Well, currently i run a site ( http://iRule.at/Music ) that has roughly 1 million songs in its database.

The problem i am running across is that my current search algorithm is slow and all around shit.

Maybe i am just expecting to much out of MySQL and PHP...

Is there anything i can do to make a more reliable search engine and faster?


What are you currently using for a searching/sorting algorithm?
Back to top
View user's profile Send private message
Localhost
I post too much
Reputation: 0

Joined: 28 Apr 2007
Posts: 3402

PostPosted: Mon Apr 06, 2009 6:33 pm    Post subject: Reply with quote

Would you like the MySQL query? it is basic...
_________________
Back to top
View user's profile Send private message MSN Messenger
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Mon Apr 06, 2009 8:02 pm    Post subject: Reply with quote

localhost wrote:
Would you like the MySQL query? it is basic...


Oh, so you are delegating all the work to MySQL? Bad idea, the performance would be absolutely horrific. You should really look into some sorting/searching algorithms. Hash maps, binary trees, quick sort, merge sort, etc. You probably won't use half of it in the search engine, but it's handy to know when someone tells you a searching algorithm finds stuff in logarithmic time.
Back to top
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Mon Apr 06, 2009 8:44 pm    Post subject: Reply with quote

Categorize the songs into genres? If it's not time consuming =D
Back to top
View user's profile Send private message
Localhost
I post too much
Reputation: 0

Joined: 28 Apr 2007
Posts: 3402

PostPosted: Mon Apr 06, 2009 10:19 pm    Post subject: Reply with quote

: wrote:
Categorize the songs into genres? If it's not time consuming =D


but it is pointless when people are just searching one word/string of words... and not genre + string of words.

Also, Flyte i will look into that. Mind pointing me into the right direction?

_________________
Back to top
View user's profile Send private message MSN Messenger
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Tue Apr 07, 2009 4:49 am    Post subject: Reply with quote

Can I write a search engine for you? (a)
_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Localhost
I post too much
Reputation: 0

Joined: 28 Apr 2007
Posts: 3402

PostPosted: Tue Apr 07, 2009 10:47 am    Post subject: Reply with quote

I have decided i will most likely use either Lucene or Sphinx.
_________________
Back to top
View user's profile Send private message MSN Messenger
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue Apr 07, 2009 10:51 am    Post subject: Reply with quote

localhost wrote:
I have decided i will most likely use either Lucene or Sphinx.

Website wrote:
Apache Lucene is a high-performance, full-featured text search engine library written entirely in Java.


Laughing
Back to top
View user's profile Send private message
Localhost
I post too much
Reputation: 0

Joined: 28 Apr 2007
Posts: 3402

PostPosted: Tue Apr 07, 2009 6:09 pm    Post subject: Reply with quote

Flyte wrote:
localhost wrote:
I have decided i will most likely use either Lucene or Sphinx.

Website wrote:
Apache Lucene is a high-performance, full-featured text search engine library written entirely in Java.


Laughing


I'm confused, are you saying Lucene is the best decision?

_________________
Back to top
View user's profile Send private message MSN Messenger
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue Apr 07, 2009 6:13 pm    Post subject: Reply with quote

localhost wrote:
Flyte wrote:
localhost wrote:
I have decided i will most likely use either Lucene or Sphinx.

Website wrote:
Apache Lucene is a high-performance, full-featured text search engine library written entirely in Java.


Laughing


I'm confused, are you saying Lucene is the best decision?


Quote:
ox⋅y⋅mo⋅ron
[-mawr-uh, -mohr-uh] Rhetoric.
a figure of speech by which a locution produces an incongruous, seemingly self-contradictory effect, as in “cruel kindness” or “to make haste slowly.”
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Wed Apr 08, 2009 1:15 pm    Post subject: Reply with quote

He's saying Java is not a high performance language, while the website says that the search engine is high-performance, except it's written in Java, which isnt high performace, so it's an oxymoron.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Localhost
I post too much
Reputation: 0

Joined: 28 Apr 2007
Posts: 3402

PostPosted: Wed Apr 08, 2009 3:00 pm    Post subject: Reply with quote

oib111 wrote:
He's saying Java is not a high performance language, while the website says that the search engine is high-performance, except it's written in Java, which isnt high performace, so it's an oxymoron.


I thought it was something like that. But ISOHUNT uses them and has 1,000,000+ entries, and their search queries take 240ms

_________________
Back to top
View user's profile Send private message MSN Messenger
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Wed Apr 08, 2009 3:06 pm    Post subject: Reply with quote

localhost wrote:
I thought it was something like that. But ISOHUNT uses them and has 1,000,000+ entries, and their search queries take 240ms


I'm not saying don't use it; I was just commenting on how I found the statement funny. Then again, having met (and then subsequently made fun of) the lead sysadmin for IsoHunt, I'm not surprised they decided to use a Java library for something like that.
Back to top
View user's profile Send private message
chiryphp
How do I cheat?
Reputation: 0

Joined: 28 Jan 2011
Posts: 1

PostPosted: Fri Jan 28, 2011 8:07 pm    Post subject: Free PHP Search Engine Reply with quote

Recommend a site-PHPKode
where list some free php search engine projects.
Hopefully can help you!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites