lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Golubowitsch" <>
Subject RE: import Data via PHP
Date Thu, 14 Jul 2011 19:01:43 GMT

Hi Jörg,

what exactly do you mean by "it doesn't work"? Is there some kind of error

In any case you will at least want to url_encode() the data you add into
that Curl url.
- You can import data e.g. via a CSV file
- You can use the Solr PHP PECL extension (which offers a few classes for
accessing a Solr instance)


-----Original Message-----
From: Jörg Agatz [] 
Sent: Donnerstag, 14. Juli 2011 20:48
Subject: import Data via PHP

hallo users...

i have a Problem..

I have ti indexin Data via PHP.. the Information for data existing... and
the Fiels too..

$id = $_POST['id'];
$name = $_POST['name'];
$url = $_POST['url'];
$color = $_POST['color'];
$size = $_POST['size'];

"fields id, name, url, color, size" are existing in schema, and it work..

But how can i send it to solr, i try it with curl.. but it dosent work

curl "

View raw message