From 00ed2e3c25b6e6ebbfcf3e5c347fc9b11a86b796 Mon Sep 17 00:00:00 2001 From: jendib Date: Sat, 17 Aug 2013 23:16:19 +0200 Subject: [PATCH] Close IndexReader after search --- .../java/com/sismics/docs/core/dao/lucene/LuceneDao.java | 2 ++ docs-parent/TODO | 7 ++++++- docs-web/src/main/webapp/partial/docs/document.html | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/docs-core/src/main/java/com/sismics/docs/core/dao/lucene/LuceneDao.java b/docs-core/src/main/java/com/sismics/docs/core/dao/lucene/LuceneDao.java index 7add3341..8e9f4675 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/dao/lucene/LuceneDao.java +++ b/docs-core/src/main/java/com/sismics/docs/core/dao/lucene/LuceneDao.java @@ -201,6 +201,8 @@ public class LuceneDao { documentIdList.add(documentId); } + reader.close(); + return documentIdList; } diff --git a/docs-parent/TODO b/docs-parent/TODO index fe7beb2e..d0460833 100644 --- a/docs-parent/TODO +++ b/docs-parent/TODO @@ -1,2 +1,7 @@ - New image rescale between thumbnail and original (client/server) -- Batch to regenerate all thumbnails (server) \ No newline at end of file +- Batch to regenerate all thumbnails (server) +- Delete files on FS when a file in database is deleted (server) +- Batch to delete unused files on FS (server) +- Special criteria to search inside OCR-ed content (eg. full:uranium) (server) +- Special criteria to search on a specific time span (eg. at:2013-06) (server) +- Show help on special criterias (client) \ No newline at end of file diff --git a/docs-web/src/main/webapp/partial/docs/document.html b/docs-web/src/main/webapp/partial/docs/document.html index e60aac84..0b2e0a67 100644 --- a/docs-web/src/main/webapp/partial/docs/document.html +++ b/docs-web/src/main/webapp/partial/docs/document.html @@ -8,7 +8,7 @@

- +