Hi Community, This is what I want to achieve:
Suppose that we have 3 locations (name, type, population): 1) Rajasthan, State, -1 2) Udaipur, City, 451K 3) Udaipura, City, 13K For a search query that will yield all three of these in the result, I want the result to be ordered the same as written above. That is, I want the type=State first and then City. Within type=City, I want results to be boosted by population. When we were on Solr 6.5, with query sort=type (take it as an enum field or change to numeric) and boost=population, we were getting expected results. We recently upgraded to 8.24 but noticed this result for the same query today: 1) Rajasthan, State, -1 2) Udaipura, City, 13K 3) Udaipur, City, 451K Looks like sorting is overriding the boost and tie-breaking by docid now. I know that sorting was always supposed to override everything but I'm sure about the change in result set. For a workaround, we can do sort=type, population desc and remove boosts. Boosts don't impact query time much but in this case, I guess, I will need to reindex with docValues=true for the population. I also read about other ways like function queries. Any comments over this? -- -- Regards, *Paras Lehana* [65871] Development Engineer, *Auto-Suggest*, IndiaMART InterMESH Ltd, 11th Floor, Tower 2, Assotech Business Cresterra, Plot No. 22, Sector 135, Noida, Uttar Pradesh, India 201305 Mob.: +91-9560911996 Work: 0120-4056700 | Extn: *1196* -- * * <https://www.facebook.com/IndiaMART/videos/578196442936091/>