Merge branch
This commit is contained in:
commit
27d61b19e8
|
@ -1019,11 +1019,13 @@ export class NewSearchPageComponent {
|
||||||
let filterOp: string = this.searchFieldsHelper.getFieldOperator(filterId);
|
let filterOp: string = this.searchFieldsHelper.getFieldOperator(filterId);
|
||||||
// console.info(filterId, filterOp);
|
// console.info(filterId, filterOp);
|
||||||
for (let value of values) {
|
for (let value of values) {
|
||||||
|
if(value && value.length > 0){
|
||||||
countvalues++;
|
countvalues++;
|
||||||
var paramId = this.fieldIdsMap[filterId].param;
|
var paramId = this.fieldIdsMap[filterId].param;
|
||||||
// parameters+='&' + paramId+ '='+ value;//+"&" + this.fieldIdsMap[paramId].operator + "="+((countvalues == 1)?"and":"or");
|
// parameters+='&' + paramId+ '='+ value;//+"&" + this.fieldIdsMap[paramId].operator + "="+((countvalues == 1)?"and":"or");
|
||||||
fq += (fq.length > 0 ? " " + filterOp + " " : "") + filterId + " exact " + (value);
|
fq += (fq.length > 0 ? " " + filterOp + " " : "") + filterId + " exact " + (value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (countvalues > 0) {
|
if (countvalues > 0) {
|
||||||
fq = "&fq=" + StringUtils.URIEncode(fq);
|
fq = "&fq=" + StringUtils.URIEncode(fq);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue