Rankingranking=indexSegment.fulltext().getDefaultConfiguration().getRanking(rankingProfile);// for a by-date ranking select different ranking profile
Stringbq=ranking.getBoostQuery();
@ -399,36 +399,6 @@ public final class QueryParams {
if(bq.length()>0)params.setParam("bq",bq);
if(bf.length()>0)params.setParam("boost",bf);// a boost function extension, see http://wiki.apache.org/solr/ExtendedDisMax#bf_.28Boost_Function.2C_additive.29
/*
if(this.contentdom==ContentDomain.IMAGE){
fq.append(" AND (").append(CollectionSchema.url_file_ext_s.getSolrFieldName()).append(":\"jpg\"");
fq.append(" OR ").append(CollectionSchema.url_file_ext_s.getSolrFieldName()).append(":\"tif\"");
fq.append(" OR ").append(CollectionSchema.url_file_ext_s.getSolrFieldName()).append(":\"tiff\"");
fq.append(" OR ").append(CollectionSchema.url_file_ext_s.getSolrFieldName()).append(":\"png\")");
}
if(this.contentdom==ContentDomain.AUDIO){
fq.append(" AND (").append(CollectionSchema.url_file_ext_s.getSolrFieldName()).append(":\"aif\"");
fq.append(" OR ").append(CollectionSchema.url_file_ext_s.getSolrFieldName()).append(":\"aiff\"");
fq.append(" OR ").append(CollectionSchema.url_file_ext_s.getSolrFieldName()).append(":\"mp3\"");
fq.append(" OR ").append(CollectionSchema.url_file_ext_s.getSolrFieldName()).append(":\"ogg\")");
}
if(this.contentdom==ContentDomain.VIDEO){
fq.append(" AND (").append(CollectionSchema.url_file_ext_s.getSolrFieldName()).append(":\"mpg\"");
fq.append(" OR ").append(CollectionSchema.url_file_ext_s.getSolrFieldName()).append(":\"avi\"");
fq.append(" OR ").append(CollectionSchema.url_file_ext_s.getSolrFieldName()).append(":\"mp4\"");
fq.append(" OR ").append(CollectionSchema.url_file_ext_s.getSolrFieldName()).append(":\"mkv\")");
}
if(this.contentdom==ContentDomain.APP){
fq.append(" AND (").append(CollectionSchema.url_file_ext_s.getSolrFieldName()).append(":\"apk\"");
fq.append(" OR ").append(CollectionSchema.url_file_ext_s.getSolrFieldName()).append(":\"exe\"");
fq.append(" OR ").append(CollectionSchema.url_file_ext_s.getSolrFieldName()).append(":\"dmg\"");
fq.append(" OR ").append(CollectionSchema.url_file_ext_s.getSolrFieldName()).append(":\"gz\")");
@ -164,7 +164,8 @@ public final class SearchEvent {
privatefinalWeakPriorityBlockingQueue<URIMetadataNode>nodeStack;// thats the bag where the solr results are written to
privatefinalWeakPriorityBlockingQueue<ResultEntry>resultList;// thats the result list where the actual search result is waiting to be displayed
privatefinalbooleanpollImmediately;// if this is true, then every entry in result List is polled immediately to prevent a re-ranking in the resultList. This is usefull if there is only one index source.
publicfinalbooleanexcludeintext_image;
// the following values are filled during the search process as statistics for the search
publicfinalAtomicIntegerlocal_rwi_available;// the number of hits generated/ranked by the local search in rwi index
publicfinalAtomicIntegerlocal_rwi_stored;// the number of existing hits by the local search in rwi index
@ -220,6 +221,7 @@ public final class SearchEvent {