Finding Min and Max Price from Imported Data
TLDR Amrit asked how to get the min and max price from an imported dataset. Kishore Nallan suggested faceting on the price field.
Powered by Struct AI
5
7mo
May 19, 2023 (7 months ago)
Amrit
Amrit
11:03 AMi have imported products data
i want min and max price from the response (how will i get this)
show that i can show in frontend for filter
i want min and max price from the response (how will i get this)
show that i can show in frontend for filter
Kishore Nallan
Kishore Nallan
11:03 AMFacet on the field. It will be available in the facet stats in the response
Amrit
Amrit
11:04 AMyou mean facet on price field
Kishore Nallan
Kishore Nallan
11:04 AMYes
Amrit
Amrit
11:04 AMThank you
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3015 threads (79% resolved)
Similar Threads
Finding Min and Max Values of Key with Search Results
ohm wanted to find min and max key values, Kishore Nallan suggested faceting, which worked.
4
9mo
Setting dynamic range faceting in Typesense
Jacob requested dynamic range faceting in Typesense, and explanation for fetching max/min values. Kishore Nallan clarified pricing bucket sizes were user dependent and explained the stats return as part of facet results.
8
3mo
Quick Retrieval of Min, Max, and Median Values from Search Query
Prajjval sought a more efficient way to find the min, max, and median values from a search query result. Jason suggested faceting. However, Prajjval clarified that faceting prolonged document upload due to a data type error, which was later resolved.
6
33mo