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

Shalin Shekhar Mangar commented on SOLR-8858:
---------------------------------------------

bq.I think caching the full doc is expected and what I thought it did.

That is only when lazy loading is disabled. If lazy loading is enabled then a 
lazy document is cached which may have only a few fields' data and the rest are 
loaded on access.

bq. @shalinmangar I've made a pass at restoring the previous caching behavior 
(with some comments around the rationale). It feels like we might have a 
complete solution at this point.

I am not very happy with this solution because from a Solr user's perspective, 
this feature adds no benefit but causes stored fields to be read twice for an 
uncached read? I must also admit that I do not have a good suggestion on how to 
avoid that.

> SolrIndexSearcher#doc() Completely Ignores Field Filters Unless Lazy Field 
> Loading is Enabled
> ---------------------------------------------------------------------------------------------
>
>                 Key: SOLR-8858
>                 URL: https://issues.apache.org/jira/browse/SOLR-8858
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.6, 4.10, 5.5
>            Reporter: Caleb Rackliffe
>              Labels: easyfix
>
> If {{enableLazyFieldLoading=false}}, a perfectly valid fields filter will be 
> ignored, and we'll create a {{DocumentStoredFieldVisitor}} without it.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to