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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.5, 7.0
    • None
    • 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. SOLR-10286_large_fields.patch
          43 kB
          David Smiley
        2. SOLR-10286_large_fields.patch
          43 kB
          David Smiley
        3. tests-failures.txt
          1.93 MB
          Yonik Seeley

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: