Hi team, is there any support for something like f...
# community-help
a
Hi team, is there any support for something like function_score/script_score from ES in typesense?
a
Hey @Apoorv Singh While Typesense does not let you write custom ranking programs, it offers several built in knobs that cover most of the reasons people use that ES feature. ES lets you write your own recipe from scratch. Typesense gives you pre made recipe cards you can combine. The pre made cards Typesense offers: 1. "If the product is in stock, boost it. If it is from brand Nike, boost it more." (this is
_eval
) 2. "The closer the product's release date is to today, the higher it ranks." (this is decay functions: gauss, exp, linear) 3. "Sort by popularity number, high to low." (direct field sort) 4. "Rank by how well the text matched the search." (text match) 5. "Find visually or semantically similar items." (vector search) 6. "For the query 'shoes', always show these 3 products on top." (curations / overrides)
If you need to manipulate data that is stored, then you'd need to make it in the client side.