Use the sort parameter with your query and pass the fields in the order in which you want to sort them. So if you want topic > subtopic > index > drug > content all ascending, your sort parameter will look like &sort=topic asc,subtopic asc,index asc,drug asc,content asc
On Mon, 15 Feb 2016, 18:17 Nitin.K <nitin.kanu...@adi-mps.com> wrote: > I have five fields in SOLR > topic_title > subtopic_title > index_terms - Multivalued > drug - Multivalued > content > > - Now, I want to rank the documents with all these fields; I want all those > documents that are haivng the search term in topic_title will come first in > the order > then documents having search term in subtopic title and then so on. > > Example : If two documents are having search term in topic_title then the > solr should look for subtopic_ title similarly > if the search term is present in both topic_title and subtopic_title fields > then it should look for index term and so on; to decide the ranking order > > - I dont want to consider the no. of occurrences in multivalued fields but > if the two documents are having search term in topic_title, subtopic_title, > index_term and drug then the documents > should be ranked in the order of no. of occurrences inside the content > field. > > > Kindly help in this. I will be really thankful > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/SOLR-ranking-tp4257367.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Regards, Binoy Dalal