-
Type:
Improvement
-
Status: Resolved
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 4.9
-
Fix Version/s: None
-
Component/s: query parsers
-
Labels:
Currently solr has a tie breaker parameter which control how to aggregate relevance score for search hits.
But score for fields (pf, pf2, pf3) are always summed up.
The goal of the patch is to wrap phrase clauses into single dismax clause instead of multipe ones
Before patch
+(
DisjunctionMaxQuery((Body:james | Title:james)~tie_breaker)
DisjunctionMaxQuery((Body:kirk | Title:kirk)~tie_breaker))
)
DisjunctionMaxQuery((Body:"james kirk")~tie_breaker)
DisjunctionMaxQuery((Title:"james kirk")~tie_breaker)
after patch
+(
DisjunctionMaxQuery((Body:james | Title:james)~tie_breaker)
DisjunctionMaxQuery((Body:kirk | Title:kirk)~tie_breaker))
)
DisjunctionMaxQuery((Body:"james kirk" | Title:"james kirk") ~tie_breaker)
- duplicates
-
SOLR-6062 Phrase queries are created for each field supplied through edismax's pf, pf2 and pf3 parameters (rather them being combined in a single dismax query)
-
- Resolved
-