Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix of bad query generation for search facets

Michael Peter Christen5c97ecb30fc9
diff --git a/source/net/yacy/search/query/QueryModifier.java b/source/net/yacy/search/query/QueryModifier.java
index 1ec790732..8fe77d5fd 100644
--- a/source/net/yacy/search/query/QueryModifier.java
+++ b/source/net/yacy/search/query/QueryModifier.java
@@ -236,7 +236,7 @@ public class QueryModifier {
}
if (this.collection != null && this.collection.length() > 0 && fq.indexOf(CollectionSchema.collection_sxt.getSolrFieldName()) < 0) {
- fq.append(" AND ").append(CollectionSchema.collection_sxt.getSolrFieldName()).append(":\"").append(this.collection).append('\"');
+ fq.append(" AND ").append(QueryModifier.parseCollectionExpression(this.collection));
}
if (this.protocol != null && this.protocol.length() > 0 && fq.indexOf(CollectionSchema.url_protocol_s.getSolrFieldName()) < 0) {