Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
include properties file in zip. still not available to run script, th…
Browse files Browse the repository at this point in the history
…ough.
  • Loading branch information
Robert Newson committed Oct 7, 2009
1 parent 50c4205 commit 2d6180b
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 18 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,38 +31,38 @@ JDK6 is required; the Sun version is recommended as it's regularly tested agains
<li>configure couchdb (see below)
</ol>

You will now have a zip file in the target/ directory. This contains all the couchdb-lucene code, dependencies, startup scripts and configuration files to run couchdb-lucene.

<h1>Configure CouchDB</h1>

<pre>
[couchdb]
os_process_timeout=60000 ; increase the timeout from 5 seconds.

[external]
fti=/path/to/couchdb-lucene/couchdb-external-hook.rb
fti=/path/to/ruby /usr/lib/couchdb/couchdb-lucene/couchdb-external-hook.rb couchdb.log.dir=/tmp couchdb.lucene.host=localhost couchdb.lucene.port=5985

[httpd_db_handlers]
_fti = {couch_httpd_external, handle_external_req, <<"fti">>}
</pre>

<h1>Configure couchdb-lucene</h1>

From 0.5 onwards, couchdb-lucene runs in a single, standalone JVM. As such, you can choose to locate your couchdb-lucene server on a different machine to couchdb if you wish, or keep it on the same machine, it's your call. In either case, you need to tell couchdb-lucene where couch is. Edit the couchdb-lucene.properties file and fill in the host and port details;
From 0.5 onwards, couchdb-lucene runs in a single, standalone JVM. As such, you can choose to locate your couchdb-lucene server on a different machine to couchdb if you wish, or keep it on the same machine, it's your call.

<pre>
couchdb.url=http://localhost:5984
</pre>
<ol>
<li>Unzip the couchdb-lucene zip file.
<li>Open the conf/couchdb-lucene.properties file.
<li>Edit the couchdb.url to point to your couchdb installation.

<h1>Start couchdb-lucene</h1>

To start couchdb-lucene, run;
<pre>
couchdb-lucene start
bin/run
</pre>

To stop couchdb-lucene, run;
<pre>
couchdb-lucene stop
</pre>
To stop couchdb-lucene, simply kill the Java process.

<h1>Indexing Strategy</h1>

Expand Down
8 changes: 4 additions & 4 deletions src/main/assembly/dist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
</fileSets>
<files>
<file>
<source>${project.basedir}/src/main/bin/start.sh</source>
<source>${project.basedir}/src/main/bin/run</source>
<fileMode>500</fileMode>
<outputDirectory>/bin</outputDirectory>
</file>
<file>
<source>${project.basedir}/src/main/bin/stop.sh</source>
<fileMode>500</fileMode>
<outputDirectory>/bin</outputDirectory>
<source>${project.basedir}/src/main/conf/couchdb-lucene.properties</source>
<fileMode>400</fileMode>
<outputDirectory>/conf</outputDirectory>
</file>
</files>
<dependencySets>
Expand Down
2 changes: 2 additions & 0 deletions src/main/bin/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
java -server -Xmx1g -jar lib/couchdb-lucene-0.5-SNAPSHOT.jar
3 changes: 0 additions & 3 deletions src/main/bin/start.sh

This file was deleted.

1 change: 0 additions & 1 deletion src/main/bin/stop.sh

This file was deleted.

14 changes: 14 additions & 0 deletions src/main/conf/couchdb-lucene.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# The location of CouchDB.
couchdb.url=http://localhost:5984

# The output directory for Lucene indexes.
lucene.dir=indexes

# The location of our log file.
lucene.log=log/couchdb-lucene.log

# The port that couchdb-lucene binds to.
lucene.port=5985

# Whether Lucene's near-realtime search feature is enabled.
lucene.realtime=true

0 comments on commit 2d6180b

Please sign in to comment.