How can i calculate cost of query?

I want to create a functionality for calculating the cost of a query before it is launched, but I am interested in how to make very different queries. Suppose you think that 1 word = 1, operator "should" = 1,2, "mus"t = 1,15, that is: A or B or C = 3 * 1,2

Hello @Zoree

If possible could you please try to add more details as to what is the expectation?

To get the cost of query in DevTools we do have SearchProfiler where it can share the complete details of the query execution with time.

Thanks!!