mirror of https://github.com/apache/lucene.git
SOLR-10270: Stop exporting _version_ during GROUP BY aggregations in map_reduce mode
This commit is contained in:
parent
2bce98b0c1
commit
22f91ba0ca
|
@ -330,24 +330,16 @@ class SolrTable extends AbstractQueryableTable implements TranslatableTable {
|
|||
|
||||
private String getFields(Set<String> fieldSet) {
|
||||
StringBuilder buf = new StringBuilder();
|
||||
boolean appendVersion = true;
|
||||
for(String field : fieldSet) {
|
||||
|
||||
if(buf.length() > 0) {
|
||||
buf.append(",");
|
||||
}
|
||||
|
||||
if(field.equals("_version_")) {
|
||||
appendVersion = false;
|
||||
}
|
||||
|
||||
buf.append(field);
|
||||
}
|
||||
|
||||
if(appendVersion){
|
||||
buf.append(",_version_");
|
||||
}
|
||||
|
||||
return buf.toString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue