Skip to content

Commit

Permalink
Fixes #121 - Search fails with Apache Lucene (maxClauseCount is set t…
Browse files Browse the repository at this point in the history
…o 1024).
  • Loading branch information
simonbrowndotje committed Jun 25, 2024
1 parent 743f6c6 commit ae03bf1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public void start() {
IndexWriterConfig iwc = new IndexWriterConfig(analyzer);
iwc.setOpenMode(IndexWriterConfig.OpenMode.CREATE_OR_APPEND);

IndexSearcher.setMaxClauseCount(9999);

try {
Directory dir = FSDirectory.open(indexDirectory.toPath());
indexWriter = new IndexWriter(dir, iwc);
Expand Down

0 comments on commit ae03bf1

Please sign in to comment.