lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Dhaliwal <subp...@gmail.com>
Subject Re: how to commit certain xml files using PHP commit()
Date Mon, 09 Aug 2010 05:15:46 GMT
I am not sure if the php client supports updates via xml files. If it
doesn't, you probably need to use php curl to submit the file.

You can see regular curl usage here:
http://wiki.apache.org/solr/UpdateXmlMessages and
http://wiki.apache.org/solr/UpdateCSV

I imagine you would use CURLOPT_INFILE to send the xml file to solr.

hth,
Paul
*
*
On Sun, Aug 8, 2010 at 10:03 PM, e8en <eben@tokobagus.com> wrote:

>
> I'm solr newbie,
> I use my PHP script to delete index and commit certain xml file in solr
>
> this is what I do:
> $solr->deleteByQuery('ITEM_CAT:576');
> $solr->commit();
>
> the question is, how to commit certain xml file, for example to do this:
> java -jar post.jar cat_576.xml
>
> please help me
> thanks before :)
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/how-to-commit-certain-xml-files-using-PHP-commit-tp1050988p1050988.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message