mirror of https://github.com/apache/lucene.git
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:
parent
2067ce946c
commit
7626f1cda2
|
@ -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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -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&key2=val2">
|
||||
|
||||
<button type="submit">Execute Import</button>
|
||||
|
||||
|
|
Loading…
Reference in New Issue