snaprojects.jira.com
 

Getting Started - Zoie Example

Getting Started

Prerequisites

  • Java 1.5+
  • Ant

Checkout the code:

If you don't have Git installed, get it at: http://git-scm.com/

git clone git://github.com/javasoze/zoie.git zoie-trunk

Bundled

  • jetty 6.1.14
  • log4j 1.2.15
  • lucene 2.4.0
  • lucene Highlighter 2.3
  • mx4j
  • spring
  • fastutil 5.1.5
  • json
  • servlet-api

Directory Structure

  • java - library source code
  • lib - bundled libraries
  • jetty - jetty and servlet libraries
  • conf - configuration
  • test - unit tests and test resources
  • server
  • server/src - server source code
  • example/java - example source code
  • example/settings - example configuration
  • example/resource - example web.xml and dwr.xml
  • example/conf - example spring configuration
  • example/webapp - example web ui

Build

Just do ant

zoie-${version}.jar will be created in the dist directory

Configure the Example

Edit example/settings/index.properties to specify source directory location, by default, the java directory is specified.

Build Example War

do ant example-war
zoie-example-${version}.war will be created in the dist directory

Run

Do ant run-server

zoie-example-${version}.war will be deployed.

Server is running on: http://localhost:8888/zoie-example http://localhost:8888/zoie-example

Logs are in logs directory
Target index is example-index directory

Indexing

Data stream is NOT started by default, to start the data stream for indexing via JMX:

Bean: zoie-example:name=data-provider

method: start()

do: jconsole

You should be able to search immediately:

Now customize example/settings/index.properties to set the source directory to your own and search it in real time! (restart/redeploy required)

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Powered by JIRA Studio 2.2 | Terms of Use | Bug/feature request | Request Support | Help/Documentation