简体   繁体   中英

How can I rank results lower in SOLR if two fields match at the same time?

I have records with a "title" and a "brand" fields and i query both fields.

Sometimes a record has the brand in the title, which will result in higher scores, but I want to score them the same.

How can i rate records lower were both fields match?

I solved it by removing all occurrences of the brand in the title (and other fields) when writing the index.

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