I want to indicate the order of preferences for the conditions, for example, if there are three conditions that need to be compared, and I want the total number of results to be 20, then first it meets the first condition, and if it gives 20 results, then the other conditions are not compared, and if the first conditions give less than 20 results, then it corresponds to the second condition, and if the total number of results of the first and second states is more than 20, then it gives the first 20 results and does not meet the third condition, and the same will happen for I am the third condition. If all matches do not give 20 results, then it combines the result of the three conditions and adds some random result to make it 20.
source
share