Skip to content

Commit

Permalink
Merge pull request #4539 from apache/nouveau-lucene9-subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
rnewson committed Apr 24, 2023
2 parents a28b75a + 4c741a9 commit 6f56848
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void updateDoc(@PathParam("name") String name, @PathParam("docId") String
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);
Expand Down

0 comments on commit 6f56848

Please sign in to comment.