soprasteria / cybersecurity-dfm

Data Feed Manager (news watch orchestrator to predict topic with deepdetect and store cleaned text in elasticsearch)
GNU General Public License v3.0
40 stars 14 forks source link

Request /api/recent not using date sort #9

Closed trillejs closed 6 years ago

trillejs commented 6 years ago

When using the /api/recent request the date field is not used by Elastic. Change the query to put the sort in must and not in should resolves it.

acabrol commented 6 years ago

fixed in 3130a984541c2f53d54d1a9337fa93d89b01070b