Apache Lucene open-source search software
LUCENE-1866: better RAT reporting
Robert Muir2fe2e8258454
diff --git a/build.xml b/build.xmlindex 32cfd4fec86..3692636940b 100644--- a/build.xml+++ b/build.xml@@ -46,6 +46,14 @@</subant></sequential></target>+ <target name="rat-sources" description="Runs rat across all sources and tests">+ <sequential><subant target="rat-sources" inheritall="false" failonerror="true">+ <fileset dir="lucene" includes="build.xml" />+ <fileset dir="modules" includes="build.xml" />+ <fileset dir="solr" includes="build.xml" />+ </subant></sequential>+ </target>+<target name="resolve" description="Resolves all dependencies"><sequential><subant target="resolve" inheritall="false" failonerror="true"><fileset dir="lucene" includes="build.xml" />diff --git a/lucene/build.xml b/lucene/build.xmlindex 5618da20447..03ddbc54553 100644--- a/lucene/build.xml+++ b/lucene/build.xml@@ -301,6 +301,14 @@</sequential></target>+ <target name="rat-sources">+ <sequential>+ <ant dir="core" target="rat-sources" inheritall="false"/>+ <ant dir="test-framework" target="rat-sources" inheritall="false"/>+ <ant dir="tools" target="rat-sources" inheritall="false"/>+ <contrib-crawl target="rat-sources" failonerror="true"/>+ </sequential>+ </target><!-- ================================================================== --><!-- D I S T R I B U T I O N -->diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex ef139e82ba1..e3864e1d145 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -201,6 +201,9 @@<property name="clover.db.dir" location="${common.dir}/build/test/clover/db"/><property name="clover.report.dir" location="${common.dir}/build/test/clover/reports"/>+ <!-- a reasonable default exclusion set, can be overridden for special cases -->+ <property name="rat.excludes" value="**/TODO,**/*.txt"/>+<availableproperty="clover.present"classname="com.cenqua.clover.tasks.CloverReportTask"@@ -907,14 +910,73 @@<target name="rat-sources" depends="rat-sources-typedef"description="runs the tasks over source and test files">- <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">- <fileset dir="${src.dir}"/>- <fileset dir="${tests-framework.src.dir}"/>- <fileset dir="${tests.src.dir}" erroronmissingdir="false"/>+ <sequential>+ <!-- create a temp file for the log to go to -->+ <tempfile property="rat.sources.logfile"+ prefix="rat"+ destdir="${java.io.tmpdir}"/>+ <!-- run rat, going to the file -->+ <rat:report xmlns:rat="antlib:org.apache.rat.anttasks"+ reportFile="${rat.sources.logfile}">+ <fileset dir="${src.dir}" excludes="${rat.excludes}"/>+ <fileset dir="${tests.src.dir}" excludes="${rat.excludes}" erroronmissingdir="false"/><!-- some modules have a src/tools/[java,test] -->- <fileset dir="src/tools/java" erroronmissingdir="false"/>- <fileset dir="src/tools/test" erroronmissingdir="false"/>+ <fileset dir="src/tools/java" excludes="${rat.excludes}" erroronmissingdir="false"/>+ <fileset dir="src/tools/test" excludes="${rat.excludes}" erroronmissingdir="false"/>++ <!-- bsd-like stuff -->+ <rat:substringMatcher licenseFamilyCategory="BSD "+ licenseFamilyName="Modified BSD License">+ <!-- brics automaton -->+ <pattern substring="Copyright (c) 2001-2009 Anders Moeller"/>+ <!-- snowball -->+ <pattern substring="Copyright (c) 2001, Dr Martin Porter"/>+ <!-- UMASS kstem -->+ <pattern substring="THIS SOFTWARE IS PROVIDED BY UNIVERSITY OF MASSACHUSETTS AND OTHER CONTRIBUTORS"/>+ <!-- Egothor -->+ <pattern substring="Egothor Software License version 1.00"/>+ <!-- JaSpell -->+ <pattern substring="Copyright (c) 2005 Bruno Martins"/>+ </rat:substringMatcher>++ <!-- mit-like -->+ <rat:substringMatcher licenseFamilyCategory="MIT "+ licenseFamilyName="The MIT License">+ <!-- ICU license -->+ <pattern substring="Permission is hereby granted, free of charge, to any person obtaining a copy"/>+ </rat:substringMatcher>++ <rat:substringMatcher licenseFamilyCategory="GEN "+ licenseFamilyName="Generated">+ <!-- svg files generated by gnuplot -->+ <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"/>+ </rat:substringMatcher>++ <!-- built in approved licenses -->+ <rat:approvedLicense familyName="Apache License Version 2.0"/>+ <rat:approvedLicense familyName="The MIT License"/>+ <rat:approvedLicense familyName="Modified BSD License"/>+ <rat:approvedLicense familyName="Generated"/></rat:report>+ <!-- now print the output, for review -->+ <loadfile property="rat.output" srcFile="${rat.sources.logfile}"/>+ <echo>${rat.output}</echo>+ <delete>+ <fileset file="${rat.sources.logfile}">+ <containsregexp expression="^0 Unknown Licenses"/>+ </fileset>+ </delete>+ <!-- fail if we didnt find the pattern -->+ <fail message="Rat problems were found!">+ <condition>+ <available file="${rat.sources.logfile}"/>+ </condition>+ </fail>+ </sequential></target><!--+diff --git a/lucene/tools/src/java/lucene-solr.antlib.xml b/lucene/tools/src/java/lucene-solr.antlib.xmlindex 21ad34599ca..6ab57c6695a 100644--- a/lucene/tools/src/java/lucene-solr.antlib.xml+++ b/lucene/tools/src/java/lucene-solr.antlib.xml@@ -1,5 +1,21 @@+<!--+ 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.+ --><antlib><taskdefname="licenses"classname="org.apache.lucene.validation.LicenseCheckTask" />-</antlib>\ No newline at end of file+</antlib>diff --git a/lucene/tools/src/java/org/apache/lucene/validation/LicenseCheckTask.java b/lucene/tools/src/java/org/apache/lucene/validation/LicenseCheckTask.javaindex f743e501323..b9d116bb972 100644--- a/lucene/tools/src/java/org/apache/lucene/validation/LicenseCheckTask.java+++ b/lucene/tools/src/java/org/apache/lucene/validation/LicenseCheckTask.java@@ -1,5 +1,22 @@package org.apache.lucene.validation;+/**+ * 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.+ */+import java.io.File;import java.util.ArrayList;import java.util.Iterator;diff --git a/modules/analysis/build.xml b/modules/analysis/build.xmlindex bdcc4beee8b..11d5b739534 100644--- a/modules/analysis/build.xml+++ b/modules/analysis/build.xml@@ -116,5 +116,9 @@<target name="javadocs-index.html"><forall-analyzers target="javadocs-index.html"/></target>++ <target name="rat-sources">+ <forall-analyzers target="rat-sources"/>+ </target></project>diff --git a/modules/analysis/common/build.xml b/modules/analysis/common/build.xmlindex 51928166046..40c1365115b 100644--- a/modules/analysis/common/build.xml+++ b/modules/analysis/common/build.xml@@ -26,6 +26,9 @@<property name="build.dir" location="../build/common" /><property name="dist.dir" location="../dist/common" />+ <!-- some files for testing that do not have license headers -->+ <property name="rat.excludes" value="**/*.aff,**/*.dic,**/*.txt,**/charfilter/*.htm*,**/*LuceneResourcesWikiPage.html"/>+<import file="../../../lucene/contrib/contrib-build.xml"/><target name="compile-core" depends="jflex-notice, common.compile-core"/>diff --git a/modules/analysis/stempel/src/java/overview.html b/modules/analysis/stempel/src/java/overview.htmlindex c5c3b122bb1..003c83ded59 100644--- a/modules/analysis/stempel/src/java/overview.html+++ b/modules/analysis/stempel/src/java/overview.html@@ -1,4 +1,20 @@<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">+<!--+ 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.+--><html><head><meta content="text/html; charset=UTF-8" http-equiv="content-type">diff --git a/modules/build.xml b/modules/build.xmlindex bb4257ed79b..e90122770da 100644--- a/modules/build.xml+++ b/modules/build.xml@@ -68,6 +68,10 @@<license-check-macro dir="${basedir}" /></target>+ <target name="rat-sources">+ <forall-modules target="rat-sources"/>+ </target>+<target name="clean" description="Clean all modules"><delete dir="dist"/><forall-modules target="clean" />diff --git a/modules/facet/build.xml b/modules/facet/build.xmlindex 57519b4a73c..947ea744cc7 100644--- a/modules/facet/build.xml+++ b/modules/facet/build.xml@@ -26,6 +26,9 @@<property name="build.dir" location="build/" /><property name="dist.dir" location="dist/" /><property name="maven.dist.dir" location="../dist/maven" />++ <!-- prettify.css/js -->+ <property name="rat.excludes" value="**/prettify.css,**/prettify.js"/><import file="../../lucene/contrib/contrib-build.xml"/>diff --git a/modules/facet/src/java/org/apache/lucene/facet/enhancements/association/package.html b/modules/facet/src/java/org/apache/lucene/facet/enhancements/association/package.htmlindex 7c19bb32452..a3ce67b378b 100644--- a/modules/facet/src/java/org/apache/lucene/facet/enhancements/association/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/enhancements/association/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Association category enhancements</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/enhancements/package.html b/modules/facet/src/java/org/apache/lucene/facet/enhancements/package.htmlindex f8515111dd2..95808b5c8c2 100644--- a/modules/facet/src/java/org/apache/lucene/facet/enhancements/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/enhancements/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Enhanced category features</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/enhancements/params/package.html b/modules/facet/src/java/org/apache/lucene/facet/enhancements/params/package.htmlindex 6ebdfab784a..5cfee977ae8 100644--- a/modules/facet/src/java/org/apache/lucene/facet/enhancements/params/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/enhancements/params/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Enhanced category features</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/index/attributes/package.html b/modules/facet/src/java/org/apache/lucene/facet/index/attributes/package.htmlindex 8964fafa652..398db0515c4 100644--- a/modules/facet/src/java/org/apache/lucene/facet/index/attributes/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/index/attributes/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Category attributes and their properties for indexing</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/index/categorypolicy/package.html b/modules/facet/src/java/org/apache/lucene/facet/index/categorypolicy/package.htmlindex b95117ef93a..ed10a592a7d 100644--- a/modules/facet/src/java/org/apache/lucene/facet/index/categorypolicy/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/index/categorypolicy/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Policies for indexing categories</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/index/package.html b/modules/facet/src/java/org/apache/lucene/facet/index/package.htmlindex 18c67078124..a363ebec715 100644--- a/modules/facet/src/java/org/apache/lucene/facet/index/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/index/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Indexing of document categories</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/index/params/package.html b/modules/facet/src/java/org/apache/lucene/facet/index/params/package.htmlindex ad71ae6e53e..1e867529ede 100644--- a/modules/facet/src/java/org/apache/lucene/facet/index/params/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/index/params/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Indexing-time specifications for handling facets</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/index/streaming/package.html b/modules/facet/src/java/org/apache/lucene/facet/index/streaming/package.htmlindex 8b0fb92e8ea..74a4042effd 100644--- a/modules/facet/src/java/org/apache/lucene/facet/index/streaming/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/index/streaming/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Expert: attributes streaming definition for indexing facets</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/package.html b/modules/facet/src/java/org/apache/lucene/facet/package.htmlindex 938b6c68745..fee0c71dc0b 100644--- a/modules/facet/src/java/org/apache/lucene/facet/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Faceted Indexing and Search</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/search/aggregator/package.html b/modules/facet/src/java/org/apache/lucene/facet/search/aggregator/package.htmlindex baa8f958b98..932c293435c 100644--- a/modules/facet/src/java/org/apache/lucene/facet/search/aggregator/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/search/aggregator/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Aggregating Facets during Faceted Search</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/search/package.html b/modules/facet/src/java/org/apache/lucene/facet/search/package.htmlindex 74e85fb4455..5a9975843df 100644--- a/modules/facet/src/java/org/apache/lucene/facet/search/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/search/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Faceted Search API</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/search/params/package.html b/modules/facet/src/java/org/apache/lucene/facet/search/params/package.htmlindex 7957d9b9ecf..353cc8d3352 100644--- a/modules/facet/src/java/org/apache/lucene/facet/search/params/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/search/params/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Parameters for Faceted Search</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/search/results/package.html b/modules/facet/src/java/org/apache/lucene/facet/search/results/package.htmlindex 2006bf13571..3acd35a9e7c 100644--- a/modules/facet/src/java/org/apache/lucene/facet/search/results/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/search/results/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Results of Faceted Search</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/search/sampling/package.html b/modules/facet/src/java/org/apache/lucene/facet/search/sampling/package.htmlindex 9ea9f97e1b4..90e033c52df 100644--- a/modules/facet/src/java/org/apache/lucene/facet/search/sampling/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/search/sampling/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Sampling for facets accumulation</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/taxonomy/directory/package.html b/modules/facet/src/java/org/apache/lucene/facet/taxonomy/directory/package.htmlindex e1ee3308179..82d23315d3b 100644--- a/modules/facet/src/java/org/apache/lucene/facet/taxonomy/directory/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/taxonomy/directory/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Taxonomy implemented using a Lucene-Index</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/taxonomy/package.html b/modules/facet/src/java/org/apache/lucene/facet/taxonomy/package.htmlindex ab92496bd8c..e04e585b4c5 100644--- a/modules/facet/src/java/org/apache/lucene/facet/taxonomy/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/taxonomy/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Taxonomy of Categories</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/package.html b/modules/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/package.htmlindex 1b1a3a6d8b8..9a495a10470 100644--- a/modules/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Category->Ordinal caching implementation using an optimized data-structures</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/package.html b/modules/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/package.htmlindex 46171801440..b430d6b4ed4 100644--- a/modules/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>An LRU cache implementation for the CategoryPath to Ordinal map</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/package.html b/modules/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/package.htmlindex 92d2fe71843..64e6ff39c9a 100644--- a/modules/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Improves indexing time by caching a map of CategoryPath to their Ordinal</title>diff --git a/modules/facet/src/java/org/apache/lucene/facet/util/package.html b/modules/facet/src/java/org/apache/lucene/facet/util/package.htmlindex 8eaabef4061..900a5a603cb 100644--- a/modules/facet/src/java/org/apache/lucene/facet/util/package.html+++ b/modules/facet/src/java/org/apache/lucene/facet/util/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Various utilities for faceted search</title>diff --git a/modules/facet/src/java/org/apache/lucene/util/collections/package.html b/modules/facet/src/java/org/apache/lucene/util/collections/package.htmlindex 6a45426bd81..46860960958 100644--- a/modules/facet/src/java/org/apache/lucene/util/collections/package.html+++ b/modules/facet/src/java/org/apache/lucene/util/collections/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Collections</title>diff --git a/modules/facet/src/java/org/apache/lucene/util/encoding/package.html b/modules/facet/src/java/org/apache/lucene/util/encoding/package.htmlindex 941aefa778c..cc8b727eb03 100644--- a/modules/facet/src/java/org/apache/lucene/util/encoding/package.html+++ b/modules/facet/src/java/org/apache/lucene/util/encoding/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><head><title>Encoding</title>diff --git a/modules/grouping/src/java/org/apache/lucene/search/grouping/package.html b/modules/grouping/src/java/org/apache/lucene/search/grouping/package.htmlindex 327c6c0dff5..79a8ecdd5d4 100644--- a/modules/grouping/src/java/org/apache/lucene/search/grouping/package.html+++ b/modules/grouping/src/java/org/apache/lucene/search/grouping/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><body>diff --git a/modules/grouping/src/java/overview.html b/modules/grouping/src/java/overview.htmlindex 84a858dbecd..6925f75e4df 100644--- a/modules/grouping/src/java/overview.html+++ b/modules/grouping/src/java/overview.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><body>Lucene's grouping modulediff --git a/modules/join/src/java/org/apache/lucene/search/join/package.html b/modules/join/src/java/org/apache/lucene/search/join/package.htmlindex c5189f4f94f..216e463275d 100644--- a/modules/join/src/java/org/apache/lucene/search/join/package.html+++ b/modules/join/src/java/org/apache/lucene/search/join/package.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><body>diff --git a/modules/join/src/java/overview.html b/modules/join/src/java/overview.htmlindex a5fcef0913f..ebe2143666a 100644--- a/modules/join/src/java/overview.html+++ b/modules/join/src/java/overview.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><body>Lucene's join modulediff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/messages/MessagesTestBundle.properties b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/messages/MessagesTestBundle.propertiesindex 870ff7312a5..ec6cb51356d 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/messages/MessagesTestBundle.properties+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/messages/MessagesTestBundle.properties@@ -1,3 +1,17 @@+# 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.Q0001E_INVALID_SYNTAX = Syntax Error: {0}Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION = Truncated unicode escape sequence.diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/messages/MessagesTestBundle_ja.properties b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/messages/MessagesTestBundle_ja.propertiesindex 2235294ca91..68e449c506c 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/messages/MessagesTestBundle_ja.properties+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/messages/MessagesTestBundle_ja.properties@@ -1,3 +1,17 @@+# 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.Q0001E_INVALID_SYNTAX = \u69cb\u6587\u30a8\u30e9\u30fc: {0}Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION = \u5207\u308a\u6368\u3066\u3089\u308c\u305f\u30e6\u30cb\u30b3\u30fc\u30c9\u30fb\u30a8\u30b9\u30b1\u30fc\u30d7\u30fb\u30b7\u30fc\u30b1\u30f3\u30b9\u3002diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BooleanFilter.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BooleanFilter.xmlindex e6c704c5638..b601d791fd1 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BooleanFilter.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BooleanFilter.xml@@ -1,4 +1,20 @@<?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.+--><FilteredQuery><Query><MatchAllDocsQuery/>diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BooleanQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BooleanQuery.xmlindex cb8b2c23d36..bba1d340d57 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BooleanQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BooleanQuery.xml@@ -1,4 +1,20 @@<?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.+--><BooleanQuery fieldName="contents"><Clause occurs="should"><TermQuery>merger</TermQuery>diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BoostingQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BoostingQuery.xmlindex 58d2152c6ed..10cfa886fb9 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BoostingQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BoostingQuery.xml@@ -1,4 +1,20 @@<?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.+--><BoostingQuery><!-- Find docs about banks, preferably merger info and preferably not "World bank" --><Query>diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BoostingTermQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BoostingTermQuery.xmlindex 9994be47bad..65bbd618670 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BoostingTermQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BoostingTermQuery.xml@@ -1,2 +1,18 @@<?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.+--><BoostingTermQuery fieldName="contents">sumitomo</BoostingTermQuery>diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/CachedFilter.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/CachedFilter.xmlindex 716320d1e99..7d10711107e 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/CachedFilter.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/CachedFilter.xml@@ -1,4 +1,20 @@<?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.+--><FilteredQuery><Query><BooleanQuery fieldName="contents">diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/ConstantScoreQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/ConstantScoreQuery.xmlindex f93656676eb..c5994d1687e 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/ConstantScoreQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/ConstantScoreQuery.xml@@ -1,4 +1,20 @@<?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.+--><ConstantScoreQuery><RangeFilter fieldName="date" lowerTerm="19870409" upperTerm="19870412"/></ConstantScoreQuery>diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/DuplicateFilterQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/DuplicateFilterQuery.xmlindex 4fe20ed900e..c5002c7c98b 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/DuplicateFilterQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/DuplicateFilterQuery.xml@@ -1,4 +1,20 @@<?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.+--><FilteredQuery><Query><BooleanQuery fieldName="contents">diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/FuzzyLikeThisQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/FuzzyLikeThisQuery.xmlindex a1d3a38a557..2d11b4e5f42 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/FuzzyLikeThisQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/FuzzyLikeThisQuery.xml@@ -1,4 +1,20 @@<?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.+--><FuzzyLikeThisQuery><!-- Matches on misspelt "Sumitomo" bank --><Field fieldName="contents">diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/LikeThisQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/LikeThisQuery.xmlindex e5ec683059c..3e881fbaa64 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/LikeThisQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/LikeThisQuery.xml@@ -1,4 +1,20 @@<?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.+--><LikeThisQuery percentTermsToMatch="5" stopWords="Reuter" minDocFreq="2">IRAQI TROOPS REPORTED PUSHING BACK IRANIANS Iraq said today its troops were pushing Iranian forces out ofpositions they had initially occupied when they launched a new offensive near the southern port ofdiff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/MatchAllDocsQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/MatchAllDocsQuery.xmlindex cad711f851b..526513fd82d 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/MatchAllDocsQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/MatchAllDocsQuery.xml@@ -1,4 +1,20 @@<?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.+--><FilteredQuery><Query><MatchAllDocsQuery/>diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NestedBooleanQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NestedBooleanQuery.xmlindex a39c2b4fe75..0cc4c809f2e 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NestedBooleanQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NestedBooleanQuery.xml@@ -1,4 +1,20 @@<?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.+--><!--This query was added to demonstrate nested boolean queries - therewas a bug in the XML parser which added ALL child <Clause> tags todiff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NumericRangeFilterQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NumericRangeFilterQuery.xmlindex aed33bc2e66..054d185aab3 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NumericRangeFilterQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NumericRangeFilterQuery.xml@@ -1,4 +1,20 @@<?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.+--><FilteredQuery><Query><BooleanQuery fieldName="contents">diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NumericRangeQueryQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NumericRangeQueryQuery.xmlindex f3c976b93b8..416adbdc708 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NumericRangeQueryQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NumericRangeQueryQuery.xml@@ -1,4 +1,20 @@<?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.+--><BooleanQuery fieldName="contents"><Clause occurs="should"><TermQuery>merger</TermQuery>diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/RangeFilterQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/RangeFilterQuery.xmlindex 53f993c195f..7404f3a3453 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/RangeFilterQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/RangeFilterQuery.xml@@ -1,4 +1,20 @@<?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.+--><FilteredQuery><Query><BooleanQuery fieldName="contents">diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/SpanQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/SpanQuery.xmlindex 8176ea1ac56..6c2df16e7b2 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/SpanQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/SpanQuery.xml@@ -1,4 +1,20 @@<?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.+--><SpanOr fieldName="contents"><SpanNear slop="8" inOrder="false" ><SpanOr>diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermQuery.xmlindex 69f2ae8f7aa..14dae37cacc 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermQuery.xml@@ -1,2 +1,18 @@<?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.+--><TermQuery fieldName="contents">sumitomo</TermQuery>\ No newline at end of filediff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermsFilterQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermsFilterQuery.xmlindex 2692f2c2eba..788de85a57d 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermsFilterQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermsFilterQuery.xml@@ -1,4 +1,20 @@<?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.+--><FilteredQuery><Query><BooleanQuery fieldName="contents">diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermsQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermsQuery.xmlindex f1bf348fa1a..89f36a9b75e 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermsQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermsQuery.xml@@ -1,4 +1,20 @@<?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.+--><!-- TermsQuery uses an analyzer to tokenize text and creates a BooleanQuery with nested"should" TermQueries for each of the tokens encountered. This can be used for user inputwhich may include content or characters that would otherwise be illegal query syntax whendiff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/UserInputQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/UserInputQuery.xmlindex e0a1b57709e..2a485340c66 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/UserInputQuery.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/UserInputQuery.xml@@ -1,4 +1,20 @@<?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.+--><FilteredQuery><Query><UserQuery>"Bank of England"</UserQuery>diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/UserInputQueryCustomField.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/UserInputQueryCustomField.xmlindex 86b2c01fe96..7b35a633960 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/UserInputQueryCustomField.xml+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/UserInputQueryCustomField.xml@@ -1,2 +1,18 @@<?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.+--><UserQuery fieldName="doesNotExist" boost="10">Bank^2</UserQuery>diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumBooleanQuery.xsl b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumBooleanQuery.xslindex f5dbbcac357..9747952fcf7 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumBooleanQuery.xsl+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumBooleanQuery.xsl@@ -1,4 +1,20 @@<?xml version="1.0" encoding="ISO-8859-1"?>+<!--+ 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.+--><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/Document"><!--This template ANDs all fields together. Within a single field all terms are ORed.diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumFilteredQuery.xsl b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumFilteredQuery.xslindex 58ca7fb02e5..28b76076a22 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumFilteredQuery.xsl+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumFilteredQuery.xsl@@ -1,4 +1,20 @@<?xml version="1.0" encoding="ISO-8859-1"?>+<!--+ 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.+--><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/Document"><!-- This template uses an efficient, cached filter for the "genre" field".diff --git a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumLuceneClassicQuery.xsl b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumLuceneClassicQuery.xslindex 9c701fde296..65fe1a8004d 100644--- a/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumLuceneClassicQuery.xsl+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumLuceneClassicQuery.xsl@@ -1,4 +1,20 @@<?xml version="1.0" encoding="ISO-8859-1"?>+<!--+ 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.+--><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/Document"><!-- This template is designed to work with a google-like search form - one edit box anddiff --git a/modules/suggest/build.xml b/modules/suggest/build.xmlindex 8474ddcc091..dfde4d40efa 100755--- a/modules/suggest/build.xml+++ b/modules/suggest/build.xml@@ -27,5 +27,7 @@<property name="dist.dir" location="dist/" /><property name="maven.dist.dir" location="../dist/maven" />+ <!-- just a list of words for testing suggesters -->+ <property name="rat.excludes" value="**/Top50KWiki.utf8"/><import file="../../lucene/contrib/contrib-build.xml"/></project>diff --git a/solr/build.xml b/solr/build.xmlindex cef314086ac..74638329443 100644--- a/solr/build.xml+++ b/solr/build.xml@@ -195,6 +195,16 @@</additional-filters></license-check-macro></target>++ <!-- rat sources -->+ <target name="rat-sources">+ <sequential>+ <ant dir="core" target="rat-sources" inheritall="false"/>+ <ant dir="solrj" target="rat-sources" inheritall="false"/>+ <ant dir="test-framework" target="rat-sources" inheritall="false"/>+ <contrib-crawl target="rat-sources" failonerror="true"/>+ </sequential>+ </target><!-- Clean targets --><target name="clean" description="Cleans compiled files and other temporary artifacts.">diff --git a/solr/contrib/analysis-extras/src/java/overview.html b/solr/contrib/analysis-extras/src/java/overview.htmlindex bd58288f4ad..f3d70ca5522 100644--- a/solr/contrib/analysis-extras/src/java/overview.html+++ b/solr/contrib/analysis-extras/src/java/overview.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><body>Apache Solr Search Server: Analysis Extras contribdiff --git a/solr/contrib/clustering/src/java/overview.html b/solr/contrib/clustering/src/java/overview.htmlindex ad3e4d4d309..3bbd2d7f357 100644--- a/solr/contrib/clustering/src/java/overview.html+++ b/solr/contrib/clustering/src/java/overview.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><body>Apache Solr Search Server: Clustering contribdiff --git a/solr/contrib/dataimporthandler-extras/src/java/overview.html b/solr/contrib/dataimporthandler-extras/src/java/overview.htmlindex f1fd655150d..a60a25e277e 100644--- a/solr/contrib/dataimporthandler-extras/src/java/overview.html+++ b/solr/contrib/dataimporthandler-extras/src/java/overview.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><body>Apache Solr Search Server: DataImportHandler Extras contribdiff --git a/solr/contrib/dataimporthandler/src/java/overview.html b/solr/contrib/dataimporthandler/src/java/overview.htmlindex c257503d516..4bb2c8bc8fe 100644--- a/solr/contrib/dataimporthandler/src/java/overview.html+++ b/solr/contrib/dataimporthandler/src/java/overview.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><body>Apache Solr Search Server: DataImportHandler contribdiff --git a/solr/contrib/extraction/src/java/overview.html b/solr/contrib/extraction/src/java/overview.htmlindex 83c817493e4..8aefb57db8d 100644--- a/solr/contrib/extraction/src/java/overview.html+++ b/solr/contrib/extraction/src/java/overview.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><body>Apache Solr Search Server: Solr Cell contribdiff --git a/solr/contrib/langid/src/java/overview.html b/solr/contrib/langid/src/java/overview.htmlindex d1b8f2cf8ec..9bc5c9a1b0d 100644--- a/solr/contrib/langid/src/java/overview.html+++ b/solr/contrib/langid/src/java/overview.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><body>Apache Solr Search Server: Solr Language Identifier contribdiff --git a/solr/contrib/uima/src/java/overview.html b/solr/contrib/uima/src/java/overview.htmlindex 13b975d5199..1b78ffc4a45 100644--- a/solr/contrib/uima/src/java/overview.html+++ b/solr/contrib/uima/src/java/overview.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><body>Apache Solr Search Server: Solr UIMA contribdiff --git a/solr/contrib/velocity/src/java/overview.html b/solr/contrib/velocity/src/java/overview.htmlindex b8cff377f40..21686399120 100644--- a/solr/contrib/velocity/src/java/overview.html+++ b/solr/contrib/velocity/src/java/overview.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><body>Apache Solr Search Server: Velocity Response Writer contribdiff --git a/solr/core/build.xml b/solr/core/build.xmlindex 44cb84af87e..653e0228c89 100644--- a/solr/core/build.xml+++ b/solr/core/build.xml@@ -22,6 +22,9 @@<property name="ivy.retrieve.pattern" value="${common-solr.dir}/lib/[artifact]-[revision].[ext]"/>+ <!-- html file for testing -->+ <property name="rat.excludes" value="**/htmlStripReaderTest.html"/>+<import file="../common-build.xml"/><target name="compile-core" depends="compile-solrj,common-solr.compile-core"/>diff --git a/solr/core/src/java/doc-files/tutorial.html b/solr/core/src/java/doc-files/tutorial.htmlindex 25942620993..66b9a5a8cab 100755--- a/solr/core/src/java/doc-files/tutorial.html+++ b/solr/core/src/java/doc-files/tutorial.html@@ -1,4 +1,20 @@<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">+<!--+ 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.+--><html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8" />diff --git a/solr/core/src/java/overview.html b/solr/core/src/java/overview.htmlindex 151b3246572..f73c36f9751 100644--- a/solr/core/src/java/overview.html+++ b/solr/core/src/java/overview.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><body>Apache Solr Search Server, new users should familiarize themselves with the <a href="doc-files/tutorial.html">Solr Tutorial</a>.diff --git a/solr/solrj/src/java/overview.html b/solr/solrj/src/java/overview.htmlindex 49898143f30..7a534edc86a 100644--- a/solr/solrj/src/java/overview.html+++ b/solr/solrj/src/java/overview.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><body>Apache Solr Search Server: Solr-jdiff --git a/solr/test-framework/src/java/overview.html b/solr/test-framework/src/java/overview.htmlindex 6534614feb5..a8156a389a3 100644--- a/solr/test-framework/src/java/overview.html+++ b/solr/test-framework/src/java/overview.html@@ -1,3 +1,19 @@+<!--+ 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.+--><html><body>Apache Solr Search Server: Test Framework