FT.AGGREGATE score sorting?

Hello,

As documented FT.SEARCH sort its results by document score, by default. But using WITHSCORES with FT.AGGREGATE i get always 0 as score.

So, is score sorting applied with FT.AGGREGATE by default as well and if not, is it a way we can achive this?

What kind of query are you issuing for FT.AGGREGATE that would make use of score sorting? Note that scoring does not make sense in the context of queries using GROUPBY/REDUCE

Lets say for example i have something like this.

FT.AGGREGATE idx “expression” APPLY @date+1 as test FILTER “@test>15”

I make a query, then use APPLY to trasform a property ,finaly make a post-query filter.

Will the results be sorted by score?

Τη Κυριακή, 29 Μαρτίου 2020 - 3:11:50 μ.μ. UTC+3, ο χρήστης Mark Nunberg έγραψε:

I am having similar problems with the WITHSCORES always returning 0 as the score with FT.AGGREGATE. Is this the desired outcome or a bug?