FT.AGGREGATE score sorting?

26 views
Skip to first unread message

Άγγελος Δημόπουλος

unread,
Mar 28, 2020, 11:36:34 AM3/28/20
to RediSearch Discussion Forum
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?

Mark Nunberg

unread,
Mar 29, 2020, 8:11:50 AM3/29/20
to Άγγελος Δημόπουλος, RediSearch Discussion Forum
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

--
You received this message because you are subscribed to the Google Groups "RediSearch Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redisearch+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redisearch/5785554f-86b4-4426-81d0-7d7d8ca29167%40googlegroups.com.



Disclaimer

The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business. Providing a safer and more useful place for your human generated data. Specializing in; Security, archiving and compliance. To find out more Click Here.

Άγγελος Δημόπουλος

unread,
Mar 29, 2020, 10:35:30 AM3/29/20
to RediSearch Discussion Forum
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 έγραψε:
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
On Mar 28, 2020, at 11:36 AM, Άγγελος Δημόπουλος <dimo...@gmail.com> wrote:

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?

--
You received this message because you are subscribed to the Google Groups "RediSearch Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages