How can I use range index in neo4j to support order by limit 1 and max functions? Is there any good solution for this problem?

  1. neo4j vesion 5.4
  2. I have created index

max or order by not used index

The query has no predicate (where clause) that specifically calls out time. Can you add the clause:

WHERE r.time IS NOT NULL

to the query?

Thank you It solved my problem