[develop-filters | DONE | CHANGED]: refineFieldResults.service.ts: In method "getAllRefineFieldResultsByFieldName()", added size=0 in request url.

This commit is contained in:
Konstantina Galouni 2023-12-14 17:32:42 +02:00
parent b0a67be290
commit d15ce5522e
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ export class RefineFieldResultsService {
getAllRefineFieldResultsByFieldName(fieldName:string, entityName:string, properties:EnvProperties, refineQuery:string=null):any{
// let keys:string[]=["funder", "relfunder", "fundinglevel"];
let url = properties.searchAPIURLLAst +this.getSearchAPIURLForEntity(entityName)+"?fields="+fieldName +('&sf='+fieldName)+ "&format=json";
let url = properties.searchAPIURLLAst +this.getSearchAPIURLForEntity(entityName)+"?fields="+fieldName +('&sf='+fieldName)+ "&format=json&size=0";
if(refineQuery!= null && refineQuery != '' ) {
url += refineQuery;
}