Select relevancy score in Solr

If you want to retrieve the “score” column from solr (which shows relevancy), you need to add a field list parameter to the URL:

fl=score

If you only add this, you won’t get any of your columns, so you want to add *, to get the rest of them:

fl=score,*

Alternately, you can list the columns you want manually, which will likely significantly reduce the payload size of your download:

fl=score,score,id,word_count,audio_length

Interested in Solr? I send out weekly, personalized emails with articles and conference talks. Click here to see an example and subscribe.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

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