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

DIH XPathRecordReader cannot handle two ways to read same attribute together

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 4.3
    • 4.9, 6.0
    • None

    Description

      From my comment on solr-user mailing list:

      I think there is a bug here. In my tests, xpath="/root/a/@y" works, xpath="/root/a[@x='1']/@y" also works. But if you use them together the one which is defined last returns null. I'll open an issue.

      http://lucene.472066.n3.nabble.com/Problem-with-xpath-expression-in-data-config-xml-td4066744.html

      Attachments

        1. SOLR-4875.patch
          2 kB
          Shalin Shekhar Mangar

        Issue Links

          Activity

            People

              noble.paul Noble Paul
              shalin Shalin Shekhar Mangar
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: