You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2023/04/24 10:26:24 UTC

[couchdb] 01/01: put lucene 9 indexes in subdir

This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a commit to branch nouveau-lucene9-subdir
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 4c741a94dafabfc367bf4dcbdf1c179d493747e0
Author: Robert Newson <rn...@apache.org>
AuthorDate: Mon Apr 24 11:25:26 2023 +0100

    put lucene 9 indexes in subdir
    
    makes it easier for the future 9->10 migration via rebuild.
---
 .../main/java/org/apache/couchdb/nouveau/resources/IndexResource.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nouveau/src/main/java/org/apache/couchdb/nouveau/resources/IndexResource.java b/nouveau/src/main/java/org/apache/couchdb/nouveau/resources/IndexResource.java
index 4273582b6..6eebeed20 100644
--- a/nouveau/src/main/java/org/apache/couchdb/nouveau/resources/IndexResource.java
+++ b/nouveau/src/main/java/org/apache/couchdb/nouveau/resources/IndexResource.java
@@ -121,7 +121,7 @@ public final class IndexResource {
     private IndexLoader indexLoader() {
         return (path, indexDefinition) -> {
             final Analyzer analyzer = Lucene9AnalyzerFactory.fromDefinition(indexDefinition);
-            final Directory dir = new DirectIODirectory(FSDirectory.open(path));
+            final Directory dir = new DirectIODirectory(FSDirectory.open(path.resolve("9")));
             final IndexWriterConfig config = new IndexWriterConfig(analyzer);
             config.setUseCompoundFile(false);
             final IndexWriter writer = new IndexWriter(dir, config);