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

Noble Paul commented on SOLR-13312:
-----------------------------------

bq.So pseudo code based on your response....

yeah, pretty much, that is how it should work

bq.That might work if the codec/code for writing out responses only ever 
iterates linearly through the document anyway... 

That's what response writers do anyway. 

bq.One might even imagine a composition based strategy with an 
.optimizeFieldAccess() method that flips the map 

yeah, we can have a whitelist of methods which can be accessed without creating 
the Map. say, 

* {{forEach()}} 
* {{writeMap()}},
* {{getFieldValue(<only-id-field>))}}
* {{getFirstValue(<only-id-field>)}}

if any other method is invoked, we can lazily construct the Map based structure 
that we use today


> write out responses without creating SolrDocument objects
> ---------------------------------------------------------
>
>                 Key: SOLR-13312
>                 URL: https://issues.apache.org/jira/browse/SOLR-13312
>             Project: Solr
>          Issue Type: Sub-task
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Noble Paul
>            Priority: Major
>
> Once we get a document from lucene there is no need to create a SolrDocument 
> object to write out the response, if there are no transformers



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to