How to add search with Solr


You may also like...

  • HJ

    The article is great, but full of mistakes! Took me hours to find them. Check constants and see how they were used export.php.
    (for example it was defined DBPASS you used DB-PASSWORD)

  • Utkarsh Agrawal

    Its been almost a day, but could not fix the error below. I get it when i finish the steps of “Indexing data”:

    Select returned 5 rows.

    Fatal error: Uncaught exception
    ‘Apache_Solr_HttpTransportException’ with message ”500′ Status:
    Internal Server Error’ in
    /opt/lampp/htdocs/xx/SolrPHPCient/Apache/Solr/Service.php:364
    Stack trace:
    #0 /opt/lampp/htdocs/xx/SolrPHPCient/Apache/Solr/Service.php(669):
    Apache_Solr_Service->_sendRawPost(‘http://localhos…’, ‘add(‘addDocuments(Array)
    #3 {main}
    thrown in /opt/lampp/htdocs/xx/SolrPHPCient/Apache/Solr/Service.php on line 364

  • mb

    Iam stuck on the indexing data part

    every time i execute tthe code i get and error “Call to a member function fetch_object() on a non-object in ” for the code line below

    while ($result = $results->fetch_object())

    please help as iam stuck on this for a long time
    thanks in advance

  • Pawan Kumar

    Very good, awesome article, I am all done with your article
    thanks bro, you save my time alot, but few few mistake which is not a big issue

    Do you have same thing for cakePHP also ????
    You can reply me on pawan.oryxn@gmail.com

  • Faisal Mehmood

    what is SOLR_NAME??

  • vikash

    I have execute export.php file showing error

    Fatal error: Uncaught exception
    ‘Apache_Solr_HttpTransportException’ with message ”400′ Status: Bad
    Request’ in
    C:xampphtdocsajaximageslrSolrPhpClientApacheSolrService.php:345
    Stack trace:
    #0
    C:xampphtdocsajaximageslrSolrPhpClientApacheSolrService.php(615):
    Apache_Solr_Service->_sendRawPost(‘http://localhos…’, ‘add(‘addDocuments(Array)
    #3 {main}
    thrown in C:xampphtdocsajaximageslrSolrPhpClientApacheSolrService.php on line 345

    How to solve this?

  • rohit

    Fatal error: Uncaught exception ‘Apache_Solr_HttpTransportException’ with message ”404′ Status: Not Found’ in C:xampphtdocssolr_tutSolrPhpClientApacheSolrService.php:364 Stack trace: #0 C:xampphtdocssolr_tutSolrPhpClientApacheSolrService.php(669): Apache_Solr_Service->_sendRawPost(‘http://localhos…’, ‘add(‘addDocuments(Array, false, true, true, 0) #3 {main} thrown in C:xampphtdocssolr_tutSolrPhpClientApacheSolrService.php on line 364

  • Vikash Kumar

    /solr