iotashan / cfsolrlib

ColdFusion library for advanced Solr integration
MIT License
30 stars 16 forks source link

Ability to return score #15

Open tomchiverton opened 8 years ago

tomchiverton commented 8 years ago

I expected something like ampleSolrInstance.search(q=t,start=0,end=100,params={sort='score desc',fl=["id","name","title","score"]}) to change the fields returned to include each documents score, but it doesn't. Is 'params' not the place to pass in additional parameters ? I was trying to get back the same as doing http://localhost:8983/solr/select/?q=brown&fl=id,name,title,position,score&sort=score desc directly.

Reading the JavaDocs of ...solrj.SolrQuery wasn't very insightful sadly.