diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt index baa1c335a90..4759341b089 100644 --- a/lucene/CHANGES.txt +++ b/lucene/CHANGES.txt @@ -204,6 +204,8 @@ Improvements * LUCENE-9393: Make FunctionScoreQuery use ScoreMode.COMPLETE for creating the inner query weight when ScoreMode.TOP_DOCS is requested. (Tomás Fernández Löbbe) +* LUCENE-9392: Make FacetsConfig.DELIM_CHAR publicly accessible (Ankur Goel)) + Optimizations --------------------- diff --git a/lucene/facet/src/java/org/apache/lucene/facet/FacetsConfig.java b/lucene/facet/src/java/org/apache/lucene/facet/FacetsConfig.java index f958af18780..84f69d7bc0a 100644 --- a/lucene/facet/src/java/org/apache/lucene/facet/FacetsConfig.java +++ b/lucene/facet/src/java/org/apache/lucene/facet/FacetsConfig.java @@ -496,8 +496,15 @@ public class FacetsConfig { } } - // Joins the path components together: - private static final char DELIM_CHAR = '\u001F'; + /** + * Character used to join the category path components together into a single + * drill down term for indexing. Applications and unit-tests can reference this for + * creating their own drill-down terms, or use existing APIs (for example, + * {@link #pathToString}). + * + * @lucene.internal + */ + public static final char DELIM_CHAR = '\u001F'; // Escapes any occurrence of the path component inside the label: private static final char ESCAPE_CHAR = '\u001E';