Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-3096

A LuCas extension that allows ro index the Lucene documents created by LuCas into a Solr server.

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.4.0Addons
    • None
    • Sandbox-Lucas
    • None

    Description

      Add a UIMA component extending LuceneDocumentAE that converts the Lucene document instances created by LuCas into Solr's PreAnalyzed field format (http://wiki.apache.org/solr/PreAnalyzedField). The converted documents are then sent in batches to Solr using the SolrJ API.
      On the Solr side, PreAnalyzedUpdateProcessorFactory (http://lucene.apache.org/solr/4_3_1/solr-core/org/apache/solr/update/processor/FieldMutatingUpdateProcessorFactory.html) can be used to restrict the pre-analyzed field values to an existing Solr schema. In case that the LuCas mapping file matches the Solr schema, it is easy as this:
      In solrconfig.xml, add this updateRequestProcessorChain:

      <updateRequestProcessorChain name="pre-analyzed-json">
      <processor class="solr.PreAnalyzedUpdateProcessorFactory">
      <str name="fieldRegex">.*</str>
      <str name="parser">json</str>
      </processor>
      <processor class="solr.RunUpdateProcessorFactory" />
      </updateRequestProcessorChain>

      Then, add this chain to the default update handler:

      <requestHandler name="/update" class="solr.UpdateRequestHandler">
      <lst name="defaults">
      <str name="update.chain">pre-analyzed-json</str>
      </lst>
      </requestHandler>

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            chew Erik Faessler

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment