Skip to content

Commit 933f13c

Browse files
committed
[bugfix] Correct the capitalisation and spelling of 'Lucene' in error messages
1 parent b255f33 commit 933f13c

File tree

1 file changed

+6
-6
lines changed
  • extensions/indexes/lucene/src/main/java/org/exist/indexing/lucene

1 file changed

+6
-6
lines changed

extensions/indexes/lucene/src/main/java/org/exist/indexing/lucene/LuceneIndex.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void configure(BrokerPool pool, Path dataDir, Element config) throws Data
9292
try {
9393
bufferSize = Double.parseDouble(bufferSizeParam);
9494
} catch (NumberFormatException e) {
95-
LOG.warn("Invalid buffer size setting for lucene index: {}", bufferSizeParam, e);
95+
LOG.warn("Invalid buffer size setting for Lucene index: {}", bufferSizeParam, e);
9696
}
9797

9898
if (LOG.isDebugEnabled())
@@ -138,7 +138,7 @@ public void open() throws DatabaseConfigurationException {
138138
searcherManager = new SearcherTaxonomyManager(cachedWriter, true, null, cachedTaxonomyWriter);
139139
readerManager = new ReaderManager(cachedWriter, true);
140140
} catch (IOException e) {
141-
throw new DatabaseConfigurationException("Exception while reading lucene index directory: " +
141+
throw new DatabaseConfigurationException("Exception while reading Lucene index directory: " +
142142
e.getMessage(), e);
143143
} finally {
144144
releaseWriter(writer);
@@ -167,7 +167,7 @@ public synchronized void close() throws DBException {
167167
taxoDirectory.close();
168168
directory.close();
169169
} catch (IOException e) {
170-
throw new DBException("Caught exception while closing lucene indexes: " + e.getMessage());
170+
throw new DBException("Caught exception while closing Lucene indexes: " + e.getMessage());
171171
}
172172
}
173173

@@ -229,17 +229,17 @@ protected void commit() {
229229
}
230230
try {
231231
if(LOG.isDebugEnabled()) {
232-
LOG.debug("Committing lucene index");
232+
LOG.debug("Committing Lucene index");
233233
}
234234
if (cachedWriter != null) {
235235
cachedTaxonomyWriter.commit();
236236
cachedWriter.commit();
237237
}
238238
needsCommit = false;
239239
} catch(CorruptIndexException cie) {
240-
LOG.error("Detected corrupt Lucence index on writer release and commit: {}", cie.getMessage(), cie);
240+
LOG.error("Detected corrupt Lucene index on writer release and commit: {}", cie.getMessage(), cie);
241241
} catch(IOException ioe) {
242-
LOG.error("Detected Lucence index issue on writer release and commit: {}", ioe.getMessage(), ioe);
242+
LOG.error("Detected Lucene index issue on writer release and commit: {}", ioe.getMessage(), ioe);
243243
}
244244
}
245245

0 commit comments

Comments
 (0)