Skip to content
This repository
Browse code

include properties file in zip. still not available to run script, th…

…ough.
  • Loading branch information...
commit 2d6180b9625f8057619d37b8ed3e1712fdb5a699 1 parent 50c4205
Robert Newson authored
20 README.md
Source Rendered
@@ -31,6 +31,8 @@ JDK6 is required; the Sun version is recommended as it's regularly tested agains
31 31 <li>configure couchdb (see below)
32 32 </ol>
33 33
  34 +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.
  35 +
34 36 <h1>Configure CouchDB</h1>
35 37
36 38 <pre>
@@ -38,7 +40,7 @@ JDK6 is required; the Sun version is recommended as it's regularly tested agains
38 40 os_process_timeout=60000 ; increase the timeout from 5 seconds.
39 41
40 42 [external]
41   -fti=/path/to/couchdb-lucene/couchdb-external-hook.rb
  43 +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
42 44
43 45 [httpd_db_handlers]
44 46 _fti = {couch_httpd_external, handle_external_req, <<"fti">>}
@@ -46,23 +48,21 @@ _fti = {couch_httpd_external, handle_external_req, <<"fti">>}
46 48
47 49 <h1>Configure couchdb-lucene</h1>
48 50
49   -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;
  51 +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.
50 52
51   -<pre>
52   -couchdb.url=http://localhost:5984
53   -</pre>
  53 +<ol>
  54 +<li>Unzip the couchdb-lucene zip file.
  55 +<li>Open the conf/couchdb-lucene.properties file.
  56 +<li>Edit the couchdb.url to point to your couchdb installation.
54 57
55 58 <h1>Start couchdb-lucene</h1>
56 59
57 60 To start couchdb-lucene, run;
58 61 <pre>
59   -couchdb-lucene start
  62 +bin/run
60 63 </pre>
61 64
62   -To stop couchdb-lucene, run;
63   -<pre>
64   -couchdb-lucene stop
65   -</pre>
  65 +To stop couchdb-lucene, simply kill the Java process.
66 66
67 67 <h1>Indexing Strategy</h1>
68 68
8 src/main/assembly/dist.xml
@@ -15,14 +15,14 @@
15 15 </fileSets>
16 16 <files>
17 17 <file>
18   - <source>${project.basedir}/src/main/bin/start.sh</source>
  18 + <source>${project.basedir}/src/main/bin/run</source>
19 19 <fileMode>500</fileMode>
20 20 <outputDirectory>/bin</outputDirectory>
21 21 </file>
22 22 <file>
23   - <source>${project.basedir}/src/main/bin/stop.sh</source>
24   - <fileMode>500</fileMode>
25   - <outputDirectory>/bin</outputDirectory>
  23 + <source>${project.basedir}/src/main/conf/couchdb-lucene.properties</source>
  24 + <fileMode>400</fileMode>
  25 + <outputDirectory>/conf</outputDirectory>
26 26 </file>
27 27 </files>
28 28 <dependencySets>
2  src/main/bin/run
... ... @@ -0,0 +1,2 @@
  1 +#!/bin/sh
  2 +java -server -Xmx1g -jar lib/couchdb-lucene-0.5-SNAPSHOT.jar
3  src/main/bin/start.sh
... ... @@ -1,3 +0,0 @@
1   -#!/bin/sh
2   -
3   -java -jar lib/couchdb-lucene-0.5-SNAPSHOT.jar
1  src/main/bin/stop.sh
... ... @@ -1 +0,0 @@
1   -#!/bin/sh
14 src/main/conf/couchdb-lucene.properties
... ... @@ -0,0 +1,14 @@
  1 +# The location of CouchDB.
  2 +couchdb.url=http://localhost:5984
  3 +
  4 +# The output directory for Lucene indexes.
  5 +lucene.dir=indexes
  6 +
  7 +# The location of our log file.
  8 +lucene.log=log/couchdb-lucene.log
  9 +
  10 +# The port that couchdb-lucene binds to.
  11 +lucene.port=5985
  12 +
  13 +# Whether Lucene's near-realtime search feature is enabled.
  14 +lucene.realtime=true

0 comments on commit 2d6180b

Please sign in to comment.
Something went wrong with that request. Please try again.