SolrBundle icon indicating copy to clipboard operation
SolrBundle copied to clipboard

Support edismax query

Open gadelkareem opened this issue 6 years ago • 0 comments

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.

gadelkareem avatar Jan 31 '19 05:01 gadelkareem