What are alternatives for query string to implement slope between phrases?

What are alternatives for query string to implement slope between phrases?

Is this related to What are the best ways to find near phrases? How to combine them to find near to nearest near? ))?

Yep. These questions are related.
I want to find more examples no how to use span_term.

It's best if you can keep your question to the one topic, it makes it easier for others to help you.