On 2022/03/29 02:25:51 gnandre wrote:

> I have a search interface that searches for videos. There is a filter there

> that can sort the results based on views for last hour, last day,

> last week, last month and last year. Is there a way to achieve this sorting

> without always needing to update the index? E.g. After each specific

> duration expires, all documents need to be indexed again for newly

> calculated values.This is too much indexing overload. (p.s I am doing

> atomic indexing for these fields already)



Hi,



you dont have to reindex to achieve a view by hour/day/week etc.

Why dont you use Filterqueries with Date Math ?



https://solr.apache.org/guide/8_11/working-with-dates.html



Best regards



Andreas Moll

Reply via email to