#community-help

Finding Min and Max Values of Key with Search Results

TLDR ohm wanted to find min and max key values, Kishore Nallan suggested faceting, which worked.

Powered by Struct AI
+11
4
6mo
Solved
Join the chat
Mar 21, 2023 (6 months ago)
ohm
Photo of md5-7ce63511871a804fb886b87e9dcfb30f
ohm
09:55 AM
I want to return the min and max value of key (float datatype) along with the search results. how can do it?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:38 AM
You could use faceting which returns stats for the faceted field.
ohm
Photo of md5-7ce63511871a804fb886b87e9dcfb30f
ohm
11:38 AM
let me check, thanks
12:10
ohm
12:10 PM
it worked, thanks
+11