Child pages
  • Getting Started - Zoie Example
Skip to end of metadata
Go to start of metadata

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)

  • No labels

1 Comment

  1. Hi, I use  the command "git clone git://github.com/javasoze/zoie.git zoie-trunk" and get the zoie project, but its directory structure is like this: 

    build.xml
    contrib
    .git
    .gitignore
    pom.xml
    .project
    .md
    .settings
    .springBeans
    zoie-core
    zoie-example
    zoie-jms
    zoie-parent
    zoie-perf
    zoie-server
    zoie-solr
    

    it is a mvn project and I can't use ant like you. When I deploy the example use mvn, failed. 

    How should I do?

    Thank you!!