Hi, everyone.
I found that the index file of lucene8.7 is larger than the 7.7 version:
My data source: lucene/demo/src/test/org/apache/lucene/demo/test-files/docs
The index code is as follows:
  InputStream stream = Files.newInputStream(file)
  Document doc = new Document();
  Field pathField = new StringField("path", file.toString(), Field.Store.YES);
doc.add(pathField);
doc.add(new LongPoint("modified", lastModified));
doc.add(new TextField("contents", new BufferedReader(new 
InputStreamReader(stream, StandardCharsets.UTF_8))));


Index size
8.7: 136K
7.7: 116K
I guess it is caused by LUCENE-9027?
Can anyone tell me why?

Reply via email to