You can use feature functions in sort expressions. Most feature functions can be used only in fine sort expressions. You can combine various syntax and clauses to perform complex sorts.
query_term_count: returns the number of query terms after analysis
The return value is of the INT type.
Scenario 1: Use
if (query_term_count() > 10, 0.5, 1) to process queries based on the number of terms in the queries.
You can use this feature function only in fine sort expressions.