Commit Graph

35656 Commits

Author SHA1 Message Date
zacharymorn d0ad9f5bfc
LUCENE-10183: KnnVectorsWriter#writeField to take KnnVectorsReader instead of VectorValues (#534) 2022-01-06 22:14:41 -08:00
Robert Muir f2e00bb9e0
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:56:49 +01:00
Adrien Grand 603a43f668
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:26:45 +01:00
Dawid Weiss b8da9f32c8 LUCENE-10328: open up certain packages for junit and the test framework (reflective access). 2022-01-05 21:02:51 +01:00
Dawid Weiss ff547e7bbd
LUCENE-10328: Module path for compiling and running tests is wrong (#571) 2022-01-05 20:42:02 +01:00
Adrien Grand c8651afde7
LUCENE-10354: Clarify contract of codec APIs with missing/disabled fields. (#583) 2022-01-05 18:47:35 +01:00
Adrien Grand 7fdba36941 LUCENE-10291: Bug fix. 2022-01-05 16:37:37 +01:00
Adrien Grand f9ff620ec6 LUCENE-10291: CHANGES entry 2022-01-05 16:30:58 +01:00
Yannick Welsch 8fa7412dec
LUCENE-10291: Only read/write postings when there is at least one indexed field (#539) 2022-01-05 16:28:00 +01:00
Adrien Grand 65296e5f84
Use CDN to download source release. (#529) 2022-01-05 15:54:33 +01:00
Adrien Grand 6149387f7c
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:53:49 +01:00
Uwe Schindler 475fbd0bdd
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:35:02 +01:00
gf2121 238119224a
LUCENE-10343: Remove MyRandom in favor of test framework random (#573) 2022-01-05 15:31:00 +01:00
gf2121 60b80017cb
LUCENE-10355: clean zeros (#584) 2022-01-05 15:23:16 +01:00
Mayya Sharipova 78da703037
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 15:59:30 -05:00
Uwe Schindler 4bacf93c7e
LUCENE-10348: Make stopwords resources from analyzers modules visible to ClasspathResourceLoader and ModuleResourceLoader (#581) 2022-01-04 15:05:29 +01:00
Christine Poerschke ef1a554204 Update copyright year in NOTICE.txt file. 2022-01-04 10:43:46 +00:00
Dawid Weiss 0f0d06ca28
LUCENE-10347: add a helper task 'collectRuntimeJars' that assembles binary artifacts under each module's build 'runtimeJars' folder. (#576) 2022-01-03 21:11:35 +01:00
Adrien Grand cc5634f0f1 Remove unused backward indices. 2022-01-03 15:17:47 +01:00
Uwe Schindler 305d9ebb86
LUCENE-10349: Cleanup WordListLoader to use try-with-resources and make the default stop words unmodifiable (#577) 2022-01-03 15:07:44 +01:00
Adrien Grand 835e821287 LUCENE-10346: Move CHANGES entry to 9.1. 2022-01-03 15:04:24 +01:00
Uwe Schindler 8b5887f244 LUCENE-10287: Remove obsolete changes entry (we now have a warning and won't rely on the module when staring luke) 2022-01-03 14:59:12 +01:00
gf2121 26713b3f57
LUCENE-10346: Specially treat SingletonSortedNumericDocValues in FastTaxonomyFacetCounts#countAll() (#574) 2022-01-03 14:44:05 +01:00
David Smiley 1ee11a8497
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:26:50 -05:00
Uwe Schindler 1c7ad19bf0 LUCENE-10335: Fix ECJ warning 2022-01-03 11:34:39 +01:00
Uwe Schindler cc342ea740
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:38:19 +01:00
Uwe Schindler 0b517573a4
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>
2021-12-29 18:18:21 +01:00
Tomoko Uchida e89c9fcca8
LUCENE-10339: Add require directive for accessing jdk.management (#568) 2021-12-27 19:10:20 +09:00
Dawid Weiss 17b4680641 LUCENE-10338: make TestPosition an internal class inside TrivialLookaheadFilter so that it's not picked up as a test. 2021-12-27 09:38:56 +01:00
Dawid Weiss d928c47d6e
LUCENE-10338: Scan for tests only by convention file name pattern (#565) 2021-12-26 18:18:24 +01:00
Tomoko Uchida eed2601542
LUCENE-10340: Fix resource path for image files in luke module (#569) 2021-12-26 14:36:42 +09:00
Tomoko Uchida 54ebf3c73b
LUCENE-10301: Place test-framework into separated modules folder. (#566) 2021-12-23 21:14:16 +09:00
Uwe Schindler 1552c83fc5
LUCENE-10301: extract constants to TestSecrets to spare stack inspection and make code more readable (#561) 2021-12-22 12:14:48 +01:00
gf2121 c1fb591984
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:03:12 -05:00
Dawid Weiss a94fbb79ac LUCENE-10301: make the test-framework a proper module by moving all test
classes to org.apache.lucene.tests.*. Also changes distribution layout
(all modules are now under modules/).
2021-12-21 20:30:45 +01:00
Patrick Zhai 119c7c29ae
LUCENE-10316: fix TestLRUQueryCache.testCachingAccountableQuery failure (#542) 2021-12-21 10:32:02 -08:00
Mike McCandless d2993ead4c improve exception message 2021-12-21 12:28:44 -05:00
Uwe Schindler fea44cd4ee LUCENE-10330: Make MMapDirectory tests fail by default, if unmapping does not work (add changes) 2021-12-21 13:05:10 +01:00
Uwe Schindler b4d29ccddb
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:00:10 +01:00
Patrick Zhai 8f99c12113
Fix default alphabetSize of NFARunAutomaton (#559) 2021-12-21 00:15:38 -08:00
Patrick Zhai 0a28fd8b9e
Move LUCENE-10010 entry from 9.1.0 to 10.0.0 (#558)
To align with Robert's change
2021-12-20 21:44:24 -08:00
Patrick Zhai c972c6a775
LUCENE-10010 Introduce NFARunAutomaton to run NFA directly (#225)
LUCENE-10010 Introduce NFARunAutomaton to run NFA directly

Created 2 new interfaces ByteRunnable and TransisitonAccessor to represent function necessary for performing automaton run. Introduced NFARunAutomaton and incorporated into CompiledAutomaton and enables directly running AutomatonQuery based on NFA for all codecs.
2021-12-20 14:52:09 -08:00
Dawid Weiss e790125504
LUCENE-10331: don't emit the contents of the inputs file until we're actually running the task (#554) 2021-12-20 19:27:37 +01:00
zacharymorn 92e5391f27
LUCENE-10236: Add change entry (#456)
Co-authored-by: Michael McCandless <mikemccand@apache.org>
2021-12-19 21:48:58 -08:00
Animesh Pandey b1b1a890d0
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:38:23 -05:00
Dawid Weiss 5512786dd9 LUCENE-10327: workaround for gradle emitting empty sourcepath. 2021-12-19 08:52:01 +01:00
Dawid Weiss d2c98912eb This reverts commit a7b50f723d. 2021-12-19 08:51:13 +01:00
Dawid Weiss a7b50f723d Reverting back to b48cac02. 2021-12-18 23:36:30 +01:00
Dawid Weiss 2a44ff532e LUCENE-10308: sort input files for ecj so that module-info.java comes first. 2021-12-18 21:17:56 +01:00
Dawid Weiss d42db56bab LUCENE-10255: initial support for Java Modules. 2021-12-18 20:45:51 +01:00