Summary
We were able to execute select queries on Solr using the Solarium library. We explored the basic parameters for the select
query. We saw how to use a configuration array to create a Solarium query. We were able to iterate through the results after executing a query. We extended the query class to re-use queries. We were able to do pagination on our existing query and were able to change the sorting parameters without recreating the complete query again. We saw DisMax and eDisMax query modes in Solr. We also got an idea of the component based structure of Solarium library. We explored the query parameters for DisMax and eDisMax queries. We also saw how to use an eDisMax query to do "recent first" date boosting on Solr. Finally, we saw some advanced query parameters for DisMax and eDisMax in Solarium.
In the next chapter, we will go deeper into advanced queries based on different criteria from our query result.