lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Coda Hale (JIRA)" <>
Subject [jira] Commented: (SOLR-122) Add optional support for Ruby-libxml2 (vs. REXML)
Date Tue, 06 Feb 2007 17:21:05 GMT


Coda Hale commented on SOLR-122:

Thanks, Erik!

I didn't refactor Solr::Response::Xml mainly because it's much harder -- REXML's XPath support
is, um, unique and special like a snowflake, so it's more than just making the method profiles
line up. I figured eventually I or someone else would write Solr::XML::Parser, then have that
run either REXML or libxml-ruby, depending on what loaded.

I'll open another issue when it comes to that. ;-)

> Add optional support for Ruby-libxml2 (vs. REXML)
> -------------------------------------------------
>                 Key: SOLR-122
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - ruby - flare
>            Reporter: Coda Hale
>         Attachments: libxml.rb, libxml.rb, solrb_libxml_support.diff
> 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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message