This is an automated email from the ASF dual-hosted git repository.
houston pushed a commit to branch branch_9_0
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9_0 by this push:
new 17e955f SOLR-15856: Fix Lucene bug in facet prefix (#700)
17e955f is described below
commit 17e955ff1abcd94388e5a0a8d6b8e71803d5f2ac
Author: Houston Putman <[email protected]>
AuthorDate: Thu Feb 24 18:43:42 2022 -0500
SOLR-15856: Fix Lucene bug in facet prefix (#700)
(cherry picked from commit b2d32ce120c695b8e1338d23220d9d3f03db2b54)
---
solr/core/src/java/org/apache/solr/request/DocValuesFacets.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/solr/core/src/java/org/apache/solr/request/DocValuesFacets.java
b/solr/core/src/java/org/apache/solr/request/DocValuesFacets.java
index c140a45..35e23f9 100644
--- a/solr/core/src/java/org/apache/solr/request/DocValuesFacets.java
+++ b/solr/core/src/java/org/apache/solr/request/DocValuesFacets.java
@@ -103,7 +103,7 @@ public class DocValuesFacets {
}
int startTermIndex, endTermIndex;
- if (prefix!=null) {
+ if (prefix!=null && si.getValueCount() > 0) {
startTermIndex = (int) si.lookupTerm(prefixRef.get());
if (startTermIndex<0) startTermIndex=-startTermIndex-1;
prefixRef.append(UnicodeUtil.BIG_TERM);