in GSA api enable usage of solr fq-attribute together with GSA

site-attribute
pull/1/head
orbiter 12 years ago
parent 9fc0c4df98
commit 5c7ddc67fe

@ -155,7 +155,10 @@ public class searchresult {
// add sites operator
String[] site = post.remove("site"); // example: col1|col2
if (site != null && site[0].length() > 0) {
post.put(CommonParams.FQ, QueryModifier.parseCollectionExpression(site[0]));
String origfq = post.get(CommonParams.FQ);
String sitefq = QueryModifier.parseCollectionExpression(site[0]);
post.put(CommonParams.FQ, origfq == null || origfq.length() == 0 ? sitefq :
"(" + origfq + ") AND (" + sitefq + ")");
}
// get the embedded connector

Loading…
Cancel
Save