Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .dir-locals.el
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
;; set up Lucene style for emacs
((java-mode . ((c-basic-offset . 2))))

1 change: 0 additions & 1 deletion .github/actionlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ paths:
- 'shellcheck reported issue in this script: SC2129:.+'
# TODO: another style issue
- 'shellcheck reported issue in this script: SC2236:.+'

34 changes: 5 additions & 29 deletions .pre-commit-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,44 +22,20 @@ repos:
- id: trailing-whitespace
name: Fix trailing whitespace
types: [ text ]
# TODO: fix these files
exclude:
glob:
- lucene/demo/src/test/org/apache/lucene/demo/test-files/docs/*.txt
- lucene/analysis/common/src/resources/org/apache/lucene/analysis/**/stopwords.txt
- lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.java
- lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/checkcompoundrep.aff

- id: end-of-file-fixer
name: Fix newline at EOF
# TODO: fix these files
exclude:
glob:
- .dir-locals.el
- .github/actionlint.yaml
- dev-tools/scripts/README.md
- gradle/documentation/render-javadoc/custom_styles.css
- help/*.txt
- LICENSE.txt
- lucene/analysis/common/src/java/org/apache/lucene/analysis/email/ASCIITLD.jflex
- lucene/analysis/common/src/resources/org/apache/lucene/analysis/bn/stopwords.txt
- lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/*.txt
- lucene/analysis/common/src/test/org/apache/lucene/analysis/charfilter/*.htm
- lucene/analysis/common/src/test/org/apache/lucene/analysis/email/*.{txt,html}
- lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/*.{aff,dic}
- lucene/analysis/common/src/test/org/apache/lucene/analysis/no/*.txt
- lucene/analysis/common/src/test/org/apache/lucene/analysis/synonym/synonyms.txt
- lucene/analysis/icu/src/data/utr30/*.txt
- lucene/analysis/icu/src/test/org/apache/lucene/analysis/icu/segmentation/*.rbbi
- lucene/benchmark/conf/*.alg
- lucene/demo/src/test/org/apache/lucene/demo/test-files/docs/*.txt
- lucene/distribution/src/binary-release/README.md
- lucene/highlighter/src/test/org/apache/lucene/search/uhighlight/CambridgeMA.utf8
- lucene/licenses/*.txt
- lucene/misc/src/java/org/apache/lucene/misc/doc-files/*.svg
- lucene/test-framework/src/resources/org/apache/lucene/tests/index/LICENSE.txt
- lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.jj
# generated file
- versions.lock
# generated file
- lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/*_stop.txt
# TODO: do this one later with more free RAM
- lucene/analysis/common/src/java/org/apache/lucene/analysis/email/ASCIITLD.jflex

- id: fix-byte-order-marker
name: Fix UTF-8 byte order marker
Expand Down
1 change: 0 additions & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -504,4 +504,3 @@ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

1 change: 0 additions & 1 deletion dev-tools/scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,3 @@ and prints a regular expression that will match all of them
### gitignore-gen.sh

TBD

1 change: 0 additions & 1 deletion gradle/documentation/render-javadoc/custom_styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ span.highlight {
padding-bottom: 2px;
border-bottom: 2px solid red;
}

1 change: 0 additions & 1 deletion help/formatting.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,3 @@ the lucene.spotlessGradleScripts option to false - either on command line
using -Plucene.spotlessGradleScripts=false, in your local
build-options.local.properties or by any other means build options can be
set.

1 change: 0 additions & 1 deletion help/jmh.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,3 @@ Also you must run benchmarks as root to use dtrace, but it works.
$ vi jdk/src/utils/hsdis/binutils/hsdis-binutils.c, change #include "hsdis.h" to #include "../hsdis.h"
$ (cd jdk/src/utils/hsdis/binutils && make BINUTILS=../../../../../binutils-2.38 ARCH=aarch64)
$ cp jdk/src/utils/hsdis/binutils/build/macosx-aarch64/hsdis-aarch64.dylib $JAVA_HOME/lib/server

2 changes: 0 additions & 2 deletions help/publishing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,3 @@ If this is not possible, then you should avoid using an external GPG process, an

This may mean that there is a problem preventing `gpg` from communicating correctly with the `gpg-agent` (and/or invoking your `pinentry`
program) that is independent of gradle. Try running `pkill gpg-agent` and then retrying your `./gradlew` command


Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@
যাওয়া
রকম
সাধারণ
কমনে
কমনে
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Lucene Greek Stopwords list
# Note: by default this file is used after GreekLowerCaseFilter,
# so when modifying this file use 'σ' instead of 'ς'
# so when modifying this file use 'σ' instead of 'ς'
ο
η
το
Expand All @@ -11,7 +11,7 @@
των
τον
την
και
και
κι
κ
ειμαι
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ ieri
îl
îmi
împotriva
în
în
înainte
înaintea
încât
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -650,4 +650,3 @@
</body>

</html>

Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,3 @@ <h1 id="Other">Other</h1>
</div>
</body>
</html>

Original file line number Diff line number Diff line change
Expand Up @@ -424,4 +424,3 @@ complex than kBoJf{XaGl@[248.166.223.221] we are heard within the
<pEjZPm8A@v956Y7GQV.5uu6.Ribgf20u.6e.0do1nki1t.ahy.6iy.sm> woman of The
<pIFWkl2@w9N0Q.MC> mirror of p=VTtlpC@w3ttqb.FO dream, born from that we are. A
VOICE:-A

Original file line number Diff line number Diff line change
Expand Up @@ -1343,4 +1343,3 @@ times, so easily composed. It was a large and I said. (I
of her hands, and should always led him up here.' The sheep bell.
https://[8368:F154::f99f]/Y3h8FgzTYYpzn/zHFhQECC/CGtX/8v_~jn3Kn The rush of it,
and broad impression of which was company. I had no matter of com-

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
3
drink/BY
rıver/AX

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// forbid compound word, if it is also a non-compound word with a REP fault
// In example: Hungarian `szerv�z' (szer+v�z) compound word is forbidden, because
// In example: Hungarian `szerv�z' (szer+v�z) compound word is forbidden, because
// this word is also a dictionary word (szerviz) with typical fault (i->�)
CHECKCOMPOUNDREP
COMPOUNDFLAG A
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
COMPOUNDMIN 3
COMPOUNDFLAG A

Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
a/A
b/B
c/BC

Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
a/A
b/B
c/C

Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
a/A
b/B
c/C

Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
a/A
b/B
c/C

Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ SFX s 0 s .

PFX p Y 1
PFX p 0 0/s .

Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ SET UTF-8

SFX X Y 1
SFX X ar o [^\-]ar

Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
1
foo/65000,12,2756

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
2
drink/XYZ
walk/A

Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ REP inspite in_spite
KEY qwertzuiop|asdfghjkl|yxcvbnm|aq
WORDCHARS .-
FORBIDDENWORD ?

Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ FLAG num

SFX 322 Y 1
SFX 322 eer 0/100 .

Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,3 @@ best best
føle føl
følte føl
følt følt

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Armenian
Basque
Catalan
Danish
Dutch_porter
Dutch
Dutch_porter
English
Esperanto
Estonian
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ Television, Televisions, TV, TVs

# Synonym mappings can be used for spelling correction too
pixima => pixma

1 change: 0 additions & 1 deletion lucene/analysis/icu/src/data/utr30/NativeDigitFolding.txt
Original file line number Diff line number Diff line change
Expand Up @@ -780,4 +780,3 @@ ABF9>0039 # MEETEI MAYEK DIGIT NINE
1E957>0037 # ADLAM DIGIT SEVEN
1E958>0038 # ADLAM DIGIT EIGHT
1E959>0039 # ADLAM DIGIT NINE

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"lucene/analysis/icu/src/data/utr30/DiacriticFolding.txt": "373e40493455c8b22f83e5b19c4d480817451b00",
"lucene/analysis/icu/src/data/utr30/DingbatFolding.txt": "bed27b1f97b52538ffeb3a4eccd85c5848991a3e",
"lucene/analysis/icu/src/data/utr30/HanRadicalFolding.txt": "567197dc87a5ff803cc44cd5ce874f0e4717e3d4",
"lucene/analysis/icu/src/data/utr30/NativeDigitFolding.txt": "ffda744598d5341c08288931bae4661a83e6e43e",
"lucene/analysis/icu/src/data/utr30/NativeDigitFolding.txt": "5e133d0bf22a0b96a79b5a418055de7c23443697",
"lucene/analysis/icu/src/data/utr30/nfc.txt": "57c1d9b3641c50486d429ab1779f3f6adeb60a87",
"lucene/analysis/icu/src/data/utr30/nfkc.txt": "62ec59ac1c59c8b2de246ac565cc97e99c4765db",
"lucene/analysis/icu/src/data/utr30/nfkc_cf.txt": "1b820f8f0975a9434837b57c2a44a83847e1ba1b",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,3 @@ $HangulSyllable $HangulSyllable {200};
# Rule 999
# Match a single code point if no other rule applies.
.;

2 changes: 0 additions & 2 deletions lucene/benchmark/conf/basicNRT.alg
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,3 @@ RollbackIndex
RepSumByPref Indexing
RepSumByPref Searching
RepSumByPref NearRealtimeReader


1 change: 0 additions & 1 deletion lucene/benchmark/conf/collector-small.alg
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,3 @@ log.queries=true
#RepSumByPrefRound psc1000
#RepSumByPrefRound psc10000
#RepSumByPrefRound psc50000

1 change: 0 additions & 1 deletion lucene/benchmark/conf/collector.alg
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,3 @@ log.queries=true
#RepSumByPrefRound psc1000
#RepSumByPrefRound psc10000
#RepSumByPrefRound psc50000

1 change: 0 additions & 1 deletion lucene/benchmark/conf/facets.alg
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,3 @@ task.max.depth.log=2
RepSumByPrefRound Search
RepSumByPrefRound Populate
RepSumByPrefRound MAddDocs

1 change: 0 additions & 1 deletion lucene/benchmark/conf/sort-standard.alg
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,3 @@ log.queries=true
}

RepSumByName

2 changes: 0 additions & 2 deletions lucene/benchmark/conf/spatial.alg
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,3 @@ CloseReader

#RepSumByName
RepSumByPrefRound RealQueries


Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,3 @@
* originally written at the National Center for Supercomputing Applications,
* University of Illinois, Urbana-Champaign.
*/

Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,3 @@ All Recipient's rights under this Agreement shall terminate if it fails to compl
Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.

This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.


Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ authors' reputations.

The precise terms and conditions for copying, distribution and
modification follow.

GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

Expand Down Expand Up @@ -98,7 +98,7 @@ it, and copy and distribute such modifications under the terms of Paragraph
Mere aggregation of another independent work with the Program (or its
derivative) on a volume of a storage or distribution medium does not bring
the other work under the scope of these terms.

3. You may copy and distribute the Program (or a portion or derivative of
it, under Paragraph 2) in object code or executable form under the terms of
Paragraphs 1 and 2 above provided that you also do one of the following:
Expand Down Expand Up @@ -144,7 +144,7 @@ Program), the recipient automatically receives a license from the original
licensor to copy, distribute or modify the Program subject to these
terms and conditions. You may not impose any further restrictions on the
recipients' exercise of the rights granted herein.

7. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
Expand Down Expand Up @@ -189,7 +189,7 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

END OF TERMS AND CONDITIONS

Appendix: How to Apply These Terms to Your New Programs

If you develop a new program, and you want it to be of the greatest
Expand Down
Loading