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

Add optional support for Ruby-libxml2 (vs. REXML)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • clients - ruby - flare
    • None

    Description

      This file adds drop-in support for the ruby-libxml2, which is a wrapper for the libxml2 library, which is an order of magnitude or so faster than REXML.

      This depends on my SOLR-121 patch for multi-document adds, since the behavior of Solr::Request::AddDocument#to_s is different.

      Requiring this makes some tests fail, but for trivial reasons: some tests are directly tied to REXML, others fail due to interelement whitespace added by libxml2 (which you can't disable via the Ruby interface). Functionally, it's identical, and passes all functional tests.

      Attachments

        1. libxml.rb
          2 kB
          Coda Hale
        2. libxml.rb
          2 kB
          Coda Hale
        3. solrb_libxml_support.diff
          10 kB
          Coda Hale

        Activity

          People

            Unassigned Unassigned
            codahale Coda Hale
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: