floriansemm / SolrBundle

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

Support edismax query #194

Open gadelkareem opened 5 years ago

gadelkareem commented 5 years ago

The edismax query described here https://solarium.readthedocs.io/en/stable/queries/select-query/building-a-select-query/components/edismax-component/ is not working directly with the bundle. I have to use getClient() to communicate directly with solarium ex:

            $query = $solr->getClient()->createSelect();
            $edismax = $query->getEDisMax();
            $edismax->setQueryFields("title^10.0 desc^9.0 ");
            $query->setQuery($globalQuery);
           $resultset = $solr->getClient()->select($query);

using $solr->query($query); strips away all the edismax values.