Skip to content
Snippets Groups Projects
Commit dfe8f440 authored by Fuentes Serna  Juan Mariano (ID SIS)'s avatar Fuentes Serna Juan Mariano (ID SIS)
Browse files

SSDM-6196 : New V3 API Sort option sortBy().fetchedFieldsScore(), js implementation + some tweaks

parent c8ee72a4
No related branches found
No related tags found
No related merge requests found
...@@ -14,13 +14,13 @@ define([ "require", "stjs", "as/dto/common/fetchoptions/EntitySortOptions", "as/ ...@@ -14,13 +14,13 @@ define([ "require", "stjs", "as/dto/common/fetchoptions/EntitySortOptions", "as/
constructor.serialVersionUID = 1; constructor.serialVersionUID = 1;
prototype.fetchedFieldsScore = function() { prototype.fetchedFieldsScore = function() {
var parameters = { var parameters = {};
SortParameter.FULL_CODE_BOOST : "1000000", parameters[SortParameter.FULL_CODE_BOOST] = "1000000";
SortParameter.PARTIAL_CODE_BOOST : "100000", parameters[SortParameter.PARTIAL_CODE_BOOST] = "100000";
SortParameter.FULL_PROPERTY_BOOST : "10000", parameters[SortParameter.FULL_PROPERTY_BOOST] = "10000";
SortParameter.FULL_TYPE_BOOST : "1000", parameters[SortParameter.FULL_TYPE_BOOST] = "1000";
SortParameter.PARTIAL_PROPERTY_BOOST : "100" parameters[SortParameter.PARTIAL_PROPERTY_BOOST] = "100";
};
return this.getOrCreateSortingWithParameters(fields.FETCHED_FIELDS_SCORE, parameters); return this.getOrCreateSortingWithParameters(fields.FETCHED_FIELDS_SCORE, parameters);
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment