Document Boosting in ElasticSearch

Like many developers raised on a steady diet of PHP/MySQL, doing a search with a LIKE = ‘%term%’ was second nature to me. It usually worked well enough for what I was using it for.

Then, I started working on a project called FilmedInsert. FilmedInsert is a site that is best described as an IMDB for music videos – we collect credit (and other data) about music videos and are starting to accept submissions from beta users. We are currently at around 7,000 music videos, so we have a ways to go, but we have around 3o0,000 name entities in our database. Many are from data input for credits, but the majority we acquired through the open source music database Discogs. (Note: Discogs has 2.5million+ artists, but we pared the numbers down based on which entries would most likely be used to reduce a lot of data management overhead.)

Obviously, MySQL LIKE isn’t going to cut it here – not even close. MySQL fulltext isn’t even going to make it work here either. We need some fine-grain control. Enter ElasticSearch. It’s incredibly fast, incredibly flexible, and once you get the hang of it, a breeze to work with. We’re humming along with our 300,000 document database and we couldn’t be happier with the performance and ease of use. Continue reading

Posted in Code | Tagged , | Leave a comment

Releasing “Pope Michael”

When I was an undergrad at Notre Dame, I made a short called “Pope Michael”, about a guy in Kansas who believed that we was the rightfully-elected Roman Catholic pope. I loved making it, and soon after I graduated I decided to make a full-length documentary. I believed it warranted the full-length treatment because there were new characters (two young followers moving in with him and his mother) and new situations to explore (Pope Michael going to Kansas University to give a talk).

Last month I released “Pope Michael” for free online (you can see it here). It’s a testament to the level of technology that the web has risen to over the past four years for me to embed my entire documentary in HD right here below this paragraph:

Continue reading

Posted in Personal, Pope Michael, Video Projects | 3 Comments

Getting Your Add-ons ready for PyroCMS 2

One of the nice things about an open source CMS project is it moves really fast and it isn’t afraid to make big changes. Such is the case with PyroCMS, and the upcoming 2.0 release is a case in point. With PyroCMS 2, we get a whole new back end interface and some more back end tools for developing great add-ons.

So, if you happen to develop add-ons for PyroCMS, you’ll need to do a little bit of work to make sure your shit don’t break. Here are some tips to get your stuff working on PyroCMS 2 in no time.


Continue reading

Posted in Code, PyroCMS | Tagged , | 6 Comments

Thoughts on CICON2011

CICON2011 was last weekend in NYC, and I had a lot of fun. In March, I told Phil Sturgeon I’d love to help out if he needed it, and I ended up getting to be part of the three man crew (me, Phil, and Kenny Katzgrau) who put together the event.

It was the first of it’s kind in the US, and I believe a hugely significant point for the CodeIgniter community as a whole, so I thought I’d get down my thoughts on the whole affair. Here we go!
Continue reading

Posted in Code | Tagged | 3 Comments

Dynamic Pages with PyroCMS and PyroStreams

There has been a lot of questions on the PyroStreams forum about one subject in particular – showing dynamic info on its own page – so what follows is a guide on how to do that. Once the new Addict site is up (which has a blog), I’ll cross-post this over there.

One note – I am using PyroStreams 2 beta syntax here with the {entries} tag inside of the cycle plugin. If you are using PyroStreams 1, please adjust accordingly. If you are using 2 beta, please update to the latest version (uploaded today at 6pm EST), as it contains fixes to the single function.

Alright, let’s get started!
Continue reading

Posted in Code, PyroCMS | Tagged | 11 Comments

ExpressionEngine CP Menu Manipulation with cp_menu_array

A few days ago Rob Sanchez tweeted a screenshot that caught my eye – a hook called cp_menu_array that is hanging out in expressionengine/libraries/Menu.php like it’s nothing special. It was added in EE 2.1.5.

Good thing Rob caught that because I can’t find any mention of it in the change log or the docs, and this thing is awesome. Why? We finally have direct control over the EE CP menu system.


Continue reading

Posted in Code, ExpressionEngine | 4 Comments

Introducing Fizl: Sites in Your Filesystem

I don’t like having to set up a huge CMS for a really small site that only I am going to update and edit, so when I saw Rick Ellis’ FileDriver demo, I thought a filesystem-based CMS was a great idea. It wasn’t available to use though, so I tried my hand at creating my own.

Continue reading

Posted in Code | Tagged , | 2 Comments

CICON 2011

A short time ago I somehow found myself helping out with the organizing of CICON 2011 in New York City this August (CodeIgniter Con, for those not in the know).

Aside from some little things here and there for the website and getting to talk to the awesome people at Ellislab, I volunteered to make a video to promote CICON with interviews from other CI developers and CI community members. Check it out below:

Continue reading

Posted in Code | Tagged , | 3 Comments

FuelPHP for CodeIgniter Developers

I started using CodeIgniter in January 2008, and it was a huge milestone in my development education. It showed me new ways to build, and I’d never be making the things I am today if it wasn’t for CI. I still love it and I still use it – it is getting better every day via Reactor, and it has a bright future.

That being said, PHP has changed a lot since CodeIgniter’s core was developed. A few months ago, some stuff happened and Dan Horrigan decided to create FuelPHP – a framework loosely in the tradition of CodeIgniter, but built to take advantage of the bells and whistles of PHP 5.3+.

I decided to really delve into FuelPHP over the weekend and found a lot of things that I really love and a lot of things that were really different in both syntax and method to what was done with CodeIgniter. So, coming from a tried and true CI guy, here are some observations of what to look out for when using FuelPHP.

Note: This isn’t meant to win people over to FuelPHP or espouse the virtues of switching, but it is meant as an overview of some major changes in thinking/structure for CI developers looking to use FuelPHP.
Continue reading

Posted in Code | Tagged , , | 23 Comments

My First Music Video – Sam Friend, “Part of the Show”

My brother, Derek, is crew with people in the Miami music scene since he himself is a musician (and in Miami). One of the people Derek plays/records/travels with a lot is Sam Friend, a singer/songwriter who has an EP and an album under his belt which have some really fantastic songs.

After I did some live videos for Derek, Sam and I got to talking and I pitched the idea of doing a music video for my favorite song of his, “Part of the Show”. Several months later, the video is done and available to check out here.
Continue reading

Posted in Video Projects | Tagged , | Leave a comment