PySolr : How to boost a field for Solr document

Adding a Quick note – PySolr : How to boost a field for Solr document

Index time boosting

conn.add(docs, boost={'author': '2.0',})

Query time boosting

qf=title^5 content^2 comments^0.5

Read:

http://java.dzone.com/articles/options-tune-document%E2%80%99s

 

 

Yash Sharma is a Big Data & Machine Learning Engineer, A newbie OpenSource contributor, Plays guitar and enjoys teaching as part time hobby.
Talk to Yash about Distributed Systems and Data platform designs.

Leave a Reply

Your email address will not be published. Required fields are marked *