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:23 UTC
[couchdb] branch nouveau-lucene9-subdir created (now 4c741a94d)
This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a change to branch nouveau-lucene9-subdir
in repository https://gitbox.apache.org/repos/asf/couchdb.git
at 4c741a94d put lucene 9 indexes in subdir
This branch includes the following new commits:
new 4c741a94d put lucene 9 indexes in subdir
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[couchdb] 01/01: put lucene 9 indexes in subdir
Posted by rn...@apache.org.
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);