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
Looking for a new book to read? My younger sister is writing an imaginative series of sci-fi novels, set in a futuristic world with a novel form of space travel.
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 *