From c61d05f3eaf7b73687fbe1ad287d4309f3756d0f Mon Sep 17 00:00:00 2001 From: Justin Sweeney Date: Fri, 6 Oct 2023 13:16:27 -0400 Subject: [PATCH] Fixing glob pattern parsing to handling non docvaluesasstored fields for all field types except SortableTextField --- .../src/java/org/apache/solr/handler/export/ExportWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/core/src/java/org/apache/solr/handler/export/ExportWriter.java b/solr/core/src/java/org/apache/solr/handler/export/ExportWriter.java index b9ba566b356..6fec2368a0c 100644 --- a/solr/core/src/java/org/apache/solr/handler/export/ExportWriter.java +++ b/solr/core/src/java/org/apache/solr/handler/export/ExportWriter.java @@ -885,7 +885,7 @@ private void getGlobFields( SchemaField schemaField = searcher.getSchema().getField(fi.getName()); if (fieldsProcessed.add(fi.getName()) && schemaField.hasDocValues() - && schemaField.useDocValuesAsStored()) { + && (!(schemaField.getType() instanceof SortableTextField) || schemaField.useDocValuesAsStored())) { expandedFields.add(schemaField); } }