Cocoon 3
  1. Cocoon 3
  2. COCOON3-43

Provide a Consumer that interacts with solr

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major 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 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 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 Scherler added a comment -
        Committed revision 824705.

        Thanks Bertil.
        Show
        Thorsten Scherler added a comment - Committed revision 824705. Thanks Bertil.
        Hide
        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 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 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 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 Poetz added a comment -
        Thanks, I removed the interface.
        Show
        Reinhard Poetz added a comment - Thanks, I removed the interface.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development