You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Munendra S N (JIRA)" <ji...@apache.org> on 2019/08/18 13:39:00 UTC
[jira] [Commented] (SOLR-9622) ExplainAugmenterFactory does not
work on grouped queries
[ https://issues.apache.org/jira/browse/SOLR-9622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16909968#comment-16909968 ]
Munendra S N commented on SOLR-9622:
------------------------------------
For [explain] to work, {{query}} obj has to be accessible/available, code [link|https://github.com/apache/lucene-solr/blob/54ab07718a016c888e69ff4a8070c24cf34d3a51/solr/core/src/java/org/apache/solr/response/transform/ExplainAugmenterFactory.java#L107]
This happens when writing {{doclist}} in response Writer - [link|https://github.com/apache/lucene-solr/blob/54ab07718a016c888e69ff4a8070c24cf34d3a51/solr/core/src/java/org/apache/solr/response/TextResponseWriter.java#L139]. In case of grouping, doclist is produced.
[explain] works with grouping when {{distrib=true}}, as execution flow is entirely different. In single node setup, [explain] works when {{group.main=true}} due to [this|https://github.com/apache/lucene-solr/blob/54ab07718a016c888e69ff4a8070c24cf34d3a51/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java#L1468]
There could be multiple ways to fix
* handle other group formats similar to {{group.main=true}}, so that {{ResultContext}} is produced from grouping.
* Make query available to response writer(either via rb or directly)
but I don't think either approach is proper or straight-forward
> ExplainAugmenterFactory does not work on grouped queries
> --------------------------------------------------------
>
> Key: SOLR-9622
> URL: https://issues.apache.org/jira/browse/SOLR-9622
> Project: Solr
> Issue Type: Bug
> Components: search
> Reporter: Henrik
> Priority: Major
>
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org