Open NickAkhmetov opened 2 weeks ago
Due to dynamic mapping, the field publication_date
is currently mapped as a text
field, but it is recommended to map it as a long
field to properly handle epoch timestamps. To facilitate sorting on publication_date
without changing the mapping, one can utilize the publication_date.keyword
field. However, for improved efficiency and accuracy, it is advisable to directly map the publication_date
field as a long
type without the need for a separate keyword
field.
@lchoy Thanks for pointing out that .keyword
solves this issue! Since there aren't too many publications currently in the system, that workaround should suffice for the time being, but this would definitely still be valuable in the long run.
We are currently not sorting the publications results on the publications page: https://portal.hubmapconsortium.org/publications
As a result, the publications are displayed in a different order with each page load.
To address this, we would like to sort the results by the publication date; however, this is currently not supported by the data model, as the
publication_date
field is not marked as a data field.Query:
Response: