You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2017/05/21 22:17:04 UTC

[jira] [Closed] (SOLR-1961) Use Lucene's Field Cache To Retrieve Stored Fields From Memory

     [ https://issues.apache.org/jira/browse/SOLR-1961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Høydahl closed SOLR-1961.
-----------------------------
    Resolution: Won't Fix

Closing ancient issue as won't fix, as we now have DocValues that are much preferred!

> Use Lucene's Field Cache To Retrieve Stored Fields From Memory
> --------------------------------------------------------------
>
>                 Key: SOLR-1961
>                 URL: https://issues.apache.org/jira/browse/SOLR-1961
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.4
>            Reporter: Stephen Bochinski
>         Attachments: field_cache.patch, field_cache.patch, patch.txt
>
>   Original Estimate: 101.5h
>  Remaining Estimate: 101.5h
>
> This allows the user to configure which fields should be field cached in the schema.xml file by adding the following attribute:
> fieldCached="true"
> Enabling this on a field greatly decreases the time needed to retrieve stored fields. This works on fields containing Bytes, Strings, Integers, Longs, and Floats. Enabling field cache is applicable in many scenarios. For instance, if you have a bunch of text that is indexed and not stored and you only need to retrieve a string or number associated with a document. Its applicable in any case where there are many indexed fields and not too many stored fields being retrieved. The memory consumption is not very high compared to the performance gains field cache brings.
> Memory consumption is governed by: Number of fields cached * Number of documents *  8 bytes per reference +
> 	SUM(Number of unique values of the field  * average length of term)  * 2 (chars use 2 bytes) * String overhead (40 bytes)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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