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.
pull/149/head
luccioman 7 years ago
parent 478e92deff
commit e07ef1b610

@ -651,7 +651,8 @@ public final class QueryParams {
}
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) {

Loading…
Cancel
Save