Permalink
Browse files

Apply tld query modifier on Solr host_s mandatory field.

The filter has thus much more chances to be effective than when applied
on the optional field host_dnc_s.
  • Loading branch information...
luccioman committed Dec 1, 2017
1 parent 478e92d commit e07ef1b61086830bfaf8c21a24c8fd5cfc519739
Showing with 2 additions and 1 deletion.
  1. +2 −1 source/net/yacy/search/query/QueryParams.java
@@ -651,7 +651,8 @@ private SolrQuery getBasicParams(final boolean getFacets, final List<String> fqs
}

if (this.tld != null) {
fqs.add(CollectionSchema.host_dnc_s.getSolrFieldName() + ":\"" + this.tld + '\"');
/* Use the host_s field which is mandatory, rather than the optional host_dnc_s field */
fqs.add(CollectionSchema.host_s.getSolrFieldName() + ":*." + this.tld);
}

if (this.modifier.filetype != null) {

0 comments on commit e07ef1b

Please sign in to comment.