Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-3065

NumericField should be stored in binary format in index (matching Solr's format)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.2, 4.0-ALPHA
    • core/index
    • None
    • New

    Description

      (Spinoff of LUCENE-3001)

      Today when writing stored fields we don't record that the field was a NumericField, and so at IndexReader time you get back an "ordinary" Field and your number has turned into a string. See https://issues.apache.org/jira/browse/LUCENE-1701?focusedCommentId=12721972&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12721972

      We have spare bits already in stored fields, so, we should use one to record that the field is numeric, and then encode the numeric field in Solr's more-compact binary format.

      A nice side-effect is we fix the long standing issue that you don't get a NumericField back when loading your document.

      Attachments

        1. LUCENE-3065.patch
          32 kB
          Uwe Schindler
        2. LUCENE-3065.patch
          31 kB
          Uwe Schindler
        3. LUCENE-3065.patch
          26 kB
          Uwe Schindler
        4. LUCENE-3065.patch
          22 kB
          Uwe Schindler
        5. LUCENE-3065.patch
          22 kB
          Uwe Schindler
        6. LUCENE-3065.patch
          32 kB
          Uwe Schindler
        7. LUCENE-3065.patch
          32 kB
          Uwe Schindler
        8. LUCENE-3065.patch
          29 kB
          Uwe Schindler
        9. LUCENE-3065.patch
          28 kB
          Michael McCandless
        10. LUCENE-3065-trunk.patch
          33 kB
          Uwe Schindler

        Issue Links

          Activity

            People

              uschindler Uwe Schindler
              mikemccand Michael McCandless
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: