[
https://issues.apache.org/jira/browse/SOLR-17631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18012618#comment-18012618
]
ASF subversion and git services commented on SOLR-17631:
--------------------------------------------------------
Commit 3f2503b672aa80f2b967f9f4a9d1d851b601c336 in solr's branch
refs/heads/main from Ishan Chattopadhyaya
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=3f2503b672a ]
SOLR-17631: Fix grouping to properly combine main query with filters for scoring
The grouping implementation was only using filter queries for search operations,
ignoring the main query entirely. This caused function queries like
{\!func}foo2_i
to be ignored during grouping, resulting in all groups receiving a score of 1.0
from MatchAllDocsQuery instead of proper function query scores.
This broke group ordering when Sort.RELEVANCE was used (the default), as groups
were not ordered by their maximum scores as expected.
The fix uses QueryUtils.combineQueryAndFilter() to properly combine the main
query
(for scoring) with filter queries (for filtering), matching the behavior of
normal
Solr search operations. This ensures function queries and other scoring queries
work correctly with grouping.
Fixes TestGroupingSearch.testGroupAPI and related grouping functionality that
relies on proper query scoring.
> Upgrade main to Lucene 10.x
> ---------------------------
>
> Key: SOLR-17631
> URL: https://issues.apache.org/jira/browse/SOLR-17631
> Project: Solr
> Issue Type: Improvement
> Components: search
> Reporter: Ishan Chattopadhyaya
> Priority: Blocker
> Labels: pull-request-available
> Fix For: main (10.0)
>
> Time Spent: 4h 50m
> Remaining Estimate: 0h
>
> Now that we have 9.8 release of Solr based on Lucene 9.12, we should move to
> main + Lucene 10. Towards that, I've started on a WIP branch. Opening this
> issue to track the effort needed for that.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]