floriansemm / SolrBundle

Solr-Integration into Symfony and Doctrine2
http://floriansemm.github.io/SolrBundle
MIT License
123 stars 73 forks source link

Sort search by term frequency #113

Closed Zomorrouda closed 8 years ago

Zomorrouda commented 8 years ago

Hello, can i sort my search by term frenquency on a field like this :

$query = $this->get('solr.client')->createQuery('MyBundle:MyEntity');
$query->addSort("termfreq(\"MyField\",$keyWord)","asc");
floriansemm commented 8 years ago

This is a feature of the solarium lib