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

A DataSource to read data from a field as a reader

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.4
    • Labels:
      None

      Description

      This can be useful for users who has a DB field containing xml and wish to use a nested XPathEntityProcessor

      The datasouce may be configured as follows

      <datasource name="f1" type="FieldReaderDataSource" />
      

      The enity which uses this datasource must keep the url value as the varaible name url="field-name"

      The fieldname must be resolvable from VariableResolver

      This may be used with any EntityProcessor which uses a DataSource<Reader> eg:XPathEntityProcessor

      1. SOLR-833.patch
        15 kB
        Shalin Shekhar Mangar
      2. SOLR-833.patch
        10 kB
        Noble Paul
      3. SOLR-833.patch
        3 kB
        Noble Paul

        Issue Links

          Activity

          Hide
          noble.paul Noble Paul added a comment -

          supports String ,BLOB, CLOB data types
          there is an extra field (in the entity) 'encoding' for BLOB types

          Show
          noble.paul Noble Paul added a comment - supports String ,BLOB, CLOB data types there is an extra field (in the entity) 'encoding' for BLOB types
          Hide
          noble.paul Noble Paul added a comment -

          added testcase

          Show
          noble.paul Noble Paul added a comment - added testcase
          Hide
          shalinmangar Shalin Shekhar Mangar added a comment -

          Bringing patch in sync with trunk (it broke due to to SOLR-824 commit).

          This patch also has a few changes which make writing tests for DIH easier. Now we do not need schema or solrconfig to test DIH features. I'll commit this shortly.

          Show
          shalinmangar Shalin Shekhar Mangar added a comment - Bringing patch in sync with trunk (it broke due to to SOLR-824 commit). This patch also has a few changes which make writing tests for DIH easier. Now we do not need schema or solrconfig to test DIH features. I'll commit this shortly.
          Hide
          shalinmangar Shalin Shekhar Mangar added a comment -

          Committed revision 713343.

          Thanks Noble!

          Show
          shalinmangar Shalin Shekhar Mangar added a comment - Committed revision 713343. Thanks Noble!
          Hide
          gsingers Grant Ingersoll added a comment -

          Bulk close for Solr 1.4

          Show
          gsingers Grant Ingersoll added a comment - Bulk close for Solr 1.4

            People

            • Assignee:
              shalinmangar Shalin Shekhar Mangar
              Reporter:
              noble.paul Noble Paul
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development