You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2023/04/21 22:42:30 UTC
[lucene] branch branch_9x updated: Remove statement that SSDV facets aren't hierarchical (#12232)
This is an automated email from the ASF dual-hosted git repository.
mikemccand pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new 45d84484412 Remove statement that SSDV facets aren't hierarchical (#12232)
45d84484412 is described below
commit 45d84484412fd9dc4a6f3e7db93e9858e66f57e4
Author: Stefan Vodita <41...@users.noreply.github.com>
AuthorDate: Fri Apr 21 23:40:08 2023 +0100
Remove statement that SSDV facets aren't hierarchical (#12232)
---
.../lucene/facet/sortedset/SortedSetDocValuesFacetCounts.java | 2 --
.../lucene/facet/sortedset/SortedSetDocValuesReaderState.java | 8 +++-----
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/lucene/facet/src/java/org/apache/lucene/facet/sortedset/SortedSetDocValuesFacetCounts.java b/lucene/facet/src/java/org/apache/lucene/facet/sortedset/SortedSetDocValuesFacetCounts.java
index a40a3b3794f..f167bf3b68b 100644
--- a/lucene/facet/src/java/org/apache/lucene/facet/sortedset/SortedSetDocValuesFacetCounts.java
+++ b/lucene/facet/src/java/org/apache/lucene/facet/sortedset/SortedSetDocValuesFacetCounts.java
@@ -43,8 +43,6 @@ import org.apache.lucene.util.LongValues;
* Compute facets counts from previously indexed {@link SortedSetDocValuesFacetField}, without
* require a separate taxonomy index. Faceting is a bit slower (~25%), and there is added cost on
* every {@link IndexReader} open to create a new {@link SortedSetDocValuesReaderState}.
- * Furthermore, this does not support hierarchical facets; only flat (dimension + label) facets, but
- * it uses quite a bit less RAM to do so.
*
* <p><b>NOTE</b>: this class should be instantiated and then used from a single thread, because it
* holds a thread-private instance of {@link SortedSetDocValues}.
diff --git a/lucene/facet/src/java/org/apache/lucene/facet/sortedset/SortedSetDocValuesReaderState.java b/lucene/facet/src/java/org/apache/lucene/facet/sortedset/SortedSetDocValuesReaderState.java
index 0d712d599f2..074f87ee5f8 100644
--- a/lucene/facet/src/java/org/apache/lucene/facet/sortedset/SortedSetDocValuesReaderState.java
+++ b/lucene/facet/src/java/org/apache/lucene/facet/sortedset/SortedSetDocValuesReaderState.java
@@ -28,11 +28,9 @@ import org.apache.lucene.util.FixedBitSet;
/**
* Wraps a {@link IndexReader} and resolves ords using existing {@link SortedSetDocValues} APIs
- * without a separate taxonomy index. This only supports flat facets (dimension + label), and it
- * makes faceting a bit slower, adds some cost at reopen time, but avoids managing the separate
- * taxonomy index. It also requires less RAM than the taxonomy index, as it manages the flat
- * (2-level) hierarchy more efficiently. In addition, the tie-break during faceting is now
- * meaningful (in label sorted order).
+ * without a separate taxonomy index. This makes faceting a bit slower, adds some cost at reopen
+ * time, but avoids managing the separate taxonomy index. In addition, the tie-break during faceting
+ * is now meaningful (in label sorted order).
*
* <p><b>NOTE</b>: creating an instance of this class is somewhat costly, as it computes per-segment
* ordinal maps, so you should create it once and re-use that one instance for a given {@link