SOLR-3668: fix handling of custom parameters for dataimport on admin ui

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1381518 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Matheis 2012-09-06 08:24:46 +00:00
parent 2067ce946c
commit 7626f1cda2
3 changed files with 9 additions and 2 deletions

View File

@ -64,6 +64,8 @@ New Features
* SOLR-3597: seems like a lot of wasted whitespace at the top of the admin screens
(steffkes)
* SOLR-3668: DataImport : Specifying Custom Parameters (steffkes)
Optimizations
----------------------

View File

@ -531,7 +531,12 @@ sammy.get
var custom_parameters = $( '#custom_parameters', form ).val();
if( custom_parameters.length )
{
array.push( { name : 'custom_parameters', value: custom_parameters } );
var params = custom_parameters.split( '&' );
for( var i in params )
{
var tmp = params[i].split( '=' );
array.push( { name : tmp[0], value: tmp[1] } );
}
}
},
success : function( response, text_status, xhr )

View File

@ -112,7 +112,7 @@ limitations under the License.
<label for="custom_parameters">
<a rel="help">Custom Parameters</a>
</label>
<input type="text" id="custom_parameters" value="">
<input type="text" id="custom_parameters" value="" placeholder="key1=val1&amp;key2=val2">
<button type="submit">Execute Import</button>