Apache solr domain priority priority

I scanned 3 domains (domain01, domain02 and domain03) with a nut. I want to get all messages that contain a specific keyword (eg "league champion"), and the results first show messages from domain02, next messages from domain01, and latest messages from domain03. I just want to sort them in priority by domain

Is there a way to prioritize domains?

+3


source to share


1 answer


If you always have the same order of domains, then you can use either incrementing the index time index, or sorting the query time by domain (or domain name) and then by count.

If the ordering of the domain depends on the query, you can use a QueryElevationComponent , although I think you need to provide a complete list of ids, then for each height rule and may not support consistency.



You can also write your own custom function or component request (similar to the first query mark).

+2


source







All Articles