Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

license updates

Yonik Seeleyf85eb581e0ae
diff --git a/example/exampledocs/post.sh b/example/exampledocs/post.sh
index 0a4251a96c5..1efe954876e 100755
--- a/example/exampledocs/post.sh
+++ b/example/exampledocs/post.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# 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.
+
FILES=$*
URL=http://localhost:8983/solr/update
diff --git a/example/solr/README.txt b/example/solr/README.txt
index 62ce8403fb7..34ab6c1ccb0 100644
--- a/example/solr/README.txt
+++ b/example/solr/README.txt
@@ -1,3 +1,16 @@
+# 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.
+
+
Example "Solr Home" Directory
=============================
diff --git a/example/solr/conf/admin-extra.html b/example/solr/conf/admin-extra.html
index b68131ad98f..aa739da862c 100644
--- a/example/solr/conf/admin-extra.html
+++ b/example/solr/conf/admin-extra.html
@@ -1,3 +1,20 @@
+<!--
+ 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.
+-->
+
<!-- The content of this page will be statically included into the top
of the admin page. Uncomment this as an example to see there the content
will show up.
diff --git a/example/solr/conf/protwords.txt b/example/solr/conf/protwords.txt
index 7864cd6eeb6..1dfc0abecbf 100644
--- a/example/solr/conf/protwords.txt
+++ b/example/solr/conf/protwords.txt
@@ -1,7 +1,21 @@
-#use a protected word file to protect against the stemmer reducing two
-#unrelated words to the same base word.
+# 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.
-#some test non-words that would normally be stemmed:
+#-----------------------------------------------------------------------
+# Use a protected word file to protect against the stemmer reducing two
+# unrelated words to the same base word.
+
+# Some non-words that normally won't be encountered,
+# just to test that they won't be stemmed.
dontstems
zwhacky
diff --git a/example/solr/conf/stopwords.txt b/example/solr/conf/stopwords.txt
index 6c98e2f6ba6..8433c832d2c 100644
--- a/example/solr/conf/stopwords.txt
+++ b/example/solr/conf/stopwords.txt
@@ -13,9 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-
-#a couple of test stopwords to test that the words are really being configured
-#from this file:
+#-----------------------------------------------------------------------
+# a couple of test stopwords to test that the words are really being
+# configured from this file:
stopworda
stopwordb
diff --git a/example/solr/conf/synonyms.txt b/example/solr/conf/synonyms.txt
index f225292d8ae..b0e31cb7ec8 100644
--- a/example/solr/conf/synonyms.txt
+++ b/example/solr/conf/synonyms.txt
@@ -1,5 +1,17 @@
+# 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.
-#some test synonym mappings for things unlikely to appear in input text
+#-----------------------------------------------------------------------
+#some test synonym mappings unlikely to appear in real input text
aaa => aaaa
bbb => bbbb1 bbbb2
ccc => cccc1,cccc2
@@ -7,14 +19,13 @@ a\=>a => b\=>b
a\,a => b\,b
fooaaa,baraaa,bazaaa
-#synonyms, for our purposes
+# Some synonym groups specific to this example
GB,gib,gigabyte,gigabytes
MB,mib,megabyte,megabytes
+Television, Televisions, TV, TVs
#notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming
#after us won't split it into two words.
-#spelling correction
+# Synonym mappings can be used for spelling correction too
pixima => pixma
-Television, Televisions, TV, TVs
-