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

XmlCharFilter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0-ALPHA
    • None
    • Schema and Analysis
    • None

    Description

      This CharFilter processes incoming XML using the Woodstox parser, stripping all non-text content and remembering offsets, just like HTMLCharFilter, but respecting XML conventions like XML entities defined in a DTD. XmlCharFilter also provides the ability to exclude (and include) the content of certain named elements.

      In order to compute character offsets properly when mixed line termination styles are present (\r, \r\n), or when XML character entities (<, ", &) are present, we require a newer version of Woodstox (4.1.1) than is currently in solr/lib. The earlier versions of the parser could not report these entity events, so we couldn't tell the difference between "<" and "<" and the offsets could be wrong. The upgraded version is in the patch.

      Attachments

        1. SOLR-2597.patch
          26 kB
          Michael Sokolov
        2. SOLR-2597.patch
          31 kB
          Michael Sokolov

        Activity

          People

            Unassigned Unassigned
            sokolov Michael Sokolov
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: