From: john Date: Mon, 13 Jan 2003 22:42:35 +0000 (+0000) Subject: stupid mistake...forgot to close the IndexWrite which creates an index if one doesn... X-Git-Tag: BEFORE_MERGE_1_1~320 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=26ffeb06b633078e19571c53d9bdb53de9acf989;p=mir.git stupid mistake...forgot to close the IndexWrite which creates an index if one doesn't exist --- diff --git a/source/mircoders/producer/IndexingProducerNode.java b/source/mircoders/producer/IndexingProducerNode.java index c5de80a6..8cd82b88 100755 --- a/source/mircoders/producer/IndexingProducerNode.java +++ b/source/mircoders/producer/IndexingProducerNode.java @@ -1,5 +1,4 @@ -/* - * Copyright (C) 2001, 2002 The Mir-coders group +/* Copyright (C) 2001, 2002 The Mir-coders group * * This file is part of Mir. * @@ -94,6 +93,7 @@ public class IndexingProducerNode implements ProducerNode { if (! (IndexReader.indexExists(indexPath))){ aLogger.error("Didn't find existing index, so I'm making one in "+indexPath); IndexWriter indexCreator = new IndexWriter(indexPath,new StandardAnalyzer(),true); + indexCreator.close(); } indexReader = IndexReader.open(indexPath);