, , , ,

Searchville and ActsBasicallySearchable

So, you may notice that I just added a search box which will search posts, and maybe comments in the future. This was the first time I've really written a search engine, and it was kind of fun. I initially wanted to use the MySQL FULLTEXT search with built in relevance ranking (which is awesome), but that didn't really work out for me. I wasn't getting back any results when I was searching with MATCH(field1, field2) AGAINST 'query'

I think maybe the entire table has to be FULLTEXT... anyone know? Anyway, I ended up using a more basic approach and rolled it into a little plugin I call ActsBasicallySearchable. This is my first plugin, so any feedback is appreciated. Basically you just choose which fields you want to search in an ActiveRecord model, and it will return a collection of results, ranked by the frequency of the keywords in those fields.

class Post < ActiveRecord::Base

  acts_basically_searchable :title, :body

end

And to search, just say:

Post.search_for "your search terms"



Download ActsBasicallySearchable
Permalink    Show Comments


,

The Science of Sleep

View the trailer for Michel Gondry's upcoming movie The Science of Sleep.

Permalink    Show Comments


,

Mouse Rides Frog in India Monsoon

:

Permalink    Show Comments (3)


, ,

d.Construct

According to their website:

“d.Construct is an affordable, one-day conference aimed at those building the latest generation of web-based applications. The event discusses how new technology is transforming the web from a document delivery system into an application platform.”

But I just like them for their logo:

Is that shallow?

Permalink    Show Comments (2)


, , , ,

Hello World

This is the first post of my hand-rolled rails blogging app, code named "Bilbog"—but that might not be cool enough for a final moniker. It took me a while to get it set up on my new host, Site5, because I don't have much experience setting up the server side of things. But they were helpful and prompt when it came to troubleshooting my issues.

In the sidebar you'll notice a Ma.gnolia links component that shows the tags, thumbnails and descriptions of my latest Ma.gnolia bookmarks, thanks to their handy API. You can also download the feed. If you don't have a Ma.gnolia account, it's a great way to collect and pimp your bookmarks. Lack coding mojo? They have a link-roll generator and other goodies too.

There's still more to do (search... <title> tag), but I thought I'd get something live to keep the momentum going.

Permalink    Show Comments

<   1 ... 13 14 15