alephdata / aleph

Search and browse documents and data; find the people and companies you look for.
http://docs.aleph.occrp.org
MIT License
2.04k stars 272 forks source link

BUG: Date field doesn't work for non-emails - neither filtering on the side pane nor sorting #2675

Open Physik310 opened 2 years ago

Physik310 commented 2 years ago

Describe the bug The date field doesn't not work for non-e-mail-types such as pdf. When searching the side pane is shown where you can filter on dates using the histogram. The time line shows only the dates for e-mail documents. When adding the dates column and clicking on it for sorting, the sorting will only work for e-mails.

To Reproduce Steps to reproduce the behavior:

  1. Go to the starting page after logging in.
  2. Click on the searchfield at the top and run an example search.
  3. Add the dates column field via the configure columns button. After adding the column, click on it for sorting. You will realize it does not sort non-emails. The dates field for pdf are not filled. For excel tables they are filled but the sorting doesn't work.
  4. The Dates-histogram on the left side pane shows only the dates for e-mails, as well.

Expected behavior The dates column should sort all dates given in that column and not only the e-mails.

Aleph version 3.12.6

Screenshots grafik

Additional context In the elasticsearch database I can see the dates is not a properties field for non-emails. Might this be the reason?

Physik310 commented 2 years ago

I just tested the issue on the newest version 3.12.7 with a fresh checkout. I am using a Macbook Pro but I have the issue also on a linux server.

Rosencrantz commented 2 years ago

Thanks for raising this issue @Physik310. It's much appreciated. I'm going to add this to the backlog

Rosencrantz commented 2 years ago

Note. Might be related to #2500

tillprochaska commented 1 year ago

Possibly related #2315