Feature functions
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 statements to perform complex sorts.
query_term_count: Returns the number of query terms after analysis
1. Syntax
query_term_count()
2. Parameters
None
3. Return value
The return value is of the INT type.
4. Scenarios
Scenario 1: Use if (query_term_count() > 10, 0.5, 1)
to determine how to process data based on the number of terms in a search query.
5. Usage notes
You can use this feature function only in fine sort expressions.