We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 331d5bb commit 7b2faeaCopy full SHA for 7b2faea
2 files changed
common/src/java/com/github/oeuvres/alix/lucene/spans/HistoListener.java
@@ -17,7 +17,9 @@ public HistoListener(final HistoNum histo)
17
{
18
this.histo = Objects.requireNonNull(histo);
19
histo.valueSpans = new int[histo.length()];
20
+ histo.valueDocs = new int[histo.length()];
21
histo.cols().add(Col.SPANS);
22
+ histo.cols().add(Col.DOCS);
23
}
24
25
@Override
@@ -37,6 +39,7 @@ public void endDoc(final int spanCount)
37
39
38
40
if (histoIndex < 0) return;
41
histo.valueSpans[histoIndex] += spanCount;
42
+ if (spanCount > 0) histo.valueDocs[histoIndex]++;
43
44
45
0 commit comments