Uwe Schindler
75259417f1
LUCENE-10352: Convert TestAllAnalyzersHaveFactories and TestRandomChains to a global integration test and discover classes to check from module system ( #582 )
...
Co-authored-by: Robert Muir <rmuir@apache.org>
2022-01-05 15:37:17 +01:00
gf2121
3fda998fc7
LUCENE-10355: clean zeros ( #584 )
2022-01-05 15:23:34 +01:00
Mayya Sharipova
0a1cf31084
LUCENE-10351 Correct knn search failure with deleted docs ( #580 )
...
Current when doing knn search on an segment where all documents
with knn field were deleted, we get the following error:
maxSize must be > 0 and < 2147483630; got: 0
java.lang.IllegalArgumentException: maxSize must be > 0 and < 2147483630; got: 0
at __randomizedtesting.SeedInfo.seed([43F1F124D7076A4E:1B860BFCCB9B0BB5]:0)
at org.apache.lucene.util.LongHeap.<init>(LongHeap.java:57)
at org.apache.lucene.util.LongHeap$1.<init>(LongHeap.java:69)
at org.apache.lucene.util.LongHeap.create(LongHeap.java:69)
at org.apache.lucene.util.hnsw.NeighborQueue.<init>(NeighborQueue.java:41)
at org.apache.lucene.util.hnsw.HnswGraph.search(HnswGraph.java:105)#
This patch fixes this error and ensures empty TopDocs are returned when
knn field doesn't have any documents left.
2022-01-04 16:56:49 -05:00
Uwe Schindler
fbc8923b0a
Merge branch 'branch_9x' of https://gitbox.apache.org/repos/asf/lucene into branch_9x
2022-01-04 15:07:18 +01:00
Uwe Schindler
d17c54b5ff
LUCENE-10348: Make stopwords resources from analyzers modules visible to ClasspathResourceLoader and ModuleResourceLoader ( #581 )
2022-01-04 15:06:56 +01:00
Christine Poerschke
8a5b4a091c
Update copyright year in NOTICE.txt file.
2022-01-04 10:45:20 +00:00
Dawid Weiss
78077d4d69
LUCENE-10347: add a helper task 'collectRuntimeJars' that assembles binary artifacts under each module's build 'runtimeJars' folder. ( #576 )
2022-01-03 21:12:46 +01:00
gf2121
01f5e7bb7b
LUCENE-10346: Specially treat SingletonSortedNumericDocValues in FastTaxonomyFacetCounts#countAll() ( #574 )
2022-01-03 15:12:18 +01:00
Adrien Grand
da3992b16f
Add back-compat indices for 9.0.0
2022-01-03 15:12:17 +01:00
Uwe Schindler
837e163eee
LUCENE-10349: Cleanup WordListLoader to use try-with-resources and make the default stop words unmodifiable ( #577 )
2022-01-03 15:09:02 +01:00
Uwe Schindler
c37827eb8e
Merge branch 'branch_9x' of https://gitbox.apache.org/repos/asf/lucene into branch_9x
2022-01-03 15:01:19 +01:00
Uwe Schindler
9a19781dfc
LUCENE-10287: Remove obsolete changes entry (we now have a warning and won't rely on the module when staring luke)
2022-01-03 15:01:02 +01:00
David Smiley
72163649b1
LUCENE-10252: ValueSource.asDoubleValues should not compute the score ( #519 )
...
ValueSource.asDoubleValues and asLongValues should not compute the score unless asked to -- typically never. This fixes a performance regression since 7.3 LUCENE-8099 when some older boosting queries were replaced with this.
2022-01-03 08:27:23 -05:00
Uwe Schindler
e378ff5529
LUCENE-10335: Fix ECJ warning
2022-01-03 11:35:54 +01:00
Uwe Schindler
3ec3456d21
LUCENE-10335: Deprecate helper methods for resource loading in IOUtils and StopwordAnalyzerBase that are not compatible with module system; add utility method IOUtils#requireResourceNonNull(T) and add ModuleResourceLoader as complement to ClasspathResourceLoader
...
Co-authored-by: Tomoko Uchida <tomoko.uchida.1111@gmail.com>
2022-01-03 10:39:34 +01:00
Uwe Schindler
df4562d149
LUCENE-10342: Add logging to static initializers to warn users if unmapping or object size calculation does not work ( #572 )
...
Co-authored-by: Tomoko Uchida <tomoko.uchida.1111@gmail.com>
# Conflicts:
# lucene/facet/src/java/org/apache/lucene/facet/taxonomy/directory/DirectoryTaxonomyReader.java
2021-12-29 18:20:32 +01:00
Tomoko Uchida
200bf00365
LUCENE-10339: Add require directive for accessing jdk.management ( #568 )
2021-12-27 19:11:50 +09:00
Dawid Weiss
09561053c5
LUCENE-10338: make TestPosition an internal class inside TrivialLookaheadFilter so that it's not picked up as a test.
2021-12-27 09:51:08 +01:00
Dawid Weiss
aab0413b57
LUCENE-10338: Scan for tests only by convention file name pattern ( #565 )
2021-12-26 18:19:10 +01:00
Tomoko Uchida
e69186b8ce
LUCENE-10340: Fix resource path for image files in luke module ( #569 )
2021-12-26 14:37:53 +09:00
Patrick Zhai
6e7789013b
LUCENE-10316: fix TestLRUQueryCache.testCachingAccountableQuery failure ( #542 )
2021-12-25 10:31:02 -08:00
Tomoko Uchida
cc894d90d8
LUCENE-10301: Place test-framework into separated modules folder. ( #566 )
2021-12-23 23:13:54 +09:00
gf2121
9c57967de3
LUCENE-10329: Use computed mask for DirectMonotonicReader#get ( #553 )
...
* use computed mask
* CHANGES
* use block mask for getBounds too
Co-authored-by: guofeng.my <guofeng.my@bytedance.com>
2021-12-22 06:38:38 -05:00
Uwe Schindler
92c735f786
LUCENE-10301: extract constants to TestSecrets to spare stack inspection and make code more readable ( #561 )
2021-12-22 12:16:10 +01:00
Dawid Weiss
c2d505d502
LUCENE-10301: make the test-framework a proper module by moving all test ( #560 )
...
classes to org.apache.lucene.tests.*. Also changes distribution layout
(all modules are now under modules/).
This is a backport on 9x.
2021-12-21 21:28:14 +01:00
Mike McCandless
872902bfab
improve exception message
2021-12-21 12:29:22 -05:00
Uwe Schindler
0f41b5511e
LUCENE-10330: Make MMapDirectory tests fail by default, if unmapping does not work (add changes)
2021-12-21 13:06:36 +01:00
Uwe Schindler
1cc1e54245
LUCENE-10330: Make the mmap directory tests fail by default, if unmapping does not work ( #556 )
...
Co-authored-by: Dawid Weiss <dawid.weiss@gmail.com>
2021-12-21 13:06:36 +01:00
Dawid Weiss
4be5fd16ed
LUCENE-10331: don't emit the contents of the inputs file until we're actually running the task ( #554 )
2021-12-20 19:28:54 +01:00
Animesh Pandey
a9f812c1cf
LUCENE-10197: UnifiedHighlighter now has a Builder ( #412 )
...
Setters (mutable state) on the UH is deprecated.
Co-authored-by: David Smiley <dsmiley@apache.org>
2021-12-19 12:45:20 -05:00
Dawid Weiss
4102b98647
Don't log warnings from ant (different class loader, I guess). Makes Alan happier.
2021-12-19 12:04:09 +01:00
Dawid Weiss
70b4239fbd
LUCENE-10327: workaround for gradle emitting empty sourcepath.
2021-12-19 11:59:25 +01:00
Dawid Weiss
c3d3d0703b
Revert "Reverting back to 9d19b49038b."
...
This reverts commit d2a022f49b
.
2021-12-19 11:59:13 +01:00
Dawid Weiss
d2a022f49b
Reverting back to 9d19b49038
.
2021-12-18 23:35:22 +01:00
Dawid Weiss
1114cf2c25
LUCENE-10308: sort input files for ecj so that module-info.java comes first.
2021-12-18 21:18:16 +01:00
Dawid Weiss
7e1f3fef69
LUCENE-10255: add unsynced providers to the module.
2021-12-18 21:06:11 +01:00
Dawid Weiss
c1c27d4ff4
LUCENE-10255: initial support for Java Modules (squashed).
2021-12-18 20:51:55 +01:00
Dawid Weiss
9d19b49038
LUCENE-10285: try to force ordering of internal tasks, in spite of making top-level wrapper dependencies. ( #549 )
2021-12-17 19:14:29 +01:00
Greg Miller
ff274fddb6
LUCENE-10321: Tweak MultiRangeQuery interval tree creation logic ( #548 )
2021-12-17 06:38:48 -08:00
Dawid Weiss
34d69fd160
LUCENE-10313: add missing javadoc.
2021-12-16 18:36:57 +01:00
Jan Høydahl
97106d37c9
Run tidy on Version file
2021-12-16 15:53:55 +01:00
Tomoko Uchida
db26532154
LUCENE-10313: minor clean-ups and follow-ups ( #546 )
2021-12-16 23:43:21 +09:00
Jan Høydahl
3d5c3b5f8e
Remove duplicated @deprecated line
2021-12-16 15:36:21 +01:00
Jan Høydahl
9534a08aa3
Add back-compat indices for 8.11.1
2021-12-16 13:28:02 +01:00
Jan Høydahl
91d4846df6
Fix bug in Version deprecation on stable branch
2021-12-16 13:13:55 +01:00
Jan Høydahl
5694fa840e
Add bugfix version 8.11.1
2021-12-16 12:13:06 +01:00
Tomoko Uchida
5ddc7ebb83
LUCENE-10303: remove unnecessary changes entry
2021-12-16 19:40:51 +09:00
Dawid Weiss
629ab1c952
LUCENE-10313: drop log4j from luke ( #544 )
2021-12-16 11:19:57 +01:00
Quentin Pradet
352a6b68f0
LUCENE-10085: Fix flaky testQueryMatchesCount ( #538 )
...
Five times every 10 000 tests, we did not index any documents with i
between 0 and 10 (inclusive), which caused the deleted tests to fail.
With this commit, we make sure that we always index at least one
document between 0 and 10.
2021-12-14 10:50:48 +01:00
Ignacio Vera
5ba87f9efa
LUCENE-10310: Fix test error in TestXYDocValuesQueries#testRandomDistanceHuge ( #537 )
...
We create random circles using ShapeTestUtils which is safe.
2021-12-13 12:02:13 +01:00