Commit Graph

35613 Commits

Author SHA1 Message Date
Marc D'mello c7650cdec2 LUCENE-10250: Add support for arbitrary length hierarchical SSDV facets (#509) 2022-01-10 09:24:53 -08:00
gf2121 12c526595c LUCENE-10350: Avoid some null checking for FastTaxonomyFacetCounts#countAll() (#578) 2022-01-10 07:45:33 -08:00
Adrien Grand 78a1e6a8f7 Simplify some exception handling with try-with-resources. (#589) 2022-01-10 15:41:36 +01:00
Yannick Welsch 1998903a45 LUCENE-10291: Don't use CFS in testMinimalCodec (#593)
This test was occasionally failing on CI, as the test randomly installed a merge policy
that would force compound file creation while the goal of the test was not to do so.
2022-01-10 12:18:14 +00:00
Uwe Schindler 964006360c LUCENE-10364: Prepare and update errorprone plugin for Java 17 (#590) 2022-01-07 19:21:05 +01:00
Uwe Schindler 80d057fb03 Revert "Revert this change as module system work was not yet backported"
This reverts commit 336341ed71.
2022-01-06 19:06:30 +01:00
Dawid Weiss f568cfa15a LUCENE-10328: open up certain packages for junit and the test framework (reflective access). 2022-01-06 19:06:02 +01:00
Dawid Weiss bc6aa00c5f LUCENE-10328: Module path for compiling and running tests is wrong (#571) 2022-01-06 19:06:01 +01:00
Uwe Schindler 336341ed71 Revert this change as module system work was not yet backported 2022-01-06 18:53:32 +01:00
Robert Muir 0678611a50 LUCENE-10353: add random null injection to TestRandomChains (#586)
Co-authored-by: Uwe Schindler <uschindler@apache.org>, Robert Muir <rmuir@apache.org>
2022-01-06 16:58:37 +01:00
Adrien Grand a87cd9ae16 Fix path of docs for import into the website. (#524)
The current `svn import` looks for docs where they used to be produced by the
`Ant` build, but `Gradle` now puts them in a different place.
2022-01-06 09:27:03 +01:00
Adrien Grand 6c1b9f74e8 LUCENE-10354: Clarify contract of codec APIs with missing/disabled fields. (#583) 2022-01-05 18:47:56 +01:00
Adrien Grand 7572352b79 LUCENE-10291: Bug fix. 2022-01-05 16:37:17 +01:00
Adrien Grand 5920486671 LUCENE-10291: CHANGES entry 2022-01-05 16:31:23 +01:00
Yannick Welsch 738247e78d LUCENE-10291: Only read/write postings when there is at least one indexed field (#539) 2022-01-05 16:31:23 +01:00
Adrien Grand 2fd41b8ff2 Use CDN to download source release. (#529) 2022-01-05 15:54:49 +01:00
Adrien Grand 90cc570343 Modernize release announcement text. (#525)
It currently reads as Lucene is a full-text search library when it can do much
more than that nowadays.
2022-01-05 15:54:09 +01:00
gf2121 76d83507be LUCENE-10343: Remove MyRandom in favor of test framework random (#573) 2022-01-05 15:54:06 +01:00
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