You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erick Erickson (JIRA)" <ji...@apache.org> on 2015/12/24 21:45:49 UTC

[jira] [Commented] (SOLR-7957) Allow multiple queries per request and simplify ResultContext / TransformContext

    [ https://issues.apache.org/jira/browse/SOLR-7957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15071234#comment-15071234 ] 

Erick Erickson commented on SOLR-7957:
--------------------------------------

[~yseeley@gmail.com] This is committed on trunk, but not 5x. Is that intentional? It changes DocStreamer quite a bit and makes it hard to apply SOLR-8220 to 5x. Of course that was late at night so I may have just messed up. And can this be closed if it shouldn't be applied to 5x?



> Allow multiple queries per request and simplify ResultContext / TransformContext
> --------------------------------------------------------------------------------
>
>                 Key: SOLR-7957
>                 URL: https://issues.apache.org/jira/browse/SOLR-7957
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>             Fix For: Trunk
>
>         Attachments: SOLR-7957.patch
>
>
> Today we have a ResultContext which simply has two public variables query and docList.  For writing a response, those fields are used to create a DocsStreamer which creates a TransformContext for transformers (which just copies the values like searcher, req, q, etc again).
> It seems the all the methods on TransformContext could be simply moved to ResultContext.
> Only exception is "iterator" needed by ScoreAugmenter, but we could simply pass down the score in the transform() method as well.
> This would result in a ResultContext that could do things like support multiple queries with different return fields, and things like returning a list of docs from another core (think cross-core join).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org