yeah, It works now. How can I verify if the new CSV file get uploaded?
Thanks Francis -----Original Message----- From: ysee...@gmail.com [mailto:ysee...@gmail.com] On Behalf Of Yonik Seeley Sent: Tuesday, July 07, 2009 10:49 AM To: solr-user@lucene.apache.org Cc: Norberto Meijome Subject: Re: Is there any other way to load the index beside using "http" connection? The double quotes around the ampersand don't belong there. I think that UTF8 should also be the default, so the following should also work: curl 'http://localhost:8983/solr/update/csv?stream.file=/opt/apache-1.2.0/example/exampledocs/test.csv' -Yonik http://www.lucidimagination.com On Tue, Jul 7, 2009 at 1:37 PM, Francis Yakin<fya...@liquid.com> wrote: > > I did try: > > curl > 'http://localhost:8983/solr/update/csv?stream.file=/opt/apache-1.2.0/example/exampledocs/test.csv"&"stream.contentType=text/plain;charset=utf-8' > > It doesn't work > > Francis > > -----Original Message----- > From: ysee...@gmail.com [mailto:ysee...@gmail.com] On Behalf Of Yonik Seeley > Sent: Tuesday, July 07, 2009 4:59 AM > To: solr-user@lucene.apache.org > Cc: Norberto Meijome > Subject: Re: Is there any other way to load the index beside using "http" > connection? > > Look at the error - it's bash (your command line shell) complaining. > The '&' terminates one command and puts it in the background. > Surrounding the command with quotes will get you one step closer: > > curl > 'http://localhost:8983/solr/update/csv?stream.file=/opt/apache-1.2.0/example/exampledocs/test.csv&stream.contentType=text/plain;charset=utf-8' > > -Yonik > http://www.lucidimagination.com