introduce a copy-field for the author field to be copied to a string
field. This field is then used to generate facets. Without this field,
the facet would consist only of the words of the author names, not of
the full author string.
@ -427,12 +433,10 @@ public final class QueryParams {
fq.append(" AND ").append(YaCySchema.VOCABULARY_PREFIX).append(tag.getVocabularyName()).append(YaCySchema.VOCABULARY_SUFFIX).append(":\"").append(tag.getObject()).append('\"');
}
params.setParam("defType","edismax");
params.setParam("bq",Boost.RANKING.getBoostQuery());// a boost query that moves double content to the back
params.setParam("bf",Boost.RANKING.getBoostFunction());// a boost function extension
params.setStart(this.offset);
params.setRows(this.itemsPerPage);
params.setFacet(false);
// add author facets
if(this.author!=null&&this.author.length()>0){
fq.append(" AND ").append(YaCySchema.author_s.getSolrFieldName()).append(":\"").append(this.author).append('\"');
}
if(!this.urlMask_isCatchall){
StringurlMaskPattern=this.urlMask.pattern();
@ -544,7 +548,7 @@ public final class QueryParams {