简体   繁体   中英

How can I add to the solr score of each document a value from an external file field?

I am using solr 4.5 and I have an external file with values for some of the documents of my index.

The question is what is the query syntax in order to add to the score calculated for each document a value from an external file field?

Alternatively, could we sort on the score+value from external file filed of each document?

Thank you,

Solved by including bf=sum("external field") on the edismax

You can add a field similar to score for each document. That value can be calculated from external file field for each document and store to Solr. Also, you can sort your result on that field.

Solr scoring is it's internal mechanism for each Solr document to give some rank.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM