Magento – How to do a solr search programmatically

ee-1.12magento-enterprisesolr

Following problem:
I use magento enterprise edition with solr search. That works great!
Now I'd like to do a search with my own query string programmatically.
How can I achieve that?

To be a bit more specific: How can I use my own query string and get the collection out of the solr search within my block?

Thanks for any help and/or suggestions!

Best Answer

Have a look on \Enterprise_Search_Model_Client_Solr::searchSuggestions and use this method for searching.

Related Topic