Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10286

Declare a field as "large", don't keep value in the document cache

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.5, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      (part of umbrella issue SOLR-10117)
      This adds a field to be declared as "large" in the schema. In the SolrIndexSearcher.doc(...) handling, these fields are lazily fetched from Lucene. Unlike LazyDocument.LazyField, it's not cached after first-use unless the value is "small" < 512KB by default. "large" can only be used when its stored="true" and multiValued="false" and the field is otherwise compatible (basically not a numeric field) – you'll get a helpful exception if it's unsupported. BinaryField is not yet supported at this time; it could be in the future.

        Attachments

        1. tests-failures.txt
          1.93 MB
          Yonik Seeley
        2. SOLR-10286_large_fields.patch
          43 kB
          David Smiley
        3. SOLR-10286_large_fields.patch
          43 kB
          David Smiley

          Issue Links

            Activity

              People

              • Assignee:
                dsmiley David Smiley
                Reporter:
                dsmiley David Smiley
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: