Uploaded image for project: 'Cocoon 3'
  1. Cocoon 3
  2. COCOON3-43

Provide a Consumer that interacts with solr

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cocoon-sax
    • Labels:
      None

      Description

      In solr, the org.apache.solr.handler.XMLLoader class allows to save xml documents in a solr index. In the same way, cocoon could provides a SAXConsumer that lets save documents in a solr index.

      The input document should respect a structure as this one:

      <docs>
      <doc>
      <field name="..." boost="...">...</field>
      </doc>
      ...
      </docs>
      1. SolrConsumer.patch
        27 kB
        Bertil Chapuis

        Activity

        Hide
        bertil Bertil Chapuis added a comment -
        The patch contains the SolrConsumer and its unit tests. Thank you to Thorsten Scherler for his comments, feedbacks and changes.
        Show
        bertil Bertil Chapuis added a comment - The patch contains the SolrConsumer and its unit tests. Thank you to Thorsten Scherler for his comments, feedbacks and changes.
        Hide
        thorsten Thorsten Scherler added a comment -
        Committed revision 824705.

        Thanks Bertil.
        Show
        thorsten Thorsten Scherler added a comment - Committed revision 824705. Thanks Bertil.
        Hide
        reinhard@apache.org Reinhard Poetz added a comment -
        The SolrConsumer inherits from AbstractSAXTransformer now and was able to remove a lot of delegation code which is covered by the abstract transformer.

        Could you please cross-check if this works for you too? Thanks!

        Show
        reinhard@apache.org Reinhard Poetz added a comment - The SolrConsumer inherits from AbstractSAXTransformer now and was able to remove a lot of delegation code which is covered by the abstract transformer. Could you please cross-check if this works for you too? Thanks!
        Hide
        bertil Bertil Chapuis added a comment -
        Every thing works well for me. It's much more clean now. You can even remove the SAXConsumer implementation since the AbstractSAXTransformer already implements it. Best regards.
        Show
        bertil Bertil Chapuis added a comment - Every thing works well for me. It's much more clean now. You can even remove the SAXConsumer implementation since the AbstractSAXTransformer already implements it. Best regards.
        Hide
        reinhard@apache.org Reinhard Poetz added a comment -
        Thanks, I removed the interface.
        Show
        reinhard@apache.org Reinhard Poetz added a comment - Thanks, I removed the interface.

          People

          • Assignee:
            Unassigned
            Reporter:
            bertil Bertil Chapuis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development