You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ar...@apache.org on 2018/07/08 13:56:39 UTC
[6/7] lucene-solr:branch_7x: SOLR-11694: Remove outdated UIMA module
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/analysis/uima/src/test-files/uima/TestPoSTaggerAE.xml
----------------------------------------------------------------------
diff --git a/lucene/analysis/uima/src/test-files/uima/TestPoSTaggerAE.xml b/lucene/analysis/uima/src/test-files/uima/TestPoSTaggerAE.xml
deleted file mode 100644
index eede632..0000000
--- a/lucene/analysis/uima/src/test-files/uima/TestPoSTaggerAE.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
- <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
- <primitive>true</primitive>
- <annotatorImplementationName>org.apache.lucene.analysis.uima.an.SamplePoSTagger</annotatorImplementationName>
- <analysisEngineMetaData>
- <name>DummyPoSTagger</name>
- <description/>
- <version>1.0</version>
- <vendor>ASF</vendor>
- <capabilities>
- <capability>
- <inputs>
- <type allAnnotatorFeatures="true">org.apache.lucene.uima.ts.TokenAnnotation</type>
- </inputs>
- <outputs>
- <type allAnnotatorFeatures="true">org.apache.lucene.uima.ts.TokenAnnotation</type>
- </outputs>
- <languagesSupported/>
- </capability>
- </capabilities>
- <operationalProperties>
- <modifiesCas>true</modifiesCas>
- <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
- <outputsNewCASes>false</outputsNewCASes>
- </operationalProperties>
- </analysisEngineMetaData>
-</analysisEngineDescription>
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/analysis/uima/src/test-files/uima/TestWSTokenizerAE.xml
----------------------------------------------------------------------
diff --git a/lucene/analysis/uima/src/test-files/uima/TestWSTokenizerAE.xml b/lucene/analysis/uima/src/test-files/uima/TestWSTokenizerAE.xml
deleted file mode 100644
index b0624eb..0000000
--- a/lucene/analysis/uima/src/test-files/uima/TestWSTokenizerAE.xml
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
- <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
- <primitive>true</primitive>
- <annotatorImplementationName>org.apache.lucene.analysis.uima.an.SampleWSTokenizerAnnotator</annotatorImplementationName>
- <analysisEngineMetaData>
- <name>WSTokenizer</name>
- <version>1.0</version>
- <vendor>ASF</vendor>
- <configurationParameters>
- <configurationParameter>
- <name>line-end</name>
- <description>
- the string used as line end
- </description>
- <type>String</type>
- <multiValued>false</multiValued>
- <mandatory>false</mandatory>
- </configurationParameter>
- </configurationParameters>
- <configurationParameterSettings>
- <nameValuePair>
- <name>line-end</name>
- <value>
- <string>\n</string>
- </value>
- </nameValuePair>
- </configurationParameterSettings>
- <typeSystemDescription>
- <types>
- <typeDescription>
- <name>org.apache.lucene.uima.ts.TokenAnnotation</name>
- <supertypeName>uima.tcas.Annotation</supertypeName>
- <features>
- <featureDescription>
- <name>pos</name>
- <rangeTypeName>uima.cas.String</rangeTypeName>
- </featureDescription>
- </features>
- </typeDescription>
- <typeDescription>
- <name>org.apache.lucene.uima.ts.SentenceAnnotation</name>
- <supertypeName>uima.tcas.Annotation</supertypeName>
- </typeDescription>
- </types>
- </typeSystemDescription>
- <capabilities>
- <capability>
- <inputs/>
- <outputs>
- <type allAnnotatorFeatures="true">org.apache.lucene.uima.ts.TokenAnnotation</type>
- <type allAnnotatorFeatures="true">org.apache.lucene.uima.ts.SentenceAnnotation</type>
- </outputs>
- </capability>
- </capabilities>
- <operationalProperties>
- <modifiesCas>true</modifiesCas>
- <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
- <outputsNewCASes>false</outputsNewCASes>
- </operationalProperties>
- </analysisEngineMetaData>
-</analysisEngineDescription>
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/UIMABaseAnalyzerTest.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/UIMABaseAnalyzerTest.java b/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/UIMABaseAnalyzerTest.java
deleted file mode 100644
index 5ad24ae..0000000
--- a/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/UIMABaseAnalyzerTest.java
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.lucene.analysis.uima;
-
-
-import org.apache.lucene.analysis.Analyzer;
-import org.apache.lucene.analysis.BaseTokenStreamTestCase;
-import org.apache.lucene.analysis.TokenStream;
-import org.apache.lucene.document.Document;
-import org.apache.lucene.document.Field;
-import org.apache.lucene.document.TextField;
-import org.apache.lucene.index.DirectoryReader;
-import org.apache.lucene.index.IndexWriter;
-import org.apache.lucene.index.IndexWriterConfig;
-import org.apache.lucene.search.IndexSearcher;
-import org.apache.lucene.search.MatchAllDocsQuery;
-import org.apache.lucene.search.TopDocs;
-import org.apache.lucene.store.Directory;
-import org.apache.lucene.store.RAMDirectory;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Testcase for {@link UIMABaseAnalyzer}
- */
-public class UIMABaseAnalyzerTest extends BaseTokenStreamTestCase {
-
- private UIMABaseAnalyzer analyzer;
-
- @Override
- @Before
- public void setUp() throws Exception {
- super.setUp();
- analyzer = new UIMABaseAnalyzer("/uima/AggregateSentenceAE.xml", "org.apache.uima.TokenAnnotation", null);
- }
-
- @Override
- @After
- public void tearDown() throws Exception {
- analyzer.close();
- super.tearDown();
- }
-
- @Test
- public void baseUIMAAnalyzerStreamTest() throws Exception {
- TokenStream ts = analyzer.tokenStream("text", "the big brown fox jumped on the wood");
- assertTokenStreamContents(ts, new String[]{"the", "big", "brown", "fox", "jumped", "on", "the", "wood"});
- }
-
- @Test
- public void baseUIMAAnalyzerIntegrationTest() throws Exception {
- Directory dir = new RAMDirectory();
- IndexWriter writer = new IndexWriter(dir, new IndexWriterConfig(analyzer));
- // add the first doc
- Document doc = new Document();
- String dummyTitle = "this is a dummy title ";
- doc.add(new TextField("title", dummyTitle, Field.Store.YES));
- String dummyContent = "there is some content written here";
- doc.add(new TextField("contents", dummyContent, Field.Store.YES));
- writer.addDocument(doc);
- writer.commit();
-
- // try the search over the first doc
- DirectoryReader directoryReader = DirectoryReader.open(dir);
- IndexSearcher indexSearcher = newSearcher(directoryReader);
- TopDocs result = indexSearcher.search(new MatchAllDocsQuery(), 1);
- assertTrue(result.totalHits > 0);
- Document d = indexSearcher.doc(result.scoreDocs[0].doc);
- assertNotNull(d);
- assertNotNull(d.getField("title"));
- assertEquals(dummyTitle, d.getField("title").stringValue());
- assertNotNull(d.getField("contents"));
- assertEquals(dummyContent, d.getField("contents").stringValue());
-
- // add a second doc
- doc = new Document();
- String dogmasTitle = "dogmas";
- doc.add(new TextField("title", dogmasTitle, Field.Store.YES));
- String dogmasContents = "white men can't jump";
- doc.add(new TextField("contents", dogmasContents, Field.Store.YES));
- writer.addDocument(doc);
- writer.commit();
-
- directoryReader.close();
- directoryReader = DirectoryReader.open(dir);
- indexSearcher = newSearcher(directoryReader);
- result = indexSearcher.search(new MatchAllDocsQuery(), 2);
- Document d1 = indexSearcher.doc(result.scoreDocs[1].doc);
- assertNotNull(d1);
- assertNotNull(d1.getField("title"));
- assertEquals(dogmasTitle, d1.getField("title").stringValue());
- assertNotNull(d1.getField("contents"));
- assertEquals(dogmasContents, d1.getField("contents").stringValue());
-
- // do a matchalldocs query to retrieve both docs
- result = indexSearcher.search(new MatchAllDocsQuery(), 2);
- assertEquals(2, result.totalHits);
- writer.close();
- indexSearcher.getIndexReader().close();
- dir.close();
- }
-
- @Test @AwaitsFix(bugUrl = "https://issues.apache.org/jira/browse/LUCENE-3869")
- public void testRandomStrings() throws Exception {
- Analyzer analyzer = new UIMABaseAnalyzer("/uima/TestAggregateSentenceAE.xml", "org.apache.lucene.uima.ts.TokenAnnotation", null);
- checkRandomData(random(), analyzer, 100 * RANDOM_MULTIPLIER);
- analyzer.close();
- }
-
- @Test @AwaitsFix(bugUrl = "https://issues.apache.org/jira/browse/LUCENE-3869")
- public void testRandomStringsWithConfigurationParameters() throws Exception {
- Map<String, Object> cp = new HashMap<>();
- cp.put("line-end", "\r");
- Analyzer analyzer = new UIMABaseAnalyzer("/uima/TestWSTokenizerAE.xml", "org.apache.lucene.uima.ts.TokenAnnotation", cp);
- checkRandomData(random(), analyzer, 100 * RANDOM_MULTIPLIER);
- analyzer.close();
- }
-
-}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/UIMATypeAwareAnalyzerTest.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/UIMATypeAwareAnalyzerTest.java b/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/UIMATypeAwareAnalyzerTest.java
deleted file mode 100644
index 020c640..0000000
--- a/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/UIMATypeAwareAnalyzerTest.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.lucene.analysis.uima;
-
-
-import org.apache.lucene.analysis.Analyzer;
-import org.apache.lucene.analysis.BaseTokenStreamTestCase;
-import org.apache.lucene.analysis.TokenStream;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- * Testcase for {@link UIMATypeAwareAnalyzer}
- */
-public class UIMATypeAwareAnalyzerTest extends BaseTokenStreamTestCase {
-
- private UIMATypeAwareAnalyzer analyzer;
-
- @Override
- @Before
- public void setUp() throws Exception {
- super.setUp();
- analyzer = new UIMATypeAwareAnalyzer("/uima/AggregateSentenceAE.xml",
- "org.apache.uima.TokenAnnotation", "posTag", null);
- }
-
- @Override
- @After
- public void tearDown() throws Exception {
- analyzer.close();
- super.tearDown();
- }
-
- @Test
- public void baseUIMATypeAwareAnalyzerStreamTest() throws Exception {
-
- // create a token stream
- TokenStream ts = analyzer.tokenStream("text", "the big brown fox jumped on the wood");
-
- // check that 'the big brown fox jumped on the wood' tokens have the expected PoS types
- assertTokenStreamContents(ts,
- new String[]{"the", "big", "brown", "fox", "jumped", "on", "the", "wood"},
- new String[]{"at", "jj", "jj", "nn", "vbd", "in", "at", "nn"});
-
- }
-
- @Test @AwaitsFix(bugUrl = "https://issues.apache.org/jira/browse/LUCENE-3869")
- public void testRandomStrings() throws Exception {
- Analyzer analyzer = new UIMATypeAwareAnalyzer("/uima/TestAggregateSentenceAE.xml",
- "org.apache.lucene.uima.ts.TokenAnnotation", "pos", null);
- checkRandomData(random(), analyzer, 100 * RANDOM_MULTIPLIER);
- analyzer.close();
- }
-
-}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/ae/AEProviderFactoryTest.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/ae/AEProviderFactoryTest.java b/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/ae/AEProviderFactoryTest.java
deleted file mode 100644
index 047e119..0000000
--- a/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/ae/AEProviderFactoryTest.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.lucene.analysis.uima.ae;
-
-
-import org.junit.Test;
-
-import java.util.HashMap;
-
-import static org.junit.Assert.assertTrue;
-
-/**
- * Testcase for {@link AEProviderFactory}
- */
-public class AEProviderFactoryTest {
-
- @Test
- public void testCorrectCaching() throws Exception {
- AEProvider aeProvider = AEProviderFactory.getInstance().getAEProvider("/uima/TestAggregateSentenceAE.xml");
- assertTrue(aeProvider == AEProviderFactory.getInstance().getAEProvider("/uima/TestAggregateSentenceAE.xml"));
- }
-
- @Test
- public void testCorrectCachingWithParameters() throws Exception {
- AEProvider aeProvider = AEProviderFactory.getInstance().getAEProvider("prefix", "/uima/TestAggregateSentenceAE.xml",
- new HashMap<String, Object>());
- assertTrue(aeProvider == AEProviderFactory.getInstance().getAEProvider("prefix", "/uima/TestAggregateSentenceAE.xml",
- new HashMap<String, Object>()));
- }
-}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/ae/BasicAEProviderTest.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/ae/BasicAEProviderTest.java b/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/ae/BasicAEProviderTest.java
deleted file mode 100644
index 1d8b251..0000000
--- a/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/ae/BasicAEProviderTest.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.lucene.analysis.uima.ae;
-
-
-import org.apache.uima.analysis_engine.AnalysisEngine;
-import org.junit.Test;
-
-import static org.junit.Assert.assertNotNull;
-
-/**
- * TestCase for {@link BasicAEProvider}
- */
-public class BasicAEProviderTest {
-
- @Test
- public void testBasicInitialization() throws Exception {
- AEProvider basicAEProvider = new BasicAEProvider("/uima/TestEntityAnnotatorAE.xml");
- AnalysisEngine analysisEngine = basicAEProvider.getAE();
- assertNotNull(analysisEngine);
- }
-}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/ae/OverridingParamsAEProviderTest.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/ae/OverridingParamsAEProviderTest.java b/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/ae/OverridingParamsAEProviderTest.java
deleted file mode 100644
index 923210b..0000000
--- a/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/ae/OverridingParamsAEProviderTest.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.lucene.analysis.uima.ae;
-
-
-import org.apache.lucene.util.LuceneTestCase;
-import org.apache.uima.analysis_engine.AnalysisEngine;
-import org.apache.uima.resource.ResourceInitializationException;
-import org.junit.Test;
-
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * TestCase for {@link OverridingParamsAEProvider}
- */
-public class OverridingParamsAEProviderTest extends LuceneTestCase {
-
- @Test
- public void testNullMapInitialization() throws Exception {
- expectThrows(ResourceInitializationException.class, () -> {
- AEProvider aeProvider = new OverridingParamsAEProvider("/uima/TestEntityAnnotatorAE.xml", null);
- aeProvider.getAE();
- });
- }
-
- @Test
- public void testEmptyMapInitialization() throws Exception {
- AEProvider aeProvider = new OverridingParamsAEProvider("/uima/TestEntityAnnotatorAE.xml", new HashMap<String, Object>());
- AnalysisEngine analysisEngine = aeProvider.getAE();
- assertNotNull(analysisEngine);
- }
-
- @Test
- public void testOverridingParamsInitialization() throws Exception {
- Map<String, Object> runtimeParameters = new HashMap<>();
- runtimeParameters.put("ngramsize", "3");
- AEProvider aeProvider = new OverridingParamsAEProvider("/uima/AggregateSentenceAE.xml", runtimeParameters);
- AnalysisEngine analysisEngine = aeProvider.getAE();
- assertNotNull(analysisEngine);
- Object parameterValue = analysisEngine.getConfigParameterValue("ngramsize");
- assertNotNull(parameterValue);
- assertEquals(Integer.valueOf(3), Integer.valueOf(parameterValue.toString()));
- }
-}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/an/SampleEntityAnnotator.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/an/SampleEntityAnnotator.java b/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/an/SampleEntityAnnotator.java
deleted file mode 100644
index 9189ba1..0000000
--- a/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/an/SampleEntityAnnotator.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.lucene.analysis.uima.an;
-
-
-import org.apache.uima.TokenAnnotation;
-import org.apache.uima.analysis_component.JCasAnnotator_ImplBase;
-import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
-import org.apache.uima.cas.Feature;
-import org.apache.uima.cas.Type;
-import org.apache.uima.cas.text.AnnotationFS;
-import org.apache.uima.jcas.JCas;
-import org.apache.uima.jcas.tcas.Annotation;
-
-/**
- * Dummy implementation of an entity annotator to tag tokens as certain types of entities
- */
-public class SampleEntityAnnotator extends JCasAnnotator_ImplBase {
-
- private static final String NP = "np";
- private static final String NPS = "nps";
- private static final String TYPE_NAME = "org.apache.lucene.analysis.uima.ts.EntityAnnotation";
- private static final String ENTITY_FEATURE = "entity";
- private static final String NAME_FEATURE = "entity";
-
- @Override
- public void process(JCas jcas) throws AnalysisEngineProcessException {
- Type type = jcas.getCas().getTypeSystem().getType(TYPE_NAME);
- Feature entityFeature = type.getFeatureByBaseName(ENTITY_FEATURE);
- Feature nameFeature = type.getFeatureByBaseName(NAME_FEATURE);
-
- for (Annotation annotation : jcas.getAnnotationIndex(TokenAnnotation.type)) {
- String tokenPOS = ((TokenAnnotation) annotation).getPosTag();
-
- if (NP.equals(tokenPOS) || NPS.equals(tokenPOS)) {
- AnnotationFS entityAnnotation = jcas.getCas().createAnnotation(type, annotation.getBegin(), annotation.getEnd());
-
- entityAnnotation.setStringValue(entityFeature, annotation.getCoveredText());
-
- String name = "OTHER"; // "OTHER" makes no sense. In practice, "PERSON", "COUNTRY", "E-MAIL", etc.
- if (annotation.getCoveredText().equals("Apache"))
- name = "ORGANIZATION";
- entityAnnotation.setStringValue(nameFeature, name);
-
- jcas.addFsToIndexes(entityAnnotation);
- }
- }
- }
-
-}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/an/SamplePoSTagger.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/an/SamplePoSTagger.java b/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/an/SamplePoSTagger.java
deleted file mode 100644
index 520b1a9..0000000
--- a/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/an/SamplePoSTagger.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.lucene.analysis.uima.an;
-
-
-import org.apache.uima.analysis_component.JCasAnnotator_ImplBase;
-import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
-import org.apache.uima.cas.Feature;
-import org.apache.uima.cas.Type;
-import org.apache.uima.jcas.JCas;
-import org.apache.uima.jcas.tcas.Annotation;
-
-/**
- * Dummy implementation of a PoS tagger to add part of speech as token types
- */
-public class SamplePoSTagger extends JCasAnnotator_ImplBase {
-
- private static final String NUM = "NUM";
- private static final String WORD = "WORD";
- private static final String TYPE_NAME = "org.apache.lucene.uima.ts.TokenAnnotation";
- private static final String FEATURE_NAME = "pos";
-
- @Override
- public void process(JCas jcas) throws AnalysisEngineProcessException {
- Type type = jcas.getCas().getTypeSystem().getType(TYPE_NAME);
- Feature posFeature = type.getFeatureByBaseName(FEATURE_NAME);
-
- for (Annotation annotation : jcas.getAnnotationIndex(type)) {
- String text = annotation.getCoveredText();
- String pos = extractPoS(text);
- annotation.setStringValue(posFeature, pos);
- }
- }
-
- private String extractPoS(String text) {
- try {
- Double.valueOf(text);
- return NUM;
- } catch (Exception e) {
- return WORD;
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/an/SampleWSTokenizerAnnotator.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/an/SampleWSTokenizerAnnotator.java b/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/an/SampleWSTokenizerAnnotator.java
deleted file mode 100644
index 3e0da24..0000000
--- a/lucene/analysis/uima/src/test/org/apache/lucene/analysis/uima/an/SampleWSTokenizerAnnotator.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.lucene.analysis.uima.an;
-
-
-import org.apache.uima.UimaContext;
-import org.apache.uima.analysis_component.JCasAnnotator_ImplBase;
-import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
-import org.apache.uima.cas.Type;
-import org.apache.uima.cas.text.AnnotationFS;
-import org.apache.uima.jcas.JCas;
-import org.apache.uima.resource.ResourceInitializationException;
-
-/**
- * Dummy implementation of a UIMA based whitespace tokenizer
- */
-public class SampleWSTokenizerAnnotator extends JCasAnnotator_ImplBase {
-
- private final static String TOKEN_TYPE = "org.apache.lucene.uima.ts.TokenAnnotation";
- private final static String SENTENCE_TYPE = "org.apache.lucene.uima.ts.SentenceAnnotation";
- private String lineEnd;
- private static final String WHITESPACE = " ";
-
- @Override
- public void initialize(UimaContext aContext) throws ResourceInitializationException {
- super.initialize(aContext);
- lineEnd = String.valueOf(aContext.getConfigParameterValue("line-end"));
- }
-
- @Override
- public void process(JCas jCas) throws AnalysisEngineProcessException {
- Type sentenceType = jCas.getCas().getTypeSystem().getType(SENTENCE_TYPE);
- Type tokenType = jCas.getCas().getTypeSystem().getType(TOKEN_TYPE);
- int i = 0;
- for (String sentenceString : jCas.getDocumentText().split(lineEnd)) {
- // add the sentence
- AnnotationFS sentenceAnnotation = jCas.getCas().createAnnotation(sentenceType, i, sentenceString.length());
- jCas.addFsToIndexes(sentenceAnnotation);
- i += sentenceString.length();
- }
-
- // get tokens
- int j = 0;
- for (String tokenString : jCas.getDocumentText().split(WHITESPACE)) {
- int tokenLength = tokenString.length();
- AnnotationFS tokenAnnotation = jCas.getCas().createAnnotation(tokenType, j, j + tokenLength);
- jCas.addFsToIndexes(tokenAnnotation);
- j += tokenLength;
- }
- }
-
-}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/build.xml
----------------------------------------------------------------------
diff --git a/lucene/build.xml b/lucene/build.xml
index 0061d29..b6131af 100644
--- a/lucene/build.xml
+++ b/lucene/build.xml
@@ -167,7 +167,6 @@
<check-missing-javadocs dir="build/docs/analyzers-phonetic" level="method"/>
<!-- analyzers-smartcn: problems -->
<check-missing-javadocs dir="build/docs/analyzers-stempel" level="method"/>
- <!-- analyzers-uima: problems -->
<!-- benchmark: problems -->
<check-missing-javadocs dir="build/docs/classification" level="method"/>
<!-- codecs: problems -->
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/common-build.xml
----------------------------------------------------------------------
diff --git a/lucene/common-build.xml b/lucene/common-build.xml
index dafe935..261f8e3 100644
--- a/lucene/common-build.xml
+++ b/lucene/common-build.xml
@@ -1993,8 +1993,6 @@ ${ant.project.name}.test.dependencies=${test.classpath.list}
<pattern substring="Produced by GNUPLOT"/>
<!-- snowball stemmers generated by snowball compiler -->
<pattern substring="This file was generated automatically by the Snowball to Java compiler"/>
- <!-- uima tests generated by JCasGen -->
- <pattern substring="First created by JCasGen"/>
<!-- parsers generated by antlr -->
<pattern substring="ANTLR GENERATED CODE"/>
</rat:substringMatcher>
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java b/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java
index 6bdc943..86766d2 100644
--- a/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java
+++ b/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java
@@ -77,8 +77,6 @@ import org.apache.lucene.util.Version;
* Analyzer for Simplified Chinese, which indexes words.
* <li><a href="{@docRoot}/../analyzers-stempel/overview-summary.html">Stempel</a>:
* Algorithmic Stemmer for the Polish Language.
- * <li><a href="{@docRoot}/../analyzers-uima/overview-summary.html">UIMA</a>:
- * Analysis integration with Apache UIMA.
* </ul>
*/
public abstract class Analyzer implements Closeable {
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/ivy-versions.properties
----------------------------------------------------------------------
diff --git a/lucene/ivy-versions.properties b/lucene/ivy-versions.properties
index ffa0fe2..c67c077 100644
--- a/lucene/ivy-versions.properties
+++ b/lucene/ivy-versions.properties
@@ -51,7 +51,6 @@ com.sun.jersey.version = 1.9
/commons-codec/commons-codec = 1.10
/commons-collections/commons-collections = 3.2.2
/commons-configuration/commons-configuration = 1.6
-/commons-digester/commons-digester = 2.1
/commons-fileupload/commons-fileupload = 1.3.3
/commons-io/commons-io = 2.5
/commons-lang/commons-lang = 2.6
@@ -205,13 +204,6 @@ org.apache.tika.version = 1.17
/org.apache.tika/tika-parsers = ${org.apache.tika.version}
/org.apache.tika/tika-xmp = ${org.apache.tika.version}
-org.apache.uima.version = 2.3.1
-/org.apache.uima/AlchemyAPIAnnotator = ${org.apache.uima.version}
-/org.apache.uima/OpenCalaisAnnotator = ${org.apache.uima.version}
-/org.apache.uima/Tagger = ${org.apache.uima.version}
-/org.apache.uima/WhitespaceTokenizer = ${org.apache.uima.version}
-/org.apache.uima/uimaj-core = ${org.apache.uima.version}
-
/org.apache.velocity/velocity = 1.7
/org.apache.velocity/velocity-tools = 2.0
/org.apache.xmlbeans/xmlbeans = 2.6.0
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/licenses/Tagger-2.3.1.jar.sha1
----------------------------------------------------------------------
diff --git a/lucene/licenses/Tagger-2.3.1.jar.sha1 b/lucene/licenses/Tagger-2.3.1.jar.sha1
deleted file mode 100644
index c89a998..0000000
--- a/lucene/licenses/Tagger-2.3.1.jar.sha1
+++ /dev/null
@@ -1 +0,0 @@
-cd02db9e8d54decb14cbe303d001d13735237290
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/licenses/Tagger-LICENSE-ASL.txt
----------------------------------------------------------------------
diff --git a/lucene/licenses/Tagger-LICENSE-ASL.txt b/lucene/licenses/Tagger-LICENSE-ASL.txt
deleted file mode 100644
index d645695..0000000
--- a/lucene/licenses/Tagger-LICENSE-ASL.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/licenses/Tagger-NOTICE.txt
----------------------------------------------------------------------
diff --git a/lucene/licenses/Tagger-NOTICE.txt b/lucene/licenses/Tagger-NOTICE.txt
deleted file mode 100644
index f033357..0000000
--- a/lucene/licenses/Tagger-NOTICE.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
-UIMA Annotator: Tagger
-Copyright 2006-2010 The Apache Software Foundation
-
-This product includes software developed at
-The Apache Software Foundation (http://www.apache.org/).
-
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/licenses/WhitespaceTokenizer-2.3.1.jar.sha1
----------------------------------------------------------------------
diff --git a/lucene/licenses/WhitespaceTokenizer-2.3.1.jar.sha1 b/lucene/licenses/WhitespaceTokenizer-2.3.1.jar.sha1
deleted file mode 100644
index 2bc25e5..0000000
--- a/lucene/licenses/WhitespaceTokenizer-2.3.1.jar.sha1
+++ /dev/null
@@ -1 +0,0 @@
-d7b0fd616c4289376c1f59e2a68edfb4cfd6730d
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/licenses/WhitespaceTokenizer-LICENSE-ASL.txt
----------------------------------------------------------------------
diff --git a/lucene/licenses/WhitespaceTokenizer-LICENSE-ASL.txt b/lucene/licenses/WhitespaceTokenizer-LICENSE-ASL.txt
deleted file mode 100644
index d645695..0000000
--- a/lucene/licenses/WhitespaceTokenizer-LICENSE-ASL.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/licenses/WhitespaceTokenizer-NOTICE.txt
----------------------------------------------------------------------
diff --git a/lucene/licenses/WhitespaceTokenizer-NOTICE.txt b/lucene/licenses/WhitespaceTokenizer-NOTICE.txt
deleted file mode 100644
index 8169ca6..0000000
--- a/lucene/licenses/WhitespaceTokenizer-NOTICE.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
-UIMA Annotator: WhitespaceTokenizer
-Copyright 2006-2010 The Apache Software Foundation
-
-This product includes software developed at
-The Apache Software Foundation (http://www.apache.org/).
-
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/licenses/uimaj-core-2.3.1.jar.sha1
----------------------------------------------------------------------
diff --git a/lucene/licenses/uimaj-core-2.3.1.jar.sha1 b/lucene/licenses/uimaj-core-2.3.1.jar.sha1
deleted file mode 100644
index 8f43663..0000000
--- a/lucene/licenses/uimaj-core-2.3.1.jar.sha1
+++ /dev/null
@@ -1 +0,0 @@
-99bf8d75b71410e4d5f2051ae79942721b3a2f60
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/licenses/uimaj-core-LICENSE-ASL.txt
----------------------------------------------------------------------
diff --git a/lucene/licenses/uimaj-core-LICENSE-ASL.txt b/lucene/licenses/uimaj-core-LICENSE-ASL.txt
deleted file mode 100644
index d645695..0000000
--- a/lucene/licenses/uimaj-core-LICENSE-ASL.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/licenses/uimaj-core-NOTICE.txt
----------------------------------------------------------------------
diff --git a/lucene/licenses/uimaj-core-NOTICE.txt b/lucene/licenses/uimaj-core-NOTICE.txt
deleted file mode 100644
index 8f69a54..0000000
--- a/lucene/licenses/uimaj-core-NOTICE.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-
-UIMA Base: uimaj-core
-Copyright 2006-2010 The Apache Software Foundation
-
-This product includes software developed at
-The Apache Software Foundation (http://www.apache.org/).
-
-Portions of Apache UIMA were originally developed by
-International Business Machines Corporation and are
-licensed to the Apache Software Foundation under the
-"Software Grant License Agreement", informally known as the
-"IBM UIMA License Agreement".
-Copyright (c) 2003, 2006 IBM Corporation.
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/module-build.xml
----------------------------------------------------------------------
diff --git a/lucene/module-build.xml b/lucene/module-build.xml
index 9f17c1c..d5798de 100644
--- a/lucene/module-build.xml
+++ b/lucene/module-build.xml
@@ -403,28 +403,6 @@
<property name="analyzers-kuromoji-javadocs.uptodate" value="true"/>
</target>
- <property name="analyzers-uima.jar" value="${common.dir}/build/analysis/uima/lucene-analyzers-uima-${version}.jar"/>
- <target name="check-analyzers-uima-uptodate" unless="analyzers-uima.uptodate">
- <module-uptodate name="analysis/uima" jarfile="${analyzers-uima.jar}" property="analyzers-uima.uptodate"/>
- </target>
- <target name="jar-analyzers-uima" unless="analyzers-uima.uptodate" depends="check-analyzers-uima-uptodate">
- <ant dir="${common.dir}/analysis/uima" target="jar-core" inheritAll="false">
- <propertyset refid="uptodate.and.compiled.properties"/>
- </ant>
- <property name="analyzers-uima.uptodate" value="true"/>
- </target>
-
- <property name="analyzers-uima-javadoc.jar" value="${common.dir}/build/analysis/uima/lucene-analyzers-uima-${version}-javadoc.jar"/>
- <target name="check-analyzers-uima-javadocs-uptodate" unless="analyzers-uima-javadocs.uptodate">
- <module-uptodate name="analysis/uima" jarfile="${analyzers-uima-javadoc.jar}" property="analyzers-uima-javadocs.uptodate"/>
- </target>
- <target name="javadocs-analyzers-uima" unless="analyzers-uima-javadocs.uptodate" depends="check-analyzers-uima-javadocs-uptodate">
- <ant dir="${common.dir}/analysis/uima" target="javadocs" inheritAll="false">
- <propertyset refid="uptodate.and.compiled.properties"/>
- </ant>
- <property name="analyzers-uima-javadocs.uptodate" value="true"/>
- </target>
-
<property name="analyzers-morfologik.jar" value="${common.dir}/build/analysis/morfologik/lucene-analyzers-morfologik-${version}.jar"/>
<fileset id="analyzers-morfologik.fileset" dir="${common.dir}">
<include name="build/analysis/morfologik/lucene-analyzers-morfologik-${version}.jar" />
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/lucene/tools/junit4/tests.policy
----------------------------------------------------------------------
diff --git a/lucene/tools/junit4/tests.policy b/lucene/tools/junit4/tests.policy
index b351b17..c698c2c 100644
--- a/lucene/tools/junit4/tests.policy
+++ b/lucene/tools/junit4/tests.policy
@@ -58,8 +58,7 @@ grant {
permission java.lang.RuntimePermission "fileSystemProvider";
// needed for test of IOUtils.spins (maybe it can be avoided)
permission java.lang.RuntimePermission "getFileStoreAttributes";
- // analyzers/uima: needed by UIMA message localization... (?)
- permission java.lang.RuntimePermission "createSecurityManager";
+ // analyzers/uima: needed by lucene expressions' JavascriptCompiler
permission java.lang.RuntimePermission "createClassLoader";
// needed to test unmap hack on platforms that support it
permission java.lang.RuntimePermission "accessClassInPackage.sun.misc";
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index d7b5b95..71ed621 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -25,7 +25,6 @@ Versions of Major Components
Apache Tika 1.17
Carrot2 3.16.0
Velocity 1.7 and Velocity Tools 2.0
-Apache UIMA 2.3.1
Apache ZooKeeper 3.4.11
Jetty 9.4.11.v20180605
@@ -40,6 +39,8 @@ Upgrade Notes
* SOLR-12395: SignificantTermsQParserPlugin's name is now 'significantTerms' and its old name 'sigificantTerms' is deprecated.
+* SOLR-11694: Extremely outdated UIMA contrib module has been removed
+
New Features
----------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/solr/common-build.xml
----------------------------------------------------------------------
diff --git a/solr/common-build.xml b/solr/common-build.xml
index ef852aa..bfa1a86 100644
--- a/solr/common-build.xml
+++ b/solr/common-build.xml
@@ -248,7 +248,7 @@
<property name="lucenedocs" location="${common.dir}/build/docs"/>
<!-- dependency to ensure all lucene javadocs are present -->
- <target name="lucene-javadocs" depends="javadocs-lucene-core,javadocs-analyzers-common,javadocs-analyzers-icu,javadocs-analyzers-kuromoji,javadocs-analyzers-phonetic,javadocs-analyzers-smartcn,javadocs-analyzers-morfologik,javadocs-analyzers-stempel,javadocs-analyzers-uima,javadocs-backward-codecs,javadocs-codecs,javadocs-expressions,javadocs-suggest,javadocs-grouping,javadocs-queries,javadocs-queryparser,javadocs-highlighter,javadocs-memory,javadocs-misc,javadocs-spatial-extras,javadocs-join,javadocs-test-framework"/>
+ <target name="lucene-javadocs" depends="javadocs-lucene-core,javadocs-analyzers-common,javadocs-analyzers-icu,javadocs-analyzers-kuromoji,javadocs-analyzers-phonetic,javadocs-analyzers-smartcn,javadocs-analyzers-morfologik,javadocs-analyzers-stempel,javadocs-backward-codecs,javadocs-codecs,javadocs-expressions,javadocs-suggest,javadocs-grouping,javadocs-queries,javadocs-queryparser,javadocs-highlighter,javadocs-memory,javadocs-misc,javadocs-spatial-extras,javadocs-join,javadocs-test-framework"/>
<!-- create javadocs for the current module -->
<target name="javadocs" depends="compile-core,define-lucene-javadoc-url,lucene-javadocs,javadocs-solr-core,check-javadocs-uptodate" unless="javadocs-uptodate-${name}">
@@ -313,7 +313,6 @@
<link offline="true" href="${lucene.javadoc.url}analyzers-phonetic" packagelistloc="${lucenedocs}/analyzers-phonetic"/>
<link offline="true" href="${lucene.javadoc.url}analyzers-smartcn" packagelistloc="${lucenedocs}/analyzers-smartcn"/>
<link offline="true" href="${lucene.javadoc.url}analyzers-stempel" packagelistloc="${lucenedocs}/analyzers-stempel"/>
- <link offline="true" href="${lucene.javadoc.url}analyzers-uima" packagelistloc="${lucenedocs}/analyzers-uima"/>
<link offline="true" href="${lucene.javadoc.url}backward-codecs" packagelistloc="${lucenedocs}/backward-codecs"/>
<link offline="true" href="${lucene.javadoc.url}codecs" packagelistloc="${lucenedocs}/codecs"/>
<link offline="true" href="${lucene.javadoc.url}expressions" packagelistloc="${lucenedocs}/expressions"/>
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9cd7daf8/solr/contrib/uima/README.txt
----------------------------------------------------------------------
diff --git a/solr/contrib/uima/README.txt b/solr/contrib/uima/README.txt
deleted file mode 100644
index d32063b..0000000
--- a/solr/contrib/uima/README.txt
+++ /dev/null
@@ -1,109 +0,0 @@
-Apache Solr UIMA Metadata Extraction Library
-
-Introduction
-------------
-This module is intended to be used both as an UpdateRequestProcessor while indexing documents and as a set of tokenizer/filters
-to be configured inside the schema.xml for use during analysis phase.
-UIMAUpdateRequestProcessor purpose is to provide additional on the fly automatically generated fields to the Solr index.
-Such fields could be language, concepts, keywords, sentences, named entities, etc.
-UIMA based tokenizers/filters can be used either inside plain Lucene or as index/query analyzers to be defined
-inside the schema.xml of a Solr core to create/filter tokens using specific UIMA annotations.
-
-
-Getting Started
----------------
-To start using Solr UIMA Metadata Extraction Library you should go through the following configuration steps:
-
-1. copy generated solr-uima jar and its libs (under contrib/uima/lib) inside a Solr libraries directory.
- or set <lib/> tags in solrconfig.xml appropriately to point those jar files.
-
- <lib dir="../../contrib/uima/lib" />
- <lib dir="../../contrib/uima/lucene-libs" />
- <lib dir="../../dist/" regex="solr-uima-\d.*\.jar" />
-
-2. modify your schema.xml adding the fields you want to be hold metadata specifying proper values for type, indexed, stored and multiValued options:
-
- for example you could specify the following
-
- <field name="language" type="string" indexed="true" stored="true" required="false"/>
- <field name="concept" type="string" indexed="true" stored="true" multiValued="true" required="false"/>
- <field name="sentence" type="text" indexed="true" stored="true" multiValued="true" required="false" />
-
-3. modify your solrconfig.xml adding the following snippet:
-
- <updateRequestProcessorChain name="uima">
- <processor class="org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory">
- <lst name="uimaConfig">
- <lst name="runtimeParameters">
- <str name="keyword_apikey">VALID_ALCHEMYAPI_KEY</str>
- <str name="concept_apikey">VALID_ALCHEMYAPI_KEY</str>
- <str name="lang_apikey">VALID_ALCHEMYAPI_KEY</str>
- <str name="cat_apikey">VALID_ALCHEMYAPI_KEY</str>
- <str name="entities_apikey">VALID_ALCHEMYAPI_KEY</str>
- <str name="oc_licenseID">VALID_OPENCALAIS_KEY</str>
- </lst>
- <str name="analysisEngine">/org/apache/uima/desc/OverridingParamsExtServicesAE.xml</str>
- <!-- Set to true if you want to continue indexing even if text processing fails.
- Default is false. That is, Solr throws RuntimeException and
- never indexed documents entirely in your session. -->
- <bool name="ignoreErrors">true</bool>
- <!-- This is optional. It is used for logging when text processing fails.
- If logField is not specified, uniqueKey will be used as logField.
- <str name="logField">id</str>
- -->
- <lst name="analyzeFields">
- <bool name="merge">false</bool>
- <arr name="fields">
- <str>text</str>
- </arr>
- </lst>
- <lst name="fieldMappings">
- <lst name="type">
- <str name="name">org.apache.uima.alchemy.ts.concept.ConceptFS</str>
- <lst name="mapping">
- <str name="feature">text</str>
- <str name="field">concept</str>
- </lst>
- </lst>
- <lst name="type">
- <str name="name">org.apache.uima.alchemy.ts.language.LanguageFS</str>
- <lst name="mapping">
- <str name="feature">language</str>
- <str name="field">language</str>
- </lst>
- </lst>
- <lst name="type">
- <str name="name">org.apache.uima.SentenceAnnotation</str>
- <lst name="mapping">
- <str name="feature">coveredText</str>
- <str name="field">sentence</str>
- </lst>
- </lst>
- </lst>
- </lst>
- </processor>
- <processor class="solr.LogUpdateProcessorFactory" />
- <processor class="solr.RunUpdateProcessorFactory" />
- </updateRequestProcessorChain>
-
- where VALID_ALCHEMYAPI_KEY is your AlchemyAPI Access Key. You need to register AlchemyAPI Access
- key to exploit the AlchemyAPI services: http://www.alchemyapi.com/api/register.html
-
- where VALID_OPENCALAIS_KEY is your Calais Service Key. You need to register Calais Service
- key to exploit the Calais services: http://www.opencalais.com/apikey
-
- the analysisEngine must contain an AE descriptor inside the specified path in the classpath
-
- the analyzeFields must contain the input fields that need to be analyzed by UIMA,
- if merge=true then their content will be merged and analyzed only once
-
- field mapping describes which features of which types should go in a field
-
-4. in your solrconfig.xml replace the existing default (<requestHandler name="/update"...) or create a new UpdateRequestHandler with the following:
- <requestHandler name="/update" class="solr.XmlUpdateRequestHandler">
- <lst name="defaults">
- <str name="update.processor">uima</str>
- </lst>
- </requestHandler>
-
-Once you're done with the configuration you can index documents which will be automatically enriched with the specified fields