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

Change Term to use bytes

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-ALPHA
    • 4.0-ALPHA
    • core/search
    • None
    • New, Patch Available

    Description

      in LUCENE-2426, the sort order was changed to codepoint order.

      unfortunately, Term is still using string internally, and more importantly its compareTo() uses the wrong order [utf-16].
      So MultiTermQuery, etc (especially its priority queues) are currently wrong.

      By changing Term to use bytes, we can also support terms encoded as bytes such as numerics, instead of using
      strange string encodings.

      Attachments

        1. LUCENE-2514.patch
          8 kB
          Robert Muir
        2. LUCENE-2514.patch
          13 kB
          Robert Muir
        3. LUCENE-2514-surrogates-dance.patch
          2 kB
          Michael McCandless
        4. LUCENE-2514.patch
          14 kB
          Robert Muir
        5. LUCENE-2514.patch
          30 kB
          Robert Muir
        6. LUCENE-2514.patch
          39 kB
          Uwe Schindler
        7. LUCENE-2514.patch
          41 kB
          Robert Muir
        8. LUCENE-2514-MTQPagedBytes.patch
          10 kB
          Uwe Schindler
        9. LUCENE-2514.patch
          54 kB
          Robert Muir
        10. LUCENE-2514-MTQPagedBytes.patch
          12 kB
          Uwe Schindler
        11. LUCENE-2514-MTQPagedBytes.patch
          12 kB
          Uwe Schindler
        12. LUCENE-2514.patch
          45 kB
          Robert Muir
        13. LUCENE-2514.patch
          49 kB
          Robert Muir
        14. LUCENE-2514.patch
          52 kB
          Uwe Schindler
        15. LUCENE-2514.patch
          62 kB
          Robert Muir
        16. LUCENE-2514.patch
          111 kB
          Robert Muir
        17. LUCENE-2514.patch
          112 kB
          Uwe Schindler
        18. LUCENE-2514.patch
          112 kB
          Uwe Schindler
        19. LUCENE-2514_qp.patch
          22 kB
          Robert Muir
        20. LUCENE-2514_collatedrange.patch
          49 kB
          Robert Muir
        21. LUCENE-2514_collatedrange.patch
          149 kB
          Robert Muir
        22. LUCENE-2514_collatedrange.patch
          151 kB
          Robert Muir
        23. LUCENE-2514.patch
          188 kB
          Robert Muir

        Issue Links

          Activity

            People

              rcmuir Robert Muir
              rcmuir Robert Muir
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: