The nice thing about Elasticsearch is that it allows boosting of certain fields (paste title is higher ranked than the file content) and has a bunch of search query features:
- Exclusion: +foo -bar
- Logical OR: foo OR bar
- Quoting: "foo bar"
- Partial words: foo*
- Restriction to certain fields: content:Hello
All of that was just there without me having to do any programming, whereas with MySQL this would have taken weeks to implement (query parsing and sql-mapping).
phorkie will work fine without an Elasticsearch service, but you won't see the search field in that case.
While hacking on phorkie, I took the time to do fixes for libraries that I use here:
- Services_Libravatar (federated, open source gravatar) nearly got a complete rewrite and is unit-tested now. Melissa merged my changes and released versions 0.2.0 and 0.2.1.
- Date_HumanDiff (lib to display relative dates in a readable form like "2 hours ago") supports translations (en, de and el already there!) and custom times ("2 dozen seconds ago"). It's available in version 0.2.0.