How to create a list with search rank sort as output

Hi - I am using a multi-line input and searching for values that come through that are separated by a semi colon.

I am using the general $search option to find matching sets of values.

How can I rank the output based on search strength, however? Especially for multiple terms?

For instance imagine a database of ikea parts and you need to find the best match for multiple parts but also still provide some alternatives just in case

2 replies