Skip to content

Commit

Permalink
fix: account for TAG fields in JSON not being sortable
Browse files Browse the repository at this point in the history
  • Loading branch information
bsbodden committed Apr 8, 2024
1 parent e8d124c commit 72620ef
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -766,12 +766,12 @@ private Optional<SchemaField> createIndexedFieldForReferenceIdField( //
}

if (Number.class.isAssignableFrom(idClass)) {
result = Optional.of(NumericField.of(fieldName).sortable());
result = Optional.of(isDocument ? NumericField.of(fieldName) : NumericField.of(fieldName).sortable());
} else {
result = Optional.of(TagField.of(fieldName).separator('|').sortable());
result = Optional.of(isDocument ? TagField.of(fieldName).separator('|') : TagField.of(fieldName).separator('|').sortable());
}
} else {
result = Optional.of(TagField.of(fieldName).separator('|').sortable());
result = Optional.of(isDocument ? TagField.of(fieldName).separator('|') : TagField.of(fieldName).separator('|').sortable());
}

return result;
Expand Down

0 comments on commit 72620ef

Please sign in to comment.