From 26ffeb06b633078e19571c53d9bdb53de9acf989 Mon Sep 17 00:00:00 2001 From: john Date: Mon, 13 Jan 2003 22:42:35 +0000 Subject: [PATCH] stupid mistake...forgot to close the IndexWrite which creates an index if one doesn't exist --- source/mircoders/producer/IndexingProducerNode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.11.0