From 04d57bdfb0ec273a6992af6a4f07b56aac9d3fb2 Mon Sep 17 00:00:00 2001 From: Robert Newson Date: Mon, 4 May 2009 15:09:49 +0100 Subject: [PATCH] note on planned unit testing. --- TESTS | 13 +++++++++++++ .../com/github/rnewson/couchdb/lucene/Config.java | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 TESTS diff --git a/TESTS b/TESTS new file mode 100644 index 00000000..f4096f0b --- /dev/null +++ b/TESTS @@ -0,0 +1,13 @@ +Tests that need to be automated. This are required for 0.3 release. + +All tests require couchdb to be running and all tests delete and create a database called test_lucene at startup. + +1) add a normal document - verify no index is built. +2) add a design document with simple fulltext function, add a normal document, verify it's searchable. +3) same as 2 but for 1000 documents. +4) same as 3 but verify sort= parameter. +5) include_docs=true +6) rewrite=true +7) defaults { "store":"yes" }, verify stored value is retrieved. +8) verify noargs gives index info. +9) add attachment, verify text extraction. diff --git a/src/main/java/com/github/rnewson/couchdb/lucene/Config.java b/src/main/java/com/github/rnewson/couchdb/lucene/Config.java index b02733a3..0d198a8f 100644 --- a/src/main/java/com/github/rnewson/couchdb/lucene/Config.java +++ b/src/main/java/com/github/rnewson/couchdb/lucene/Config.java @@ -42,9 +42,9 @@ final class Config { static final String INDEX_DIR = System.getProperty("couchdb.lucene.dir", "lucene"); - static final int RAM_BUF = Integer.getInteger("couchdb.lucene.ram", 256); + static final int RAM_BUF = Integer.getInteger("couchdb.lucene.ram", 64); - static final int BATCH_SIZE = Integer.getInteger("couchdb.lucene.batch", 1000); + static final int BATCH_SIZE = Integer.getInteger("couchdb.lucene.batch", 250); static final String DB_URL = System.getProperty("couchdb.url", "http://localhost:5984");