Skip to content

Commit 1122cd3

Browse files
committed
Indexation seems OK
1 parent 0b0083a commit 1122cd3

9 files changed

Lines changed: 520 additions & 1489 deletions

File tree

common/src/java/com/github/oeuvres/alix/lucene/FlucText.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public synchronized FieldStats fieldStats()
146146
return fieldStatsHolder.get(
147147
() -> FieldStats.exists(sideDir, name()),
148148
() -> FieldStats.build(reader, sideDir, name(), Report.ReportNull.INSTANCE),
149-
() -> FieldStats.open(reader, sideDir, name())
149+
() -> FieldStats.open(reader, sideDir, name(), null)
150150
);
151151
}
152152

common/src/java/com/github/oeuvres/alix/lucene/terms/FieldStats.java

Lines changed: 516 additions & 441 deletions
Large diffs are not rendered by default.

common/src/java/com/github/oeuvres/alix/lucene/terms/TopTerms.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
*
4141
* <h2>Token denominator</h2>
4242
* <p>
43-
* Keyness scoring uses {@link FieldStats#tokens()} as the field-side
44-
* denominator, not {@link FieldStats#width()}. This is consistent with
43+
* Keyness scoring uses {@link FieldStats#fieldTokens()} as the field-side
44+
* denominator, not {@link FieldStats#fieldWidth()}. This is consistent with
4545
* {@link TermCollector}, which sums postings frequencies (token counts,
4646
* not positions) to produce {@link #focusTotal}. A position-based
4747
* denominator on one side and a token-based one on the other would make
@@ -152,7 +152,7 @@ public Iterator<TermEntry> iterator() {
152152

153153
/**
154154
* Ranks terms by their over-representation in the focus subset relative
155-
* to the full field, using {@link FieldStats#tokens()} as the field-side
155+
* to the full field, using {@link FieldStats#fieldTokens()} as the field-side
156156
* denominator.
157157
*
158158
* <p>

test/src/test/java/com/github/oeuvres/alix/lucene/search/AbstractFieldStringTest.java

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)