[
https://issues.apache.org/jira/browse/SOLR-7050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14295268#comment-14295268
]
Yonik Seeley edited comment on SOLR-7050 at 1/28/15 4:17 PM:
-------------------------------------------------------------
This really doesn't have much to do with this issue (the API), but if you want
to make the case of retrieving stored fields from the lucene index slightly
more efficient, just replace this line:
{code}
StoredDocument luceneDocument = searcher.doc(docid);
{code}
With this line:
{code}
StoredDocument luceneDocument = searcher.doc(docid,
rsp.getReturnFields().getLuceneFieldNames());
{code}
Also when converting the StoredDocument to SolrDocument, we would need to be
careful not to touch the lazy fields (i.e. check if in
rsp.getReturnFields().getLuceneFieldNames() first)
was (Author: [email protected]):
This really doesn't have much to do with this issue (the API), but if you want
to make the case of retrieving stored fields from the lucene index slightly
more efficient, just replace this line:
{code}
StoredDocument luceneDocument = searcher.doc(docid);
{code}
With this line:
{code}
StoredDocument luceneDocument = searcher.doc(docid,
rsp.getReturnFields().getLuceneFieldNames());
{code}
> realtime get should internally load only fields specified in fl
> ---------------------------------------------------------------
>
> Key: SOLR-7050
> URL: https://issues.apache.org/jira/browse/SOLR-7050
> Project: Solr
> Issue Type: Improvement
> Affects Versions: Trunk, 5.1
> Reporter: Noble Paul
> Assignee: Noble Paul
> Priority: Minor
> Attachments: SOLR-7050.patch
>
>
> It is not always necessary to fetch all the stored fields in realtime get
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]