SOLR-6861: Remove post.sh from exampledocs

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1646297 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Anshum Gupta 2014-12-17 17:32:42 +00:00
parent a6233f1341
commit f821354186
2 changed files with 3 additions and 30 deletions

View File

@ -504,6 +504,9 @@ Other Changes
* SOLR-6852: SimplePostTool no longer defaults to collection1 making core/collection/update URL
mandatory. (Anshum Gupta)
* SOLR-6861: post.sh from exampledocs directory has been removed as there no longer is a default update
URL. (Anshum Gupta)
================== 4.10.3 ==================
Bug Fixes

View File

@ -1,30 +0,0 @@
#!/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FILES=$*
URL=http://localhost:8983/solr/update
for f in $FILES; do
echo Posting file $f to $URL
curl $URL --data-binary @$f -H 'Content-type:application/xml'
echo
done
#send the commit command to make sure all the changes are flushed and visible
#curl $URL --data-binary '<commit softCommit=true/>' -H 'Content-type:application/xml'
curl "$URL?softCommit=true"
echo