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/07 15:04:42 UTC
[2/7] lucene-solr:master: SOLR-11694: Remove outdated UIMA module
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b7d14c50/solr/contrib/uima/src/test-files/uima/uima-tokenizers-solrconfig.xml
----------------------------------------------------------------------
diff --git a/solr/contrib/uima/src/test-files/uima/uima-tokenizers-solrconfig.xml b/solr/contrib/uima/src/test-files/uima/uima-tokenizers-solrconfig.xml
deleted file mode 100644
index 55cd3fa..0000000
--- a/solr/contrib/uima/src/test-files/uima/uima-tokenizers-solrconfig.xml
+++ /dev/null
@@ -1,653 +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.
- -->
- <!--
- For more details about configurations options that may appear in
- this file, see http://wiki.apache.org/solr/SolrConfigXml.
-
- Specifically, the Solr Config can support XInclude, which may make
- it easier to manage the configuration. See
- https://issues.apache.org/jira/browse/SOLR-1167
- -->
-<config xmlns:xi="http://www.w3.org/2001/XInclude">
- <luceneMatchVersion>${tests.luceneMatchVersion:LATEST}</luceneMatchVersion>
- <indexConfig>
- <useCompoundFile>${useCompoundFile:false}</useCompoundFile>
- </indexConfig>
- <!--
- lib directives can be used to instruct Solr to load any Jars
- identified and use them to resolve any "plugins" specified in your
- solrconfig.xml or schema.xml (ie: Analyzers, Request Handlers,
- etc...). All directories and paths are resolved relative the
- instanceDir. If a "./lib" directory exists in your instanceDir, all
- files found in it are included as if you had used the following
- syntax... <lib dir="./lib" />
- -->
- <!--
- A dir option by itself adds any files found in the directory to the
- classpath, this is useful for including all jars in a directory.
- -->
- <lib dir="../../contrib/extraction/lib" />
- <!--
- When a regex is specified in addition to a directory, only the files
- in that directory which completely match the regex (anchored on both
- ends) will be included.
- -->
- <lib dir="../../dist/" regex="solr-cell-\d.*\.jar" />
- <!--
- If a dir option (with or without a regex) is used and nothing is
- found that matches, it will be ignored
- -->
- <lib dir="/total/crap/dir/ignored" />
- <!--
- an exact path can be used to specify a specific file. This will
- cause a serious error to be logged if it can't be loaded. <lib
- path="../a-jar-that-does-not-exist.jar" />
- -->
-
- <directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.RAMDirectoryFactory}"/>
- <schemaFactory class="ClassicIndexSchemaFactory"/>
-
- <!--
- Used to specify an alternate directory to hold all index data other
- than the default ./data under the Solr home. If replication is in
- use, this should match the replication configuration.
- -->
- <dataDir>${solr.data.dir:}</dataDir>
-
- <!--
- Enables JMX if and only if an existing MBeanServer is found, use
- this if you want to configure JMX through JVM parameters. Remove
- this to disable exposing Solr configuration and statistics to JMX.
-
- If you want to connect to a particular server, specify the agentId
- e.g. <jmx agentId="myAgent" /> If you want to start a new
- MBeanServer, specify the serviceUrl e.g <jmx
- serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr"/> For
- more details see http://wiki.apache.org/solr/SolrJmx
- -->
- <jmx />
-
- <!-- the default high-performance update handler -->
- <updateHandler class="solr.DirectUpdateHandler2">
- <!--
- A prefix of "solr." for class names is an alias that causes solr
- to search appropriate packages, including
- org.apache.solr.(search|update|request|core|analysis)
- -->
-
- <!--
- Perform a <commit/> automatically under certain conditions:
- maxDocs - number of updates since last commit is greater than this
- maxTime - oldest uncommited update (in ms) is this long ago
- Instead of enabling autoCommit, consider using "commitWithin" when
- adding documents. http://wiki.apache.org/solr/UpdateXmlMessages
- <autoCommit> <maxDocs>10000</maxDocs> <maxTime>1000</maxTime>
- </autoCommit>
- -->
-
- </updateHandler>
-
- <!--
- Use the following format to specify a custom IndexReaderFactory -
- allows for alternate IndexReader implementations. ** Experimental
- Feature ** Please note - Using a custom IndexReaderFactory may
- prevent certain other features from working. The API to
- IndexReaderFactory may change without warning or may even be removed
- from future releases if the problems cannot be resolved. ** Features
- that may not work with custom IndexReaderFactory ** The
- ReplicationHandler assumes a disk-resident index. Using a custom
- IndexReader implementation may cause incompatibility with
- ReplicationHandler and may cause replication to not work correctly.
- See SOLR-1366 for details. <indexReaderFactory
- name="IndexReaderFactory" class="package.class"> Parameters as
- required by the implementation </indexReaderFactory >
- -->
- <!-- To set the termInfosIndexDivisor, do this: -->
- <!--
- <indexReaderFactory name="IndexReaderFactory"
- class="org.apache.solr.core.StandardIndexReaderFactory"> <int
- name="setTermIndexDivisor">12</int> </indexReaderFactory >
- -->
-
-
- <query>
- <!--
- Maximum number of clauses in a boolean query... in the past, this
- affected range or prefix queries that expanded to big boolean
- queries - built in Solr query parsers no longer create queries
- with this limitation. An exception is thrown if exceeded.
- -->
- <maxBooleanClauses>1024</maxBooleanClauses>
-
-
- <!--
- There are two implementations of cache available for Solr,
- LRUCache, based on a synchronized LinkedHashMap, and FastLRUCache,
- based on a ConcurrentHashMap. FastLRUCache has faster gets and
- slower puts in single threaded operation and thus is generally
- faster than LRUCache when the hit ratio of the cache is high (>
- 75%), and may be faster under other scenarios on multi-cpu
- systems.
- -->
- <!--
- Cache used by SolrIndexSearcher for filters (DocSets), unordered
- sets of *all* documents that match a query. When a new searcher is
- opened, its caches may be prepopulated or "autowarmed" using data
- from caches in the old searcher. autowarmCount is the number of
- items to prepopulate. For LRUCache, the autowarmed items will be
- the most recently accessed items. Parameters: class - the
- SolrCache implementation LRUCache or FastLRUCache size - the
- maximum number of entries in the cache initialSize - the initial
- capacity (number of entries) of the cache. (seel
- java.util.HashMap) autowarmCount - the number of entries to
- prepopulate from and old cache.
- -->
- <filterCache class="solr.FastLRUCache" size="512"
- initialSize="512" autowarmCount="0" />
-
- <!--
- Cache used to hold field values that are quickly accessible by
- document id. The fieldValueCache is created by default even if not
- configured here. <fieldValueCache class="solr.FastLRUCache"
- size="512" autowarmCount="128" showItems="32" />
- -->
-
- <!--
- queryResultCache caches results of searches - ordered lists of
- document ids (DocList) based on a query, a sort, and the range of
- documents requested.
- -->
- <queryResultCache class="solr.LRUCache" size="512"
- initialSize="512" autowarmCount="0" />
-
- <!--
- documentCache caches Lucene Document objects (the stored fields
- for each document). Since Lucene internal document ids are
- transient, this cache will not be autowarmed.
- -->
- <documentCache class="solr.LRUCache" size="512"
- initialSize="512" autowarmCount="0" />
-
- <!--
- If true, stored fields that are not requested will be loaded
- lazily. This can result in a significant speed improvement if the
- usual case is to not load all stored fields, especially if the
- skipped fields are large compressed text fields.
- -->
- <enableLazyFieldLoading>true</enableLazyFieldLoading>
-
- <!--
- Example of a generic cache. These caches may be accessed by name
- through SolrIndexSearcher.getCache(),cacheLookup(), and
- cacheInsert(). The purpose is to enable easy caching of
- user/application level data. The regenerator argument should be
- specified as an implementation of solr.search.CacheRegenerator if
- autowarming is desired.
- -->
- <!--
- <cache name="myUserCache" class="solr.LRUCache" size="4096"
- initialSize="1024" autowarmCount="1024"
- regenerator="org.mycompany.mypackage.MyRegenerator" />
- -->
-
- <!--
- An optimization that attempts to use a filter to satisfy a search.
- If the requested sort does not include score, then the filterCache
- will be checked for a filter matching the query. If found, the
- filter will be used as the source of document ids, and then the
- sort will be applied to that.
- <useFilterForSortedQuery>true</useFilterForSortedQuery>
- -->
-
- <!--
- An optimization for use with the queryResultCache. When a search
- is requested, a superset of the requested number of document ids
- are collected. For example, if a search for a particular query
- requests matching documents 10 through 19, and queryWindowSize is
- 50, then documents 0 through 49 will be collected and cached. Any
- further requests in that range can be satisfied via the cache.
- -->
- <queryResultWindowSize>20</queryResultWindowSize>
-
- <!--
- Maximum number of documents to cache for any entry in the
- queryResultCache.
- -->
- <queryResultMaxDocsCached>200</queryResultMaxDocsCached>
-
- <!--
- a newSearcher event is fired whenever a new searcher is being
- prepared and there is a current searcher handling requests (aka
- registered). It can be used to prime certain caches to prevent
- long request times for certain requests.
- -->
- <!--
- QuerySenderListener takes an array of NamedList and executes a
- local query request for each NamedList in sequence.
- -->
- <listener event="newSearcher" class="solr.QuerySenderListener">
- <arr name="queries">
- <!--
- <lst> <str name="q">solr</str> <str name="start">0</str> <str
- name="rows">10</str> </lst> <lst> <str name="q">rocks</str>
- <str name="start">0</str> <str name="rows">10</str> </lst>
- <lst><str name="q">static newSearcher warming query from
- solrconfig.xml</str></lst>
- -->
- </arr>
- </listener>
-
- <!--
- a firstSearcher event is fired whenever a new searcher is being
- prepared but there is no current registered searcher to handle
- requests or to gain autowarming data from.
- -->
- <listener event="firstSearcher" class="solr.QuerySenderListener">
- <arr name="queries">
- <lst>
- <str name="q">solr rocks</str>
- <str name="start">0</str>
- <str name="rows">10</str>
- </lst>
- <lst>
- <str name="q">static firstSearcher warming query from
- solrconfig.xml</str>
- </lst>
- </arr>
- </listener>
-
- <!--
- If a search request comes in and there is no current registered
- searcher, then immediately register the still warming searcher and
- use it. If "false" then all requests will block until the first
- searcher is done warming.
- -->
- <useColdSearcher>false</useColdSearcher>
-
- <!--
- Maximum number of searchers that may be warming in the background
- concurrently. An error is returned if this limit is exceeded.
- Recommend 1-2 for read-only slaves, higher for masters w/o cache
- warming.
- -->
- <maxWarmingSearchers>2</maxWarmingSearchers>
-
- </query>
-
- <requestDispatcher>
- <!--
- Make sure your system has some authentication before enabling
- remote streaming!
- -->
- <requestParsers enableRemoteStreaming="false"
- multipartUploadLimitInKB="-1" />
-
- <!--
- Set HTTP caching related parameters (for proxy caches and
- clients). To get the behaviour of Solr 1.2 (ie: no caching related
- headers) use the never304="true" option and do not specify a value
- for <cacheControl>
- -->
- <!-- <httpCaching never304="true"> -->
- <httpCaching lastModifiedFrom="openTime" etagSeed="Solr">
- <!--
- lastModFrom="openTime" is the default, the Last-Modified value
- (and validation against If-Modified-Since requests) will all be
- relative to when the current Searcher was opened. You can change
- it to lastModFrom="dirLastMod" if you want the value to exactly
- corrispond to when the physical index was last modified.
-
- etagSeed="..." is an option you can change to force the ETag
- header (and validation against If-None-Match requests) to be
- differnet even if the index has not changed (ie: when making
- significant changes to your config file) lastModifiedFrom and
- etagSeed are both ignored if you use the never304="true" option.
- -->
- <!--
- If you include a <cacheControl> directive, it will be used to
- generate a Cache-Control header, as well as an Expires header if
- the value contains "max-age=" By default, no Cache-Control
- header is generated. You can use the <cacheControl> option even
- if you have set never304="true"
- -->
- <!-- <cacheControl>max-age=30, public</cacheControl> -->
- </httpCaching>
- </requestDispatcher>
-
-
- <!--
- requestHandler plugins... incoming queries will be dispatched to the
- correct handler based on the path or the 'qt' param.
- Names starting with a '/' are accessed with the a path equal to the
- registered name. Names without a leading '/' are accessed with:
- http://host/app/select?qt=name If no qt is defined, the
- requestHandler that declares default="true" will be used.
- -->
- <requestHandler name="/select" class="solr.SearchHandler"
- default="true">
- <!-- default values for query parameters -->
- <lst name="defaults">
- <str name="echoParams">explicit</str>
- <!--
- <int name="rows">10</int> <str name="fl">*</str> <str
- name="version">2.1</str>
- -->
- </lst>
- </requestHandler>
-
- <!--
- DisMaxRequestHandler allows easy searching across multiple fields
- for simple user-entered phrases. Its implementation is now just the
- standard SearchHandler with a default query parser of "dismax". see
- http://wiki.apache.org/solr/DisMaxRequestHandler
- -->
- <requestHandler name="/dismax" class="solr.SearchHandler">
- <lst name="defaults">
- <str name="defType">dismax</str>
- <str name="echoParams">explicit</str>
- <float name="tie">0.01</float>
- <str name="qf">
- text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0
- manu^1.1 cat^1.4
- </str>
- <str name="pf">
- text^0.2 features^1.1 name^1.5 manu^1.4
- manu_exact^1.9
- </str>
- <str name="bf">
- popularity^0.5 recip(price,1,1000,1000)^0.3
- </str>
- <str name="fl">
- id,name,price,score
- </str>
- <str name="mm">
- 2<-1 5<-2 6<90% </str>
- <int name="ps">100</int>
- <str name="q.alt">*:*</str>
- <!-- example highlighter config, enable per-query with hl=true -->
- <str name="hl.fl">text features name</str>
- <!-- for this field, we want no fragmenting, just highlighting -->
- <str name="f.name.hl.fragsize">0</str>
- <!--
- instructs Solr to return the field itself if no query terms are
- found
- -->
- <str name="f.name.hl.alternateField">name</str>
- <str name="f.text.hl.fragmenter">regex</str> <!-- defined below -->
- </lst>
- </requestHandler>
-
- <!--
- Note how you can register the same handler multiple times with
- different names (and different init parameters)
- -->
- <requestHandler name="/partitioned" class="solr.SearchHandler">
- <lst name="defaults">
- <str name="defType">dismax</str>
- <str name="echoParams">explicit</str>
- <str name="qf">text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0</str>
- <str name="mm">2<-1 5<-2 6<90%</str>
- <!--
- This is an example of using Date Math to specify a constantly
- moving date range in a config...
- -->
- <str name="bq">incubationdate_dt:[* TO NOW/DAY-1MONTH]^2.2</str>
- </lst>
- <!--
- In addition to defaults, "appends" params can be specified to
- identify values which should be appended to the list of multi-val
- params from the query (or the existing "defaults"). In this
- example, the param "fq=instock:true" will be appended to any query
- time fq params the user may specify, as a mechanism for
- partitioning the index, independent of any user selected filtering
- that may also be desired (perhaps as a result of faceted
- searching). NOTE: there is *absolutely* nothing a client can do to
- prevent these "appends" values from being used, so don't use this
- mechanism unless you are sure you always want it.
- -->
- <lst name="appends">
- <str name="fq">inStock:true</str>
- </lst>
- <!--
- "invariants" are a way of letting the Solr maintainer lock down
- the options available to Solr clients. Any params values specified
- here are used regardless of what values may be specified in either
- the query, the "defaults", or the "appends" params. In this
- example, the facet.field and facet.query params are fixed,
- limiting the facets clients can use. Faceting is not turned on by
- default - but if the client does specify facet=true in the
- request, these are the only facets they will be able to see counts
- for; regardless of what other facet.field or facet.query params
- they may specify. NOTE: there is *absolutely* nothing a client can
- do to prevent these "invariants" values from being used, so don't
- use this mechanism unless you are sure you always want it.
- -->
- <lst name="invariants">
- <str name="facet.field">cat</str>
- <str name="facet.field">manu_exact</str>
- <str name="facet.query">price:[* TO 500]</str>
- <str name="facet.query">price:[500 TO *]</str>
- </lst>
- </requestHandler>
-
-
- <!--
- Search components are registered to SolrCore and used by Search
- Handlers By default, the following components are avaliable:
-
- <searchComponent name="query"
- class="org.apache.solr.handler.component.QueryComponent" />
- <searchComponent name="facet"
- class="org.apache.solr.handler.component.FacetComponent" />
- <searchComponent name="mlt"
- class="org.apache.solr.handler.component.MoreLikeThisComponent" />
- <searchComponent name="highlight"
- class="org.apache.solr.handler.component.HighlightComponent" />
- <searchComponent name="stats"
- class="org.apache.solr.handler.component.StatsComponent" />
- <searchComponent name="debug"
- class="org.apache.solr.handler.component.DebugComponent" /> Default
- configuration in a requestHandler would look like: <arr
- name="components"> <str>query</str> <str>facet</str> <str>mlt</str>
- <str>highlight</str> <str>stats</str> <str>debug</str> </arr> If you
- register a searchComponent to one of the standard names, that will
- be used instead. To insert components before or after the 'standard'
- components, use: <arr name="first-components">
- <str>myFirstComponentName</str> </arr> <arr name="last-components">
- <str>myLastComponentName</str> </arr>
- -->
-
- <!--
- The spell check component can return a list of alternative spelling
- suggestions.
- -->
- <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
-
- <str name="queryAnalyzerFieldType">textSpell</str>
-
- <lst name="spellchecker">
- <str name="name">default</str>
- <str name="field">name</str>
- <str name="spellcheckIndexDir">./spellchecker</str>
- </lst>
-
- <!--
- a spellchecker that uses a different distance measure <lst
- name="spellchecker"> <str name="name">jarowinkler</str> <str
- name="field">spell</str> <str
- name="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str>
- <str name="spellcheckIndexDir">./spellchecker2</str> </lst>
- -->
-
- <!--
- a file based spell checker <lst name="spellchecker"> <str
- name="classname">solr.FileBasedSpellChecker</str> <str
- name="name">file</str> <str
- name="sourceLocation">spellings.txt</str> <str
- name="characterEncoding">UTF-8</str> <str
- name="spellcheckIndexDir">./spellcheckerFile</str> </lst>
- -->
- </searchComponent>
-
- <!--
- A request handler utilizing the spellcheck component.
- #############################################################################
- NOTE: This is purely as an example. The whole purpose of the
- SpellCheckComponent is to hook it into the request handler that
- handles (i.e. the standard or dismax SearchHandler) queries such
- that a separate request is not needed to get suggestions. IN OTHER
- WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS NOT WHAT YOU
- WANT FOR YOUR PRODUCTION SYSTEM!
- #############################################################################
- -->
- <requestHandler name="/spell" class="solr.SearchHandler"
- lazy="true">
- <lst name="defaults">
- <!-- omp = Only More Popular -->
- <str name="spellcheck.onlyMorePopular">false</str>
- <!-- exr = Extended Results -->
- <str name="spellcheck.extendedResults">false</str>
- <!-- The number of suggestions to return -->
- <str name="spellcheck.count">1</str>
- </lst>
- <arr name="last-components">
- <str>spellcheck</str>
- </arr>
- </requestHandler>
-
- <searchComponent name="tvComponent"
- class="org.apache.solr.handler.component.TermVectorComponent" />
- <!--
- A Req Handler for working with the tvComponent. This is purely as an
- example. You will likely want to add the component to your already
- specified request handlers.
- -->
- <requestHandler name="/tvrh"
- class="org.apache.solr.handler.component.SearchHandler">
- <lst name="defaults">
- <bool name="tv">true</bool>
- </lst>
- <arr name="last-components">
- <str>tvComponent</str>
- </arr>
- </requestHandler>
-
- <!-- Solr Cell: http://wiki.apache.org/solr/ExtractingRequestHandler -->
- <requestHandler name="/update/extract"
- class="org.apache.solr.handler.extraction.ExtractingRequestHandler"
- startup="lazy">
- <lst name="defaults">
- <!--
- All the main content goes into "text"... if you need to return
- the extracted text or do highlighting, use a stored field.
- -->
- <str name="fmap.content">text</str>
- <str name="lowernames">true</str>
- <str name="uprefix">ignored_</str>
-
- <!-- capture link hrefs but ignore div attributes -->
- <str name="captureAttr">true</str>
- <str name="fmap.a">links</str>
- <str name="fmap.div">ignored_</str>
- </lst>
- </requestHandler>
-
-
- <!--
- A component to return terms and document frequency of those terms.
- This component does not yet support distributed search.
- -->
- <searchComponent name="termsComponent"
- class="org.apache.solr.handler.component.TermsComponent" />
-
- <requestHandler name="/terms"
- class="org.apache.solr.handler.component.SearchHandler">
- <lst name="defaults">
- <bool name="terms">true</bool>
- </lst>
- <arr name="components">
- <str>termsComponent</str>
- </arr>
- </requestHandler>
-
- <!-- CSV update handler, loaded on demand -->
- <requestHandler name="/update/csv" class="solr.CSVRequestHandler"
- startup="lazy" />
-
- <!--
- An example dedup update processor that creates the "id" field on the
- fly based on the hash code of some other fields. This example has
- overwriteDupes set to false since we are using the id field as the
- signatureField and Solr will maintain uniqueness based on that
- anyway. You have to link the chain to an update handler above to use
- it ie: <requestHandler name="/update
- "class="solr.UpdateRequestHandler"> <lst name="defaults"> <str
- name="update.chain">dedupe</str> </lst> </requestHandler>
- -->
-
-
- <!--
- queryResponseWriter plugins... query responses will be written using
- the writer specified by the 'wt' request parameter matching the name
- of a registered writer. The "default" writer is the default and will
- be used if 'wt' is not specified in the request. XMLResponseWriter
- will be used if nothing is specified here. The json, python, and
- ruby writers are also available by default. <queryResponseWriter
- name="xml" class="org.apache.solr.request.XMLResponseWriter"
- default="true"/> <queryResponseWriter name="json"
- class="org.apache.solr.request.JSONResponseWriter"/>
- <queryResponseWriter name="python"
- class="org.apache.solr.request.PythonResponseWriter"/>
- <queryResponseWriter name="ruby"
- class="org.apache.solr.request.RubyResponseWriter"/>
- <queryResponseWriter name="php"
- class="org.apache.solr.request.PHPResponseWriter"/>
- <queryResponseWriter name="phps"
- class="org.apache.solr.request.PHPSerializedResponseWriter"/>
-
- <queryResponseWriter name="custom"
- class="com.example.MyResponseWriter"/>
- -->
-
- <!--
- XSLT response writer transforms the XML output by any xslt file
- found in Solr's conf/xslt directory. Changes to xslt files are
- checked for every xsltCacheLifetimeSeconds.
- -->
- <queryResponseWriter name="xslt"
- class="org.apache.solr.response.XSLTResponseWriter">
- <int name="xsltCacheLifetimeSeconds">5</int>
- </queryResponseWriter>
-
-
- <!--
- example of registering a query parser <queryParser name="lucene"
- class="org.apache.solr.search.LuceneQParserPlugin"/>
- -->
-
- <!--
- example of registering a custom function parser <valueSourceParser
- name="myfunc" class="com.mycompany.MyValueSourceParser" />
- -->
-
- <!-- config for the admin interface -->
- <admin>
- <defaultQuery>*</defaultQuery>
- </admin>
-
-</config>
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b7d14c50/solr/contrib/uima/src/test/org/apache/solr/uima/analysis/UIMATokenizersSolrIntegrationTest.java
----------------------------------------------------------------------
diff --git a/solr/contrib/uima/src/test/org/apache/solr/uima/analysis/UIMATokenizersSolrIntegrationTest.java b/solr/contrib/uima/src/test/org/apache/solr/uima/analysis/UIMATokenizersSolrIntegrationTest.java
deleted file mode 100644
index 9197697..0000000
--- a/solr/contrib/uima/src/test/org/apache/solr/uima/analysis/UIMATokenizersSolrIntegrationTest.java
+++ /dev/null
@@ -1,72 +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.solr.uima.analysis;
-
-import org.apache.solr.SolrTestCaseJ4;
-import org.apache.solr.request.SolrQueryRequest;
-import org.apache.solr.schema.IndexSchema;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-/**
- * Integration test which uses {@link org.apache.lucene.analysis.uima.UIMAAnnotationsTokenizerFactory} in Solr schema
- */
-public class UIMATokenizersSolrIntegrationTest extends SolrTestCaseJ4 {
-
- @BeforeClass
- public static void beforeClass() throws Exception {
- initCore("uima/uima-tokenizers-solrconfig.xml", "uima/uima-tokenizers-schema.xml");
- }
-
- @Test
- public void testInitialization() throws Exception {
- IndexSchema schema = h.getCore().getLatestSchema();
- assertNotNull(schema.getField("sentences"));
- assertNotNull(schema.getFieldType("sentences"));
- assertNotNull(schema.getField("nouns"));
- assertNotNull(schema.getFieldType("nouns"));
- }
-
- @Test
- public void testUIMATokenizerIndexAndQuery() throws Exception {
- assertU("<add><doc><field name=\"id\">123</field><field name=\"text\">One and 1 is two. Instead One or 1 is 0.</field></doc></add>");
- assertU(commit());
- SolrQueryRequest req = req("qt", "/terms", "terms.fl", "sentences");
- assertQ(req, "//lst[@name='sentences']/int[@name='One and 1 is two.']");
- assertQ(req, "//lst[@name='sentences']/int[@name=' Instead One or 1 is 0.']");
- req.close();
- }
-
- @Test
- public void testUIMATypeAwareTokenizerIndexAndQuery() throws Exception {
- assertU("<add><doc><field name=\"id\">123</field><field name=\"text\">The counter counts the beans: 1 and 2 and three.</field></doc></add>");
- assertU(commit());
- SolrQueryRequest req = req("qt", "/terms", "terms.fl", "nouns");
- assertQ(req, "//lst[@name='nouns']/int[@name='beans']");
- assertQ(req, "//lst[@name='nouns']/int[@name='counter']");
- assertQ(req, "//lst[@name='nouns']/int[@name!='The']");
- assertQ(req, "//lst[@name='nouns']/int[@name!='counts']");
- assertQ(req, "//lst[@name='nouns']/int[@name!='the']");
- assertQ(req, "//lst[@name='nouns']/int[@name!=':']");
- assertQ(req, "//lst[@name='nouns']/int[@name!='1']");
- assertQ(req, "//lst[@name='nouns']/int[@name!='and']");
- assertQ(req, "//lst[@name='nouns']/int[@name!='2']");
- assertQ(req, "//lst[@name='nouns']/int[@name!='three']");
- assertQ(req, "//lst[@name='nouns']/int[@name!='.']");
- req.close();
- }
-}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b7d14c50/solr/contrib/uima/src/test/org/apache/solr/uima/processor/UIMAUpdateRequestProcessorTest.java
----------------------------------------------------------------------
diff --git a/solr/contrib/uima/src/test/org/apache/solr/uima/processor/UIMAUpdateRequestProcessorTest.java b/solr/contrib/uima/src/test/org/apache/solr/uima/processor/UIMAUpdateRequestProcessorTest.java
deleted file mode 100644
index 9a89168..0000000
--- a/solr/contrib/uima/src/test/org/apache/solr/uima/processor/UIMAUpdateRequestProcessorTest.java
+++ /dev/null
@@ -1,186 +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.solr.uima.processor;
-
-import java.util.Map;
-
-import org.apache.lucene.util.LuceneTestCase.Slow;
-import org.apache.solr.SolrTestCaseJ4;
-import org.apache.solr.common.SolrException;
-import org.apache.solr.core.SolrCore;
-import org.apache.solr.uima.processor.SolrUIMAConfiguration.MapField;
-import org.apache.solr.update.processor.UpdateRequestProcessor;
-import org.apache.solr.update.processor.UpdateRequestProcessorChain;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-/**
- * TestCase for {@link UIMAUpdateRequestProcessor}
- *
- *
- */
-@Slow
-public class UIMAUpdateRequestProcessorTest extends SolrTestCaseJ4 {
-
- public static final String UIMA_CHAIN = "uima";
- public static final String UIMA_MULTI_MAP_CHAIN = "uima-multi-map";
- public static final String UIMA_IGNORE_ERRORS_CHAIN = "uima-ignoreErrors";
- public static final String UIMA_NOT_IGNORE_ERRORS_CHAIN = "uima-not-ignoreErrors";
-
- @BeforeClass
- public static void beforeClass() throws Exception {
- initCore("solrconfig.xml", "schema.xml", getFile("uima/solr").getAbsolutePath());
- }
-
- @Override
- @Before
- public void setUp() throws Exception {
- super.setUp();
- clearIndex();
- assertU(commit());
- }
-
- @Test
- public void testProcessorConfiguration() {
- SolrCore core = h.getCore();
- UpdateRequestProcessorChain chained = core.getUpdateProcessingChain(UIMA_CHAIN);
- assertNotNull(chained);
- UIMAUpdateRequestProcessorFactory factory = (UIMAUpdateRequestProcessorFactory)chained.getProcessors().get(0);
- assertNotNull(factory);
- UpdateRequestProcessor processor = factory.getInstance(req(), null, null);
- assertTrue(processor instanceof UIMAUpdateRequestProcessor);
- }
-
- @Test
- public void testMultiMap() {
- SolrCore core = h.getCore();
- UpdateRequestProcessorChain chained = core.getUpdateProcessingChain(UIMA_MULTI_MAP_CHAIN);
- assertNotNull(chained);
- UIMAUpdateRequestProcessorFactory factory = (UIMAUpdateRequestProcessorFactory)chained.getProcessors().get(0);
- assertNotNull(factory);
- UpdateRequestProcessor processor = factory.getInstance(req(), null, null);
- assertTrue(processor instanceof UIMAUpdateRequestProcessor);
- SolrUIMAConfiguration conf = ((UIMAUpdateRequestProcessor)processor).getConfiguration();
- Map<String, Map<String, MapField>> map = conf.getTypesFeaturesFieldsMapping();
- Map<String, MapField> subMap = map.get("a-type-which-can-have-multiple-features");
- assertEquals(2, subMap.size());
- assertEquals("1", subMap.get("A").getFieldName(null));
- assertEquals("2", subMap.get("B").getFieldName(null));
- }
-
- @Test
- public void testProcessing() throws Exception {
- addDoc(adoc(
- "id",
- "2312312321312",
- "text",
- "SpellCheckComponent got improvement related to recent Lucene changes. \n "
- + "Add support for specifying Spelling SuggestWord Comparator to Lucene spell "
- + "checkers for SpellCheckComponent. Issue SOLR-2053 is already fixed, patch is"
- + " attached if you need it, but it is also committed to trunk and 3_x branch."
- + " Last Lucene European Conference has been held in Prague."), UIMA_CHAIN);
- assertU(commit());
- assertQ(req("sentence:*"), "//*[@numFound='1']");
- assertQ(req("sentiment:*"), "//*[@numFound='0']");
- assertQ(req("OTHER_sm:Prague"), "//*[@numFound='1']");
- }
-
- @Test
- public void testTwoUpdates() throws Exception {
-
- addDoc(adoc("id", "1", "text", "The Apache Software Foundation is happy to announce "
- + "BarCampApache Sydney, Australia, the first ASF-backed event in the Southern "
- + "Hemisphere!"), UIMA_CHAIN);
- assertU(commit());
- assertQ(req("sentence:*"), "//*[@numFound='1']");
-
- addDoc(adoc("id", "2", "text", "Taking place 11th December 2010 at the University "
- + "of Sydney's Darlington Centre, the BarCampApache \"unconference\" will be"
- + " attendee-driven, facilitated by members of the Apache community and will "
- + "focus on the Apache..."), UIMA_CHAIN);
- assertU(commit());
- assertQ(req("sentence:*"), "//*[@numFound='2']");
-
- assertQ(req("sentiment:positive"), "//*[@numFound='1']");
- assertQ(req("ORGANIZATION_sm:Apache"), "//*[@numFound='2']");
- }
-
- @Test
- public void testErrorHandling() throws Exception {
-
- try{
- addDoc(adoc(
- "id",
- "2312312321312",
- "text",
- "SpellCheckComponent got improvement related to recent Lucene changes. \n "
- + "Add support for specifying Spelling SuggestWord Comparator to Lucene spell "
- + "checkers for SpellCheckComponent. Issue SOLR-2053 is already fixed, patch is"
- + " attached if you need it, but it is also committed to trunk and 3_x branch."
- + " Last Lucene European Conference has been held in Prague."), UIMA_NOT_IGNORE_ERRORS_CHAIN);
- fail("exception shouldn't be ignored");
- }
- catch(RuntimeException expected){}
- assertU(commit());
- assertQ(req("*:*"), "//*[@numFound='0']");
-
- addDoc(adoc(
- "id",
- "2312312321312",
- "text",
- "SpellCheckComponent got improvement related to recent Lucene changes. \n "
- + "Add support for specifying Spelling SuggestWord Comparator to Lucene spell "
- + "checkers for SpellCheckComponent. Issue SOLR-2053 is already fixed, patch is"
- + " attached if you need it, but it is also committed to trunk and 3_x branch."
- + " Last Lucene European Conference has been held in Prague."), UIMA_IGNORE_ERRORS_CHAIN);
- assertU(commit());
- assertQ(req("*:*"), "//*[@numFound='1']");
-
- try{
- addDoc(adoc(
- "id",
- "2312312321312",
- "text",
- "SpellCheckComponent got improvement related to recent Lucene changes."), UIMA_NOT_IGNORE_ERRORS_CHAIN);
- fail("exception shouldn't be ignored");
- }
- catch(StringIndexOutOfBoundsException e){ // SOLR-2579
- fail("exception shouldn't be raised");
- }
- catch(SolrException expected){}
-
- try{
- addDoc(adoc(
- "id",
- "2312312321312",
- "text",
- "SpellCheckComponent got improvement related to recent Lucene changes."), UIMA_IGNORE_ERRORS_CHAIN);
- }
- catch(StringIndexOutOfBoundsException e){ // SOLR-2579
- fail("exception shouldn't be raised");
- }
- }
-
- @Test
- public void testMultiplierProcessing() throws Exception {
- for (int i = 0; i < RANDOM_MULTIPLIER; i++) {
- testProcessing();
- }
- }
-
-}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b7d14c50/solr/contrib/uima/src/test/org/apache/solr/uima/processor/an/DummyEntityAnnotator.java
----------------------------------------------------------------------
diff --git a/solr/contrib/uima/src/test/org/apache/solr/uima/processor/an/DummyEntityAnnotator.java b/solr/contrib/uima/src/test/org/apache/solr/uima/processor/an/DummyEntityAnnotator.java
deleted file mode 100644
index 9bb35d2..0000000
--- a/solr/contrib/uima/src/test/org/apache/solr/uima/processor/an/DummyEntityAnnotator.java
+++ /dev/null
@@ -1,47 +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.solr.uima.processor.an;
-
-import org.apache.solr.uima.ts.EntityAnnotation;
-import org.apache.uima.TokenAnnotation;
-import org.apache.uima.analysis_component.JCasAnnotator_ImplBase;
-import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
-import org.apache.uima.jcas.JCas;
-import org.apache.uima.jcas.tcas.Annotation;
-
-public class DummyEntityAnnotator extends JCasAnnotator_ImplBase{
-
- @Override
- public void process(JCas jcas) throws AnalysisEngineProcessException {
- for (Annotation annotation : jcas.getAnnotationIndex(TokenAnnotation.type)) {
- String tokenPOS = ((TokenAnnotation) annotation).getPosTag();
- if ("np".equals(tokenPOS) || "nps".equals(tokenPOS)) {
- EntityAnnotation entityAnnotation = new EntityAnnotation(jcas);
- entityAnnotation.setBegin(annotation.getBegin());
- entityAnnotation.setEnd(annotation.getEnd());
- String entityString = annotation.getCoveredText();
- entityAnnotation.setEntity(entityString);
- String name = "OTHER"; // "OTHER" makes no sense. In practice, "PERSON", "COUNTRY", "E-MAIL", etc.
- if(entityString.equals("Apache"))
- name = "ORGANIZATION";
- entityAnnotation.setName(name);
- entityAnnotation.addToIndexes();
- }
- }
- }
-
-}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b7d14c50/solr/contrib/uima/src/test/org/apache/solr/uima/processor/an/DummyExceptionAnnotator.java
----------------------------------------------------------------------
diff --git a/solr/contrib/uima/src/test/org/apache/solr/uima/processor/an/DummyExceptionAnnotator.java b/solr/contrib/uima/src/test/org/apache/solr/uima/processor/an/DummyExceptionAnnotator.java
deleted file mode 100644
index 606c4e5..0000000
--- a/solr/contrib/uima/src/test/org/apache/solr/uima/processor/an/DummyExceptionAnnotator.java
+++ /dev/null
@@ -1,30 +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.solr.uima.processor.an;
-
-import org.apache.uima.analysis_component.JCasAnnotator_ImplBase;
-import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
-import org.apache.uima.jcas.JCas;
-
-public class DummyExceptionAnnotator extends JCasAnnotator_ImplBase{
-
- @Override
- public void process(JCas jcas) throws AnalysisEngineProcessException {
- throw new AnalysisEngineProcessException();
- }
-
-}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b7d14c50/solr/contrib/uima/src/test/org/apache/solr/uima/processor/an/DummySentimentAnnotator.java
----------------------------------------------------------------------
diff --git a/solr/contrib/uima/src/test/org/apache/solr/uima/processor/an/DummySentimentAnnotator.java b/solr/contrib/uima/src/test/org/apache/solr/uima/processor/an/DummySentimentAnnotator.java
deleted file mode 100644
index 521db71..0000000
--- a/solr/contrib/uima/src/test/org/apache/solr/uima/processor/an/DummySentimentAnnotator.java
+++ /dev/null
@@ -1,60 +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.solr.uima.processor.an;
-
-import java.util.Arrays;
-
-import org.apache.solr.uima.ts.DummySentimentAnnotation;
-import org.apache.uima.TokenAnnotation;
-import org.apache.uima.analysis_component.JCasAnnotator_ImplBase;
-import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
-import org.apache.uima.jcas.JCas;
-import org.apache.uima.jcas.tcas.Annotation;
-
-public class DummySentimentAnnotator extends JCasAnnotator_ImplBase{
-
- private static final String[] positiveAdj = {"happy","cool","nice"};
-
- private static final String[] negativeAdj = {"bad","sad","ugly"};
-
- @Override
- public void process(JCas jcas) throws AnalysisEngineProcessException {
- for (Annotation annotation : jcas.getAnnotationIndex(TokenAnnotation.type)) {
- String tokenPOS = ((TokenAnnotation) annotation).getPosTag();
- if ("jj".equals(tokenPOS)) {
- if (Arrays.asList(positiveAdj).contains(annotation.getCoveredText())) {
- DummySentimentAnnotation dummySentimentAnnotation = createSentimentAnnotation(jcas, annotation);
- dummySentimentAnnotation.setMood("positive");
- dummySentimentAnnotation.addToIndexes();
- }
- else if (Arrays.asList(negativeAdj).contains(annotation.getCoveredText())) {
- DummySentimentAnnotation dummySentimentAnnotation = createSentimentAnnotation(jcas, annotation);
- dummySentimentAnnotation.setMood("negative");
- dummySentimentAnnotation.addToIndexes();
- }
- }
- }
- }
-
- private DummySentimentAnnotation createSentimentAnnotation(JCas jcas, Annotation annotation) {
- DummySentimentAnnotation dummySentimentAnnotation = new DummySentimentAnnotation(jcas);
- dummySentimentAnnotation.setBegin(annotation.getBegin());
- dummySentimentAnnotation.setEnd(annotation.getEnd());
- return dummySentimentAnnotation;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b7d14c50/solr/contrib/uima/src/test/org/apache/solr/uima/ts/DummySentimentAnnotation.java
----------------------------------------------------------------------
diff --git a/solr/contrib/uima/src/test/org/apache/solr/uima/ts/DummySentimentAnnotation.java b/solr/contrib/uima/src/test/org/apache/solr/uima/ts/DummySentimentAnnotation.java
deleted file mode 100644
index d26de5c..0000000
--- a/solr/contrib/uima/src/test/org/apache/solr/uima/ts/DummySentimentAnnotation.java
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
-/* First created by JCasGen Fri Mar 04 13:08:40 CET 2011 */
-package org.apache.solr.uima.ts;
-
-import org.apache.uima.jcas.JCas;
-import org.apache.uima.jcas.JCasRegistry;
-import org.apache.uima.jcas.cas.TOP_Type;
-
-import org.apache.uima.jcas.tcas.Annotation;
-
-
-/**
- * Updated by JCasGen Fri Mar 04 13:08:40 CET 2011
- * XML source: /Users/tommasoteofili/Documents/workspaces/lucene_workspace/lucene_dev/solr/contrib/uima/src/test/resources/DummySentimentAnalysisAEDescriptor.xml
- * @generated */
-public class DummySentimentAnnotation extends Annotation {
- /** @generated
- * @ordered
- */
- public final static int typeIndexID = JCasRegistry.register(DummySentimentAnnotation.class);
- /** @generated
- * @ordered
- */
- public final static int type = typeIndexID;
- /** @generated */
- @Override
- public int getTypeIndexID() {return typeIndexID;}
-
- /** Never called. Disable default constructor
- * @generated */
- protected DummySentimentAnnotation() {}
-
- /** Internal - constructor used by generator
- * @generated */
- public DummySentimentAnnotation(int addr, TOP_Type type) {
- super(addr, type);
- readObject();
- }
-
- /** @generated */
- public DummySentimentAnnotation(JCas jcas) {
- super(jcas);
- readObject();
- }
-
- /** @generated */
- public DummySentimentAnnotation(JCas jcas, int begin, int end) {
- super(jcas);
- setBegin(begin);
- setEnd(end);
- readObject();
- }
-
- /** <!-- begin-user-doc -->
- * Write your own initialization here
- * <!-- end-user-doc -->
- @generated modifiable */
- private void readObject() {}
-
-
-
- //*--------------*
- //* Feature: mood
-
- /** getter for mood - gets
- * @generated */
- public String getMood() {
- if (DummySentimentAnnotation_Type.featOkTst && ((DummySentimentAnnotation_Type)jcasType).casFeat_mood == null)
- jcasType.jcas.throwFeatMissing("mood", "org.apache.solr.uima.ts.SentimentAnnotation");
- return jcasType.ll_cas.ll_getStringValue(addr, ((DummySentimentAnnotation_Type)jcasType).casFeatCode_mood);}
-
- /** setter for mood - sets
- * @generated */
- public void setMood(String v) {
- if (DummySentimentAnnotation_Type.featOkTst && ((DummySentimentAnnotation_Type)jcasType).casFeat_mood == null)
- jcasType.jcas.throwFeatMissing("mood", "org.apache.solr.uima.ts.SentimentAnnotation");
- jcasType.ll_cas.ll_setStringValue(addr, ((DummySentimentAnnotation_Type)jcasType).casFeatCode_mood, v);}
- }
-
-
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b7d14c50/solr/contrib/uima/src/test/org/apache/solr/uima/ts/DummySentimentAnnotation_Type.java
----------------------------------------------------------------------
diff --git a/solr/contrib/uima/src/test/org/apache/solr/uima/ts/DummySentimentAnnotation_Type.java b/solr/contrib/uima/src/test/org/apache/solr/uima/ts/DummySentimentAnnotation_Type.java
deleted file mode 100644
index c1de6f0..0000000
--- a/solr/contrib/uima/src/test/org/apache/solr/uima/ts/DummySentimentAnnotation_Type.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/* First created by JCasGen Fri Mar 04 13:08:40 CET 2011 */
-package org.apache.solr.uima.ts;
-
-import org.apache.uima.jcas.JCas;
-import org.apache.uima.jcas.JCasRegistry;
-import org.apache.uima.cas.impl.CASImpl;
-import org.apache.uima.cas.impl.FSGenerator;
-import org.apache.uima.cas.FeatureStructure;
-import org.apache.uima.cas.impl.TypeImpl;
-import org.apache.uima.cas.Type;
-import org.apache.uima.cas.impl.FeatureImpl;
-import org.apache.uima.cas.Feature;
-import org.apache.uima.jcas.tcas.Annotation_Type;
-
-/**
- * Updated by JCasGen Fri Mar 04 13:08:40 CET 2011
- * @generated */
-public class DummySentimentAnnotation_Type extends Annotation_Type {
- /** @generated */
- @Override
- protected FSGenerator getFSGenerator() {return fsGenerator;}
- /** @generated */
- private final FSGenerator fsGenerator =
- new FSGenerator() {
- @Override
- public FeatureStructure createFS(int addr, CASImpl cas) {
- if (DummySentimentAnnotation_Type.this.useExistingInstance) {
- // Return eq fs instance if already created
- FeatureStructure fs = DummySentimentAnnotation_Type.this.jcas.getJfsFromCaddr(addr);
- if (null == fs) {
- fs = new DummySentimentAnnotation(addr, DummySentimentAnnotation_Type.this);
- DummySentimentAnnotation_Type.this.jcas.putJfsFromCaddr(addr, fs);
- return fs;
- }
- return fs;
- } else return new DummySentimentAnnotation(addr, DummySentimentAnnotation_Type.this);
- }
- };
- /** @generated */
- public final static int typeIndexID = DummySentimentAnnotation.typeIndexID;
- /** @generated
- @modifiable */
- public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.solr.uima.ts.SentimentAnnotation");
-
- /** @generated */
- final Feature casFeat_mood;
- /** @generated */
- final int casFeatCode_mood;
- /** @generated */
- public String getMood(int addr) {
- if (featOkTst && casFeat_mood == null)
- jcas.throwFeatMissing("mood", "org.apache.solr.uima.ts.SentimentAnnotation");
- return ll_cas.ll_getStringValue(addr, casFeatCode_mood);
- }
- /** @generated */
- public void setMood(int addr, String v) {
- if (featOkTst && casFeat_mood == null)
- jcas.throwFeatMissing("mood", "org.apache.solr.uima.ts.SentimentAnnotation");
- ll_cas.ll_setStringValue(addr, casFeatCode_mood, v);}
-
-
-
-
-
- /** initialize variables to correspond with Cas Type and Features
- * @generated */
- public DummySentimentAnnotation_Type(JCas jcas, Type casType) {
- super(jcas, casType);
- casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
-
-
- casFeat_mood = jcas.getRequiredFeatureDE(casType, "mood", "uima.cas.String", featOkTst);
- casFeatCode_mood = (null == casFeat_mood) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_mood).getCode();
-
- }
-}
-
-
-
-
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b7d14c50/solr/contrib/uima/src/test/org/apache/solr/uima/ts/EntityAnnotation.java
----------------------------------------------------------------------
diff --git a/solr/contrib/uima/src/test/org/apache/solr/uima/ts/EntityAnnotation.java b/solr/contrib/uima/src/test/org/apache/solr/uima/ts/EntityAnnotation.java
deleted file mode 100644
index 443a4e6..0000000
--- a/solr/contrib/uima/src/test/org/apache/solr/uima/ts/EntityAnnotation.java
+++ /dev/null
@@ -1,99 +0,0 @@
-
-
-/* First created by JCasGen Sat May 07 22:33:38 JST 2011 */
-package org.apache.solr.uima.ts;
-
-import org.apache.uima.jcas.JCas;
-import org.apache.uima.jcas.JCasRegistry;
-import org.apache.uima.jcas.cas.TOP_Type;
-
-import org.apache.uima.jcas.tcas.Annotation;
-
-
-/**
- * Updated by JCasGen Sat May 07 22:33:38 JST 2011
- * XML source: /Users/koji/Documents/workspace/DummyEntityAnnotator/desc/DummyEntityAEDescriptor.xml
- * @generated */
-public class EntityAnnotation extends Annotation {
- /** @generated
- * @ordered
- */
- public final static int typeIndexID = JCasRegistry.register(EntityAnnotation.class);
- /** @generated
- * @ordered
- */
- public final static int type = typeIndexID;
- /** @generated */
- @Override
- public int getTypeIndexID() {return typeIndexID;}
-
- /** Never called. Disable default constructor
- * @generated */
- protected EntityAnnotation() {}
-
- /** Internal - constructor used by generator
- * @generated */
- public EntityAnnotation(int addr, TOP_Type type) {
- super(addr, type);
- readObject();
- }
-
- /** @generated */
- public EntityAnnotation(JCas jcas) {
- super(jcas);
- readObject();
- }
-
- /** @generated */
- public EntityAnnotation(JCas jcas, int begin, int end) {
- super(jcas);
- setBegin(begin);
- setEnd(end);
- readObject();
- }
-
- /** <!-- begin-user-doc -->
- * Write your own initialization here
- * <!-- end-user-doc -->
- @generated modifiable */
- private void readObject() {}
-
-
-
- //*--------------*
- //* Feature: name
-
- /** getter for name - gets
- * @generated */
- public String getName() {
- if (EntityAnnotation_Type.featOkTst && ((EntityAnnotation_Type)jcasType).casFeat_name == null)
- jcasType.jcas.throwFeatMissing("name", "org.apache.solr.uima.ts.EntityAnnotation");
- return jcasType.ll_cas.ll_getStringValue(addr, ((EntityAnnotation_Type)jcasType).casFeatCode_name);}
-
- /** setter for name - sets
- * @generated */
- public void setName(String v) {
- if (EntityAnnotation_Type.featOkTst && ((EntityAnnotation_Type)jcasType).casFeat_name == null)
- jcasType.jcas.throwFeatMissing("name", "org.apache.solr.uima.ts.EntityAnnotation");
- jcasType.ll_cas.ll_setStringValue(addr, ((EntityAnnotation_Type)jcasType).casFeatCode_name, v);}
-
-
- //*--------------*
- //* Feature: entity
-
- /** getter for entity - gets
- * @generated */
- public String getEntity() {
- if (EntityAnnotation_Type.featOkTst && ((EntityAnnotation_Type)jcasType).casFeat_entity == null)
- jcasType.jcas.throwFeatMissing("entity", "org.apache.solr.uima.ts.EntityAnnotation");
- return jcasType.ll_cas.ll_getStringValue(addr, ((EntityAnnotation_Type)jcasType).casFeatCode_entity);}
-
- /** setter for entity - sets
- * @generated */
- public void setEntity(String v) {
- if (EntityAnnotation_Type.featOkTst && ((EntityAnnotation_Type)jcasType).casFeat_entity == null)
- jcasType.jcas.throwFeatMissing("entity", "org.apache.solr.uima.ts.EntityAnnotation");
- jcasType.ll_cas.ll_setStringValue(addr, ((EntityAnnotation_Type)jcasType).casFeatCode_entity, v);}
- }
-
-
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b7d14c50/solr/contrib/uima/src/test/org/apache/solr/uima/ts/EntityAnnotation_Type.java
----------------------------------------------------------------------
diff --git a/solr/contrib/uima/src/test/org/apache/solr/uima/ts/EntityAnnotation_Type.java b/solr/contrib/uima/src/test/org/apache/solr/uima/ts/EntityAnnotation_Type.java
deleted file mode 100644
index 417257a..0000000
--- a/solr/contrib/uima/src/test/org/apache/solr/uima/ts/EntityAnnotation_Type.java
+++ /dev/null
@@ -1,102 +0,0 @@
-/* First created by JCasGen Sat May 07 22:33:38 JST 2011 */
-package org.apache.solr.uima.ts;
-
-import org.apache.uima.jcas.JCas;
-import org.apache.uima.jcas.JCasRegistry;
-import org.apache.uima.cas.impl.CASImpl;
-import org.apache.uima.cas.impl.FSGenerator;
-import org.apache.uima.cas.FeatureStructure;
-import org.apache.uima.cas.impl.TypeImpl;
-import org.apache.uima.cas.Type;
-import org.apache.uima.cas.impl.FeatureImpl;
-import org.apache.uima.cas.Feature;
-import org.apache.uima.jcas.tcas.Annotation_Type;
-
-/**
- * Updated by JCasGen Sat May 07 22:33:38 JST 2011
- * @generated */
-public class EntityAnnotation_Type extends Annotation_Type {
- /** @generated */
- @Override
- protected FSGenerator getFSGenerator() {return fsGenerator;}
- /** @generated */
- private final FSGenerator fsGenerator =
- new FSGenerator() {
- @Override
- public FeatureStructure createFS(int addr, CASImpl cas) {
- if (EntityAnnotation_Type.this.useExistingInstance) {
- // Return eq fs instance if already created
- FeatureStructure fs = EntityAnnotation_Type.this.jcas.getJfsFromCaddr(addr);
- if (null == fs) {
- fs = new EntityAnnotation(addr, EntityAnnotation_Type.this);
- EntityAnnotation_Type.this.jcas.putJfsFromCaddr(addr, fs);
- return fs;
- }
- return fs;
- } else return new EntityAnnotation(addr, EntityAnnotation_Type.this);
- }
- };
- /** @generated */
- public final static int typeIndexID = EntityAnnotation.typeIndexID;
- /** @generated
- @modifiable */
- public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.solr.uima.ts.EntityAnnotation");
-
- /** @generated */
- final Feature casFeat_name;
- /** @generated */
- final int casFeatCode_name;
- /** @generated */
- public String getName(int addr) {
- if (featOkTst && casFeat_name == null)
- jcas.throwFeatMissing("name", "org.apache.solr.uima.ts.EntityAnnotation");
- return ll_cas.ll_getStringValue(addr, casFeatCode_name);
- }
- /** @generated */
- public void setName(int addr, String v) {
- if (featOkTst && casFeat_name == null)
- jcas.throwFeatMissing("name", "org.apache.solr.uima.ts.EntityAnnotation");
- ll_cas.ll_setStringValue(addr, casFeatCode_name, v);}
-
-
-
- /** @generated */
- final Feature casFeat_entity;
- /** @generated */
- final int casFeatCode_entity;
- /** @generated */
- public String getEntity(int addr) {
- if (featOkTst && casFeat_entity == null)
- jcas.throwFeatMissing("entity", "org.apache.solr.uima.ts.EntityAnnotation");
- return ll_cas.ll_getStringValue(addr, casFeatCode_entity);
- }
- /** @generated */
- public void setEntity(int addr, String v) {
- if (featOkTst && casFeat_entity == null)
- jcas.throwFeatMissing("entity", "org.apache.solr.uima.ts.EntityAnnotation");
- ll_cas.ll_setStringValue(addr, casFeatCode_entity, v);}
-
-
-
-
-
- /** initialize variables to correspond with Cas Type and Features
- * @generated */
- public EntityAnnotation_Type(JCas jcas, Type casType) {
- super(jcas, casType);
- casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator());
-
-
- casFeat_name = jcas.getRequiredFeatureDE(casType, "name", "uima.cas.String", featOkTst);
- casFeatCode_name = (null == casFeat_name) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_name).getCode();
-
-
- casFeat_entity = jcas.getRequiredFeatureDE(casType, "entity", "uima.cas.String", featOkTst);
- casFeatCode_entity = (null == casFeat_entity) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_entity).getCode();
-
- }
-}
-
-
-
-
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b7d14c50/solr/example/README.txt
----------------------------------------------------------------------
diff --git a/solr/example/README.txt b/solr/example/README.txt
index e7fb573..4e572e0 100644
--- a/solr/example/README.txt
+++ b/solr/example/README.txt
@@ -63,7 +63,7 @@ statements in the solrconfig.xml file to reference plugin jars outside of
this directory for loading "contrib" plugins via relative paths.
If you make a copy of this example server and wish to use the
-ExtractingRequestHandler (SolrCell), DataImportHandler (DIH), UIMA, the
+ExtractingRequestHandler (SolrCell), DataImportHandler (DIH), the
clustering component, or any other modules in "contrib", you will need to
copy the required jars or update the paths to those jars in your
solrconfig.xml.
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b7d14c50/solr/licenses/AlchemyAPIAnnotator-2.3.1.jar.sha1
----------------------------------------------------------------------
diff --git a/solr/licenses/AlchemyAPIAnnotator-2.3.1.jar.sha1 b/solr/licenses/AlchemyAPIAnnotator-2.3.1.jar.sha1
deleted file mode 100644
index 2de3be5..0000000
--- a/solr/licenses/AlchemyAPIAnnotator-2.3.1.jar.sha1
+++ /dev/null
@@ -1 +0,0 @@
-e9ce9874276b0a7dc57f55d87d4e550d970533f6
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b7d14c50/solr/licenses/AlchemyAPIAnnotator-LICENSE-ASL.txt
----------------------------------------------------------------------
diff --git a/solr/licenses/AlchemyAPIAnnotator-LICENSE-ASL.txt b/solr/licenses/AlchemyAPIAnnotator-LICENSE-ASL.txt
deleted file mode 100644
index d645695..0000000
--- a/solr/licenses/AlchemyAPIAnnotator-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/b7d14c50/solr/licenses/AlchemyAPIAnnotator-NOTICE.txt
----------------------------------------------------------------------
diff --git a/solr/licenses/AlchemyAPIAnnotator-NOTICE.txt b/solr/licenses/AlchemyAPIAnnotator-NOTICE.txt
deleted file mode 100644
index 2dc4dda..0000000
--- a/solr/licenses/AlchemyAPIAnnotator-NOTICE.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
-UIMA Annotator: alchemy-annotator
-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/b7d14c50/solr/licenses/OpenCalaisAnnotator-2.3.1.jar.sha1
----------------------------------------------------------------------
diff --git a/solr/licenses/OpenCalaisAnnotator-2.3.1.jar.sha1 b/solr/licenses/OpenCalaisAnnotator-2.3.1.jar.sha1
deleted file mode 100644
index eff44ca..0000000
--- a/solr/licenses/OpenCalaisAnnotator-2.3.1.jar.sha1
+++ /dev/null
@@ -1 +0,0 @@
-cb0e8a49d53ea7ce7a2b71a915aa728b90ae39df
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b7d14c50/solr/licenses/OpenCalaisAnnotator-LICENSE-ASL.txt
----------------------------------------------------------------------
diff --git a/solr/licenses/OpenCalaisAnnotator-LICENSE-ASL.txt b/solr/licenses/OpenCalaisAnnotator-LICENSE-ASL.txt
deleted file mode 100644
index d645695..0000000
--- a/solr/licenses/OpenCalaisAnnotator-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/b7d14c50/solr/licenses/OpenCalaisAnnotator-NOTICE.txt
----------------------------------------------------------------------
diff --git a/solr/licenses/OpenCalaisAnnotator-NOTICE.txt b/solr/licenses/OpenCalaisAnnotator-NOTICE.txt
deleted file mode 100644
index f6b5dd2..0000000
--- a/solr/licenses/OpenCalaisAnnotator-NOTICE.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
-UIMA Annotator: OpenCalaisAnnotator
-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/b7d14c50/solr/licenses/Tagger-2.3.1.jar.sha1
----------------------------------------------------------------------
diff --git a/solr/licenses/Tagger-2.3.1.jar.sha1 b/solr/licenses/Tagger-2.3.1.jar.sha1
deleted file mode 100644
index c89a998..0000000
--- a/solr/licenses/Tagger-2.3.1.jar.sha1
+++ /dev/null
@@ -1 +0,0 @@
-cd02db9e8d54decb14cbe303d001d13735237290