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

Replace facets taxonomy writer "cache" with BytesRefHash based implementation

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.1, master (8.0)
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      When the facets module was first created we didn't have BytesRefHash and so the default cache (Cl2oTaxonomyWriterCache was quite a bit more complex than needed.

      I changed this to use a BytesRefHash, which stores labels as UTF8 (reduces memory for ascii-only usage), and is also faster (~12% overall speedup on indexing time in my private tests).

        Attachments

        1. LUCENE-7975.patch
          51 kB
          Michael McCandless
        2. LUCENE-7975.patch
          49 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: