(index) Further ranking adjustments
This commit is contained in:
parent
fc6e3b6da0
commit
310a880fa8
2 changed files with 2 additions and 4 deletions
|
@ -110,7 +110,7 @@ public class ResultValuator {
|
|||
|
||||
|
||||
double overallPartPositive = Math.max(0, overallPart);
|
||||
double overallPartNegative = Math.min(0, overallPart);
|
||||
double overallPartNegative = -Math.min(0, overallPart);
|
||||
|
||||
// Renormalize to 0...15, where 0 is the best possible score;
|
||||
// this is a historical artifact of the original ranking function
|
||||
|
@ -163,7 +163,7 @@ public class ResultValuator {
|
|||
if (DocumentMetadata.hasFlags(featureFlags, HtmlFeature.TRACKING.getFeatureBit()))
|
||||
penalty += 2.5 * largeSiteFactor;
|
||||
|
||||
if (isForum || isWiki || isDocs) {
|
||||
if (isForum || isWiki) {
|
||||
penalty = Math.min(0, penalty - 2);
|
||||
}
|
||||
|
||||
|
|
|
@ -265,8 +265,6 @@ public class IndexQueryService extends IndexApiImplBase {
|
|||
return new SearchResultSet(resultDecorator.decorateAndRerank(bestResults, rankingContext));
|
||||
}
|
||||
|
||||
/* This is used in result ranking, and is also routed back up the search service in order to recalculate BM-25
|
||||
* accurately */
|
||||
private ResultRankingContext createRankingContext(ResultRankingParameters rankingParams, List<SearchSubquery> subqueries) {
|
||||
final var termToId = searchTermsSvc.getAllIncludeTerms(subqueries);
|
||||
final Map<String, Integer> termFrequencies = new HashMap<>(termToId.size());
|
||||
|
|
Loading…
Reference in a new issue