You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2022/01/05 15:39:36 UTC

[lucene] branch main updated (8fa7412 -> 7fdba36)

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

jpountz pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git.


    from 8fa7412  LUCENE-10291: Only read/write postings when there is at least one indexed field (#539)
     new f9ff620  LUCENE-10291: CHANGES entry
     new 7fdba36  LUCENE-10291: Bug fix.

The 2 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.


Summary of changes:
 lucene/CHANGES.txt                                                | 8 +++++++-
 .../java/org/apache/lucene/tests/index/MergeReaderWrapper.java    | 3 +++
 2 files changed, 10 insertions(+), 1 deletion(-)

[lucene] 01/02: LUCENE-10291: CHANGES entry

Posted by jp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jpountz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git

commit f9ff620ec6b368f94669eb71c5f0c92ac89e6951
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Wed Jan 5 16:30:58 2022 +0100

    LUCENE-10291: CHANGES entry
---
 lucene/CHANGES.txt | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 8d18a40..11221ad 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -119,7 +119,7 @@ Improvements
 
 * LUCENE-10229: Unify behaviour of match offsets for interval queries on fields
   with or without offsets enabled. (Patrick Zhai)
-  
+
 Optimizations
 ---------------------
 
@@ -140,6 +140,12 @@ Optimizations
 
 * LUCENE-10346: Optimize facet counting for single-valued TaxonomyFacetCounts. (Guo Feng)
 
+Changes in runtime behavior
+---------------------
+
+* LUCENE-10291: Lucene now only writes files for terms and postings if at least
+  one field is indexed with postings. (Yannick Welsch)
+
 Bug Fixes
 ---------------------
 

[lucene] 02/02: LUCENE-10291: Bug fix.

Posted by jp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jpountz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git

commit 7fdba369415a3882df5f83ce6197a2f638b37fad
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Wed Jan 5 16:37:06 2022 +0100

    LUCENE-10291: Bug fix.
---
 .../src/java/org/apache/lucene/tests/index/MergeReaderWrapper.java     | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/MergeReaderWrapper.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/MergeReaderWrapper.java
index ba7e97f..c6da747 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/MergeReaderWrapper.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/MergeReaderWrapper.java
@@ -95,6 +95,9 @@ class MergeReaderWrapper extends LeafReader {
     // We could check the FieldInfo IndexOptions but there's no point since
     //   PostingsReader will simply return null for fields that don't exist or that have no terms
     // index.
+    if (fields == null) {
+      return null;
+    }
     return fields.terms(field);
   }