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
>
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
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?
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.
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
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