Mittwoch Mrz 24, 2010

Roolastic - Part One

Part Two

Part Three

Part Four

Roolastic is a little research project by me. It is a project using Spring Roo and integrating ElasticSearch for full text search. It is motivated by my both in web frameworks and in everything that is happening in the full text search and especially in the Lucene world. While it is interesting to read about emerging technologies, nothing beats hands-on experience with a framework or project, so I came up with Roolastic. I hope it will serve me as a playground for both Roo experiments and getting to grips with ElasticSearch.

Objectives

A webapp that lets users upload images and search for images by their user provided properties and extracted metadata. This is admittedly rather primitive but I think it's useful enough to try out quite a lot of things and get a feeling for the quality, usefulness and 'taste' of the tools

Prerequisites

You need

  • a recent version of Java obviously
  • a working version of maven
  • a Roo Installation or Spring Tools Suite (which includes Roo)
  • ElasticSearch
You can then get a copy of the projects sources by cloning from GitHub

Get up and running

It would probably be useful to read up on Roo as I don't intend to make this yet another Roo tutorial - my aim is more to review it.
You should then get a recent copy of ElasticSearch (I'm working with the latest development sources, checking them out with git). Once you have got the sources, did your first successful build with gradle and verified that it's working, do a

./gradlew elasticsearch:install
to get a snapshot into your local maven cache (0.6.0-SNAPSHOT at the time of writing). You need to do this to satisfy Roolastics elasticsearch dependency.
Then start up elasticsearch by doing
cd 'directory where your elasticsearch sources are'
cd build/distributions/exploded
bin/elasticsearch -f
(UPDATE: that's not required anymore as I changed to using an embedded ElasticSearch node) Once elasticsearch is up and running you can then go to your Roolastic source directory and do
mvn compile
mvn tomcat:run (OR) mvn jetty:run
Now if you point your browser to http://localhost:8080/roolastic/ you should see something like this: Voilà roolastic1.png

Kommentare:

Tolle Wurst

Gesendet von Peri am März 24, 2010 at 08:39 PM CET #

[Trackback] This post was mentioned on Twitter by joeslow: I started a little blog series on #spring #roo and #elasticsearch http://bit.ly/9sE51G and http://bit.ly/b1DLzK

Gesendet von uberVU - social comments am März 24, 2010 at 11:08 PM CET #

Hello,

I am having trouble starting ElasticSearch with the directions above. I am able to download them, and build them with Gradle. But I am unsure which directory to go to to start. I am in the directory below bin and type "bin/elasticsearch -f" and I get a NoClassFoundException org.elasticsearch.bootstrap.Bootstrap.

What am I missing?

Danke,
Gordon

Gesendet von Gordon Dickens am März 29, 2010 at 08:07 PM CEST #

I ask this not to be a smartass, but because I want to know. Why ElasticSearch? Why not SOLR?

Gesendet von Rick Hightower am April 05, 2010 at 09:00 PM CEST #

Senden Sie einen Kommentar:
Kommentare sind ausgeschaltet.