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 2023/12/20 13:32:24 UTC

(lucene) branch branch_9x updated (a63d4599f48 -> db5eeb9fcc3)

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

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


    from a63d4599f48 Modernize LineFileDocs. (#12929)
     new 4c4881d25c9 Improve Javadoc for DocValuesConsumer (#12952)
     new db5eeb9fcc3 Fix CheckIndex to correctly flag the automaton as binary.

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:
 .../src/java/org/apache/lucene/codecs/DocValuesConsumer.java     | 2 +-
 lucene/core/src/java/org/apache/lucene/index/CheckIndex.java     | 9 ++++++---
 2 files changed, 7 insertions(+), 4 deletions(-)


(lucene) 01/02: Improve Javadoc for DocValuesConsumer (#12952)

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

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

commit 4c4881d25c97ddacac2efa4a702288c1392d84f4
Author: Zhang Chao <80...@qq.com>
AuthorDate: Wed Dec 20 20:40:44 2023 +0800

    Improve Javadoc for DocValuesConsumer (#12952)
---
 lucene/core/src/java/org/apache/lucene/codecs/DocValuesConsumer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/core/src/java/org/apache/lucene/codecs/DocValuesConsumer.java b/lucene/core/src/java/org/apache/lucene/codecs/DocValuesConsumer.java
index 4b494a042e2..224370cf6b2 100644
--- a/lucene/core/src/java/org/apache/lucene/codecs/DocValuesConsumer.java
+++ b/lucene/core/src/java/org/apache/lucene/codecs/DocValuesConsumer.java
@@ -55,7 +55,7 @@ import org.apache.lucene.util.packed.PackedInts;
  * <p>The lifecycle is:
  *
  * <ol>
- *   <li>DocValuesConsumer is created by {@link NormsFormat#normsConsumer(SegmentWriteState)}.
+ *   <li>DocValuesConsumer is created by {@link DocValuesFormat#fieldsConsumer(SegmentWriteState)}.
  *   <li>{@link #addNumericField}, {@link #addBinaryField}, {@link #addSortedField}, {@link
  *       #addSortedSetField}, or {@link #addSortedNumericField} are called for each Numeric, Binary,
  *       Sorted, SortedSet, or SortedNumeric docvalues field. The API is a "pull" rather than


(lucene) 02/02: Fix CheckIndex to correctly flag the automaton as binary.

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

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

commit db5eeb9fcc3d5618325ffafab19e9bd91f9015bd
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Wed Dec 20 14:24:54 2023 +0100

    Fix CheckIndex to correctly flag the automaton as binary.
---
 lucene/core/src/java/org/apache/lucene/index/CheckIndex.java | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java b/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java
index 5d5772fbc33..dd662572de7 100644
--- a/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java
+++ b/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java
@@ -2335,7 +2335,7 @@ public final class CheckIndex implements Closeable {
         startTerm = new BytesRef();
         checkTermsIntersect(terms, automaton, startTerm);
 
-        automaton = Automata.makeAnyBinary();
+        automaton = Automata.makeNonEmptyBinary();
         startTerm = new BytesRef(new byte[] {'l'});
         checkTermsIntersect(terms, automaton, startTerm);
 
@@ -2386,8 +2386,11 @@ public final class CheckIndex implements Closeable {
       throws IOException {
     TermsEnum allTerms = terms.iterator();
     automaton = Operations.determinize(automaton, Operations.DEFAULT_DETERMINIZE_WORK_LIMIT);
-    CompiledAutomaton compiledAutomaton = new CompiledAutomaton(automaton);
-    ByteRunAutomaton runAutomaton = new ByteRunAutomaton(automaton);
+    CompiledAutomaton compiledAutomaton =
+        new CompiledAutomaton(
+            automaton, null, true, Operations.DEFAULT_DETERMINIZE_WORK_LIMIT, true);
+    ByteRunAutomaton runAutomaton =
+        new ByteRunAutomaton(automaton, true, Operations.DEFAULT_DETERMINIZE_WORK_LIMIT);
     TermsEnum filteredTerms = terms.intersect(compiledAutomaton, startTerm);
     BytesRef term;
     if (startTerm != null) {