Package org.apache.solr.uima.processor

Examples of org.apache.solr.uima.processor.UIMAToSolrMapper


        if (text != null && text.length() > 0) {
          /* process the text value */
          JCas jcas = UIMAAnalyzersUtils.getInstance().analyzeAsynchronously(new StringReader(text),
                  solrUIMAConfiguration.getAePath()).getJCas();

          UIMAToSolrMapper uimaToSolrMapper = new UIMAToSolrMapper(solrInputDocument, jcas);
          /* get field mapping from config */
          /* map type features on fields */
          for (String typeFQN : solrUIMAConfiguration.getTypesFeaturesFieldsMapping().keySet()) {
            uimaToSolrMapper.map(typeFQN, solrUIMAConfiguration.getTypesFeaturesFieldsMapping().get(typeFQN));
          }
        }
      }
    } catch (Exception e) {
      String logField = solrUIMAConfiguration.getLogField();
View Full Code Here

TOP

Related Classes of org.apache.solr.uima.processor.UIMAToSolrMapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.