Re: PHP interface with Solr

2008-12-27 Thread Otis Gospodnetic
Aha, it's "phps" and not "php". Why that "s"? Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: Erik Hatcher > To: solr-user@lucene.apache.org > Sent: Saturday, December 27, 2008 5:15:37 AM >

Re: PHP interface with Solr

2008-12-27 Thread Erik Hatcher
And there other options too. JSON is a great way to digest data into PHP also. When in PHP, I'd shy away from XML, and use &wt=phps (not php) or &wt=json. Erik On Dec 27, 2008, at 1:57 AM, Tony Wang wrote: Now I've found out that there are two options for retrieving the search

Re: PHP interface with Solr

2008-12-26 Thread Tony Wang
Now I've found out that there are two options for retrieving the search results: 1. use curl and parse the search results in XML format? 2. use PHP response format to output the search results to arrays, as mention in this tutorial http://wiki.apache.org/solr/SolPHP I wonder which one is better?

Re: PHP interface with Solr

2008-12-26 Thread Ryan McKinley
the url you type has some * in it, make sure they are removed: &*wt=php*&hl also, try adding echoParams=EXPLICIT and make sure the params you are passing get parsed ok. ryan On Dec 26, 2008, at 8:00 PM, Tony Wang wrote: Otis, Thanks. So I can do the search like this: http://208.64.

Re: PHP interface with Solr

2008-12-26 Thread Tony Wang
Otis, Thanks. So I can do the search like this: http://208.64.71.46:8983/solr/select?q=RC&start=0&rows=10&fl=title%2Curl%2Cscore&qt=standard&; *wt=php*&hl=on&hl.fl=content I tried this link on my server (see above IP), and it gives me an XML file. I don't have to use PHP response formatter to co

Re: PHP interface with Solr

2008-12-26 Thread Otis Gospodnetic
Tony, If I had to guess, I'd guess that you can get the PHP version of the response by using &wt=php in the URL. Have you tried that? Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: Tony Wang > To: solr-user@lucene.apache.org > Sent: Fr