Have you tried one of the extensions out there, such as 
https://code.google.com/p/magento-community-edition-solr/ ?

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
Solr Training - www.solrtraining.com

25. feb. 2013 kl. 14:12 skrev Rohan Thakur <rohan.i...@gmail.com>:

> hi all
> 
> I wanted to know if any one knows how to integrate solr with magento CE. I
> have done all the configuration needed for solr to index the sql database
> and I am getting results back in solr after hiting the query URL in json I
> want to know now how to integrate it like use the magento search to pass
> the query parameter to solr URL and parse the json result and show the
> results. I have searched alot on net regarding this but did not found
> anything on this can any one please help or guide me in correct direction.
> I am getting these results using json decode in php and storing the results
> in array and printing them in browser after hitting the query URL in
> browser.
> 
> Total Record Found :- 1719
> Start From :- 0
> array(20) {
>  [0]=>
>  array(5) {
>    ["product_id"]=>
>    int(453)
>    ["title"]=>
>    string(35) "Samsung Galaxy S3 I9300 Pebble Blue"
>    ["url"]=>
>    array(2) {
>      [0]=>
>      string(40) "samsung-galaxy-s3-i9300-pebble-blue.html"
>      [1]=>
>      string(40) "samsung-galaxy-s3-i9300-pebble-blue.html"
>    }
>    ["image"]=>
>    string(46) "/s/a/samsung_galaxy_s3_i9300_pebble_blue-2.jpg"
>    ["_version_"]=>
>    int(1427942783128174592)
>  }
>  [1]=>
>  array(5) {
>    ["product_id"]=>
>    int(454)
>    ["title"]=>
>    string(36) "Samsung Galaxy S3 I9300 Marble White"
>    ["url"]=>
>    array(2) {
>      [0]=>
>      string(41) "samsung-galaxy-s3-i9300-marble-white.html"
>      [1]=>
>      string(41) "samsung-galaxy-s3-i9300-marble-white.html"
>    }
>    ["image"]=>
>    string(47) "/s/a/samsung_galaxy_s3_i9300_marble_white-3.jpg"
>    ["_version_"]=>
>    int(1427942783382978560)
>  }
>  [2]=>
>  array(5) {
>    ["product_id"]=>
>    int(455)
>    ["title"]=>
>    string(35) "Samsung Galaxy S3 I9300 Amber Brown"
>    ["url"]=>
>    array(2) {
>      [0]=>
>      string(40) "samsung-galaxy-s3-i9300-amber-brown.html"
>      [1]=>
>      string(40) "samsung-galaxy-s3-i9300-amber-brown.html"
>    }
>    ["image"]=>
>    string(44) "/s/a/samsung_galaxy_s3_i9300_amber_brown.jpg"
>    ["_version_"]=>
>    int(1427942783640928256)
>  }
>  [3]=>
>  array(5) {
>    ["product_id"]=>
>    int(456)
>    ["title"]=>
>    string(35) "Samsung Galaxy S3 I9300 Garnet  Red"
>    ["url"]=>
>    array(2) {
>      [0]=>
>      string(39) "samsung-galaxy-s3-i9300-garnet-red.html"
>      [1]=>
>      string(39) "samsung-galaxy-s3-i9300-garnet-red.html"
>    }
>    ["image"]=>
>    string(43) "/s/a/samsung_galaxy_s3_i9300_garnet_red.jpg"
>    ["_version_"]=>
>    int(1427942783894683648)
>  }
> 
> 
> regards
> Rohan

Reply via email to