Commit Graph

35693 Commits

Author SHA1 Message Date
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
Dawid Weiss b48cac0206
LUCENE-10285: try to force ordering of internal tasks, in spite of making top-level wrapper dependencies. (#549) 2021-12-17 19:12:09 +01:00
Dawid Weiss 1a429c621e Render javadocs for all projects, even if they're not part of site. 2021-12-17 17:57:38 +01:00
Uwe Schindler f7fd21a0c6 Merge branch 'main' of https://gitbox.apache.org/repos/asf/lucene into jms2 2021-12-17 16:05:17 +01:00
Uwe Schindler 8610176a42 Remove obsolete options 2021-12-17 15:22:22 +01:00
Greg Miller 1e8b94a1bb
LUCENE-10321: Tweak MultiRangeQuery interval tree creation logic (#547) 2021-12-17 05:43:38 -08:00
Uwe Schindler db9dff225c after reading code, correct the argument file to comply with ECJ's parser 2021-12-17 12:18:28 +01:00
Uwe Schindler 6941701c6d Escape the options in ECJ's options file 2021-12-17 11:37:27 +01:00
Dawid Weiss ae92e96481 Address Uwe's remarks. 2021-12-16 20:05:05 +01:00
Dawid Weiss c64e5fe84c LUCENE-10313: add missing javadoc. 2021-12-16 18:36:19 +01:00
Dawid Weiss e0745c7b24 LUCENE-10255: re-add utilities for debugging packages and services. These are not included by default to avoid unnecessary compilation overhead. 2021-12-16 17:59:54 +01:00
Dawid Weiss 5b3b75efd8 LUCENE-10308: Make ecj and javadoc run with modular paths 2021-12-16 17:51:01 +01:00
Dawid Weiss 9224bde83c Add assertj. 2021-12-16 16:49:20 +01:00
Dawid Weiss 9917092bf8 LUCENE-10313: merge log4j-less Luke. 2021-12-16 15:47:52 +01:00