SOLR-10347: Remove index level boost support from 'documents' section of the admin UI

This commit is contained in:
Tomas Fernandez Lobbe 2017-04-04 13:11:02 -07:00
parent 05749d0694
commit f08889f390
5 changed files with 3 additions and 24 deletions

View File

@ -93,6 +93,9 @@ Optimizations
Other Changes
* SOLR-10236: Removed FieldType.getNumericType(). Use getNumberType() instead. (Tomás Fernández Löbbe)
* SOLR-10347: Removed index level boost support from "documents" section of the admin UI (Amrit Sarkar via
Tomás Fernández Löbbe)
----------------------
================== 6.6.0 ==================

View File

@ -38,7 +38,6 @@ solrAdminApp.controller('DocumentsController',
$scope.type = "json";
$scope.commitWithin = 1000;
$scope.overwrite = true;
$scope.boost = "1.0";
};
$scope.refresh();
@ -78,7 +77,6 @@ solrAdminApp.controller('DocumentsController',
}
params.commitWithin = $scope.commitWithin;
params.boost = $scope.boost;
params.overwrite = $scope.overwrite;
params.core = $routeParams.core;
params.wt = "json";

View File

@ -29,7 +29,6 @@ var content_generator = {
//Utiltity function for turning on/off various elements
function toggles(documents_form, show_json, show_file, show_doc, doc_text, show_wizard) {
var json_only = $('#json-only');
var the_document = $('#document', documents_form);
if (show_doc) {
//console.log("doc: " + doc_text);
@ -38,11 +37,6 @@ function toggles(documents_form, show_json, show_file, show_doc, doc_text, show_
} else {
the_document.hide();
}
if (show_json) {
json_only.show();
} else {
json_only.hide();
}
var file_upload = $('#file-upload', documents_form);
var upload_only = $('#upload-only', documents_form);
if (show_file) {
@ -233,7 +227,6 @@ sammy.get
.trigger('change');
var the_document = $('#document', documents_form).val();
var commit_within = $('#commitWithin', documents_form).val();
var boost = $('#boost', documents_form).val();
var overwrite = $('#overwrite', documents_form).val();
var the_command = "";
var content_type = "";
@ -245,7 +238,6 @@ sammy.get
//create a JSON command
the_command = "{"
+ '"add":{ "doc":' + the_document + ","
+ '"boost":' + boost + ","
+ '"overwrite":' + overwrite + ","
+ '"commitWithin":' + commit_within
+ "}}";

View File

@ -88,13 +88,6 @@
</label>
<input ng-model="overwrite" type="text" id="overwrite" value="true" title="Overwrite">
</div>
<!-- Boost is json only, since the XML has it embedded -->
<div id="json-only" ng-show="type=='json'">
<label for="boost">
<a rel="help">Boost</a>
</label>
<input ng-model="boost" type="text" id="boost" value="1.0" title="Document Boost">
</div>
</div>
</div>

View File

@ -85,13 +85,6 @@
</label>
<input type="text" id="overwrite" value="true" title="Overwrite">
</div>
<!-- Boost is json only, since the XML has it embedded -->
<div id="json-only">
<label for="boost">
<a rel="help">Boost</a>
</label>
<input type="text" id="boost" value="1.0" title="Document Boost">
</div>
</div>
</div>