I made a 'search engine' for fun (foobub.com)
This was a weekend project for fun. The problem I had was I felt like existing search engines were too cluttered and I couldn't easily sort results by websites.
I experimented and rather than returning so many results, it returns the results from a few number of websites and tries to rank in on a confidence level from that smaller subset.
71 comments
[ 3.2 ms ] story [ 131 ms ] threadI think we've just gotten so used to Google and its millions of results; I wondered, what would happen if I took that all away and presented only just a small handful of results?
Either way, nice experiment!
I use it without thinking about it now and I don't need to touch the mouse bearing in mind I'm on the keyboard typing the search.
If so, I can't really complain. 95% of my searches are followed by "wiki" normally so I can get wikipedia first.
Try putting in a coding question and Stackoverflow will show: http://foobub.com/?s=python+xrange+vs+range
If you put in a random question, yahoo answers will probably appear: http://foobub.com/?s=why+does+sweat+smell+so+bad
Wikipedia just generally comes up first as the way it's weighted. It answers and provides knowledge for most queries.
Also, searching for "stackoverflow" gives unexpected results: http://foobub.com/?s=stackoverflow
Otherwise, surprisingly useful for something so simple. If you could tone down/up result sources and it had more (e.g. show me nothing from yahoo answers, more from stackoverflow), i would concievably use this instead of the goog for most things.
Like many people most of my googles are "wiki blah"
Good job!
By routing through google, it's also much more tolerant of misspellings.
That way you don't need to search through google, you can search directly. Works with most search boxes.
In Firefox you go to the wikipedia page, right click on the search text box, then "Add Keyword for this Search". In Chrome, you do the same thing, right click on that search box and then click "Add as Search Engine".
You can add whatever keyword you want, like "w" and from then on, all searches with "w " as a prefix will go straight to Wikipedia's results.
I have shortcuts defined for Wikipedia, Stackoverflow, Amazon.com, IMDB, a dictionary for my native language, my personal Gmail, my work Gmail, Google Translate and Hacker News.
For instance for Hacker News, I often want to search for articles I've read here, not to mention it's a valuable resource for getting other people's opinions on certain subjects. So instead of searching on Google for:
I defined a prefix for this search "hn", and so I simply type "hn some topic". You can't use the shortcut for this though, you'll have to go to Settings and manually add a search engine setting.For Google Translate, I basically type "enro phrase", for translating "phrase" from English to Romanian, while I type "roen phrase" for translating "phrase" from Romanian to English.
Can DuckDuckGo do that?
'Wikipedia, Yahoo Answers, Google Answers (lawl), Quora, Stackoverflow.'
Stackoverflow comes up when you do coding questions, yahoo answers when you do just random questions. Although, Quora doesn't appear as often as I like. I need to do a bit of tweaking.
Here's an example where Quora comes up: http://foobub.com/?s=vu0tran
I'm impressed with the results for most (obviously not esoteric) searches.
One thing: lots of URLs don't wrap or truncate, so you get some overflow, example: http://foobub.com/?s=how+is+babby+form
I'm trying it myself, just putting things out there and saying "to hell with it" because, ultimately, unshitifying things is Zeno's paradox kind of work; you're never really done. And, really, it's probably better than you think anyway.
It's not the greatest analogy in the world, but it sort of works in that it illustrates the fractal-like nature of bug-squashing.
If it's really confident about a result, it'll only give 1 or 2 results. i.e. http://foobub.com/?s=cats
If it's kinda confused, it gives multiple results and ranks the site by most likely: http://foobub.com/?s=what%20is%20the%20answer%20to%20life%20...
If it has no what you're doing, it'll search it on Google for you: http://foobub.com/?s=foobub
My website is not yet self-aware. No need to worry, guys.
Ideally, it would show Google search results in an iframe, although I imagine that is against their TOS. Maybe just linking to Google search results would be a better experience.
To answer your question though, the backend is running on Python. There's no particular reason. I just find it a lot easier to script with. It's running on fCGI with nginx on the backend server. On the front is PHP... which is served through up by apache. I find it easier for me to do $_GET, hack around forms really fast and also just echo Javascript everywhere.
http://foobub.com/?s=xss
Bam. Foobub.
It might be useful for you to look at jQuery Masony library for your presentation.
Otherwise, very good work. I was suprised it can even do simple sentence-search.
How did you make this, what is the backend?