Hi everyone :wave: We have a use case where we ne...
# community-help
s
Hi everyone 👋 We have a use case where we need to display an ordered list of suppliers based on the specific requirements of each incoming order. To achieve this, we compute a custom score dynamically for each supplier per order using our own ranking algorithm. We’re looking to understand: ➡️ How can we inject this custom ranking logic into Typesense, so that it uses our scores to return suppliers ranked according to our algorithm, instead of its default relevance-based scoring? For example, for an order
O1
, our algorithm might rank the suppliers as:
S1 > S2 > S3 > S4
which could be different from relevance based ordering. We want this exact order reflected in the search results. Any guidance or best practices on how to approach this with Typesense would be greatly appreciated! Note : We cannot calculate Score statically and index it as it needs to be calculated on the fly when an order is received from the customer. Thanks in advance 🙌