Top 10% of results

Hello!

I'm looking for a setup that actually returns the top 10% of results of a certain query. After the result we also want to sort the subset.

Is there an easy way to do this?

Can anyone provide a simple example for this.
I was thinking scaling the results scores between 0 and 1.0 and basically sepcifiying min_score to 0.9.

Thanks,
Peter

That won't work as the scoring for a result is based entirely on the rest of the results in the set, so it's not on a scale from 0 to 1.

What's the top 10% anyway? The top of everything, of a specific number?