Thank you, this worked perfectly. 

Kevin Miller
Web Services

-----Original Message-----
From: caman [mailto:aboxfortheotherst...@gmail.com] 
Sent: Thursday, September 10, 2009 9:48 PM
To: solr-user@lucene.apache.org
Subject: Re: An issue with <commit/> using Solr Cell and multiple files


You are right. 
I got into same thing. Windows curl gave me error but cygwin ran without
any issues.

thanks


Lance Norskog-2 wrote:
> 
> It is a windows problem (or curl, whatever).  This works with 
> double-quotes.
> 
> C:\Users\work\Downloads>\cygwin\home\work\curl-7.19.4\curl.exe
> http://localhost:8983/solr/update --data-binary "<commit/>" -H 
> "Content-type:text/xml; charset=utf-8"
> Single-quotes inside double-quotes should work: "<commit 
> waitFlush='false'/>"
> 
> 
> On Tue, Sep 8, 2009 at 11:59 AM, caman
> <aboxfortheotherst...@gmail.com>wrote:
> 
>>
>> seems to be an error with curl
>>
>>
>>
>>
>> Kevin Miller-17 wrote:
>> >
>> > I am getting the same error message.  I am running Solr on a 
>> > Windows machine.  Is the commit command a curl command or is it a
Solr command?
>> >
>> >
>> > Kevin Miller
>> > Web Services
>> >
>> > -----Original Message-----
>> > From: Grant Ingersoll [mailto:gsing...@apache.org]
>> > Sent: Tuesday, September 08, 2009 12:52 PM
>> > To: solr-user@lucene.apache.org
>> > Subject: Re: An issue with <commit/> using Solr Cell and multiple 
>> > files
>> >
>> > solr/examples/exampledocs/post.sh does:
>> > curl $URL --data-binary '<commit/>' -H 'Content-type:text/xml; 
>> > charset=utf-8'
>> >
>> > Not sure if that helps or how it compares to the book.
>> >
>> > On Sep 8, 2009, at 1:48 PM, Kevin Miller wrote:
>> >
>> >> I am using the Solr nightly build from 8/11/2009.  I am able to 
>> >> index my documents using the Solr Cell but when I attempt to send 
>> >> the commit
>> >
>> >> command I get an error.  I am using the example found in the Solr 
>> >> 1.4 Enterprise Search Server book (recently released) found on
page 84.
>> >> It
>> >> shows to commit the changes as follows (I am showing where my 
>> >> files are located not the example in the book):
>> >>
>> >>>> c:\curl\bin\curl http://echo12:8983/solr/update/ -H
"Content-Type:
>> >> text/xml" --data-binary '<commit waitFlush="false"/>'
>> >>
>> >> this give me this error: The system cannot find the file
specified.
>> >>
>> >> I get the same error when I modify it to look like the following:
>> >>
>> >>>> c:\curl\bin\curl http://echo12:8983/solr/update/ '<commit
>> >> waitFlush="false"/>'
>> >>>> c:\curl\bin\curl "http://echo12:8983/solr/update/"; -H
"Content-Type:
>> >> text/xml" --data-binary '<commit waitFlush="false"/>'
>> >>>> c:\curl\bin\curl http://echo12:8983/solr/update/ '<commit />'
>> >>>> c:\curl\bin\curl "http://echo12:8983/solr/update/"; '<commit />'
>> >>
>> >> I am using the example configuration in Solr so my documents are 
>> >> found
>> >
>> >> in the exampledocs folder also my curl program in located in the 
>> >> root directory which is the reason for the way the curl command is

>> >> being executed.
>> >>
>> >> I would appreciate any information on where to look or how to get 
>> >> the commit command to execute after indexing multiple files.
>> >>
>> >> Kevin Miller
>> >> Oklahoma Tax Commission
>> >> Web Services
>> >
>> > --------------------------
>> > Grant Ingersoll
>> > http://www.lucidimagination.com/
>> >
>> > Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)
>> > using Solr/Lucene:
>> > http://www.lucidimagination.com/search
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/An-issue-with-%3Ccommit-%3E-using-Solr-Cell-and
>> -multiple-files-tp25350995p25352122.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> --
> Lance Norskog
> goks...@gmail.com
> 
> 

--
View this message in context:
http://www.nabble.com/An-issue-with-%3Ccommit-%3E-using-Solr-Cell-and-mu
ltiple-files-tp25350995p25394203.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to