Ah, Unix. Isn't it wonderful (it is, but....): http://unix.stackexchange.com/questions/3051/how-to-echo-a-bang
Try single quotes and backslash before the bang. Or disable history characters. Regards, Alex. ---- Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter: http://www.solr-start.com/ On 5 November 2015 at 14:20, Renee Sun <renee_...@mcafee.com> wrote: > thanks! > > but it is silly that I can seem to escape the {!sum=true} properly to make > it work in my curl :-( > > time curl -d > 'q=*:*&rows=0&shards=solrhostname:8080/solr/413-1,anothersolrhost:8080/solr/413-2&stats=true&stats.field={!sum=true}myfieldname' > http://localhost:8080/solr/413-1/select/? | xmllint --format - > > double quote or single quote, only escape ! or escape all { and !, nothing > will make it work. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/how-to-efficiently-get-sum-of-an-int-field-tp4238464p4238478.html > Sent from the Solr - User mailing list archive at Nabble.com.