holaplex / indexer

Index Solana data using a Geyser plugin (downstream service cluster)
https://holaplex.com
GNU Affero General Public License v3.0
169 stars 39 forks source link

#534: add featured collections (by volume) query #541

Closed austinmilt closed 2 years ago

austinmilt commented 2 years ago

This PR adds a query to get collections ordered by volume (sum of purchases in collection).

Changes

related #534

austinmilt commented 2 years ago

Looks good. Can we propagate the new pre_query_search_limit parameter to the other Meilisearch queries in query_root.rs?

@ray-kast The pre_query_search_limit should only be used when passing the results of Meilisearch to an SQL query. That's because this limit is a buffer to help increase the odds of getting consistent results on the SQL query after leveraging Meilisearch. Otherwise, the limit and offset provided in the API should be passed direct to Meilisearch. Currently the other search endpoints have limits and offsets, so no change needs to be made there.