Adrien Grand
bc9c4144df
Remove unnecessary backward compatibility.
2017-07-03 14:17:09 +02:00
Alan Woodward
af1ee47f2b
LUCENE-7867: Remove deprecated Token class
2017-06-23 09:51:05 +01:00
Mike McCandless
58105a203a
LUCENE-7868: use multiple threads to concurrently resolve deletes and DV udpates
2017-06-21 13:47:15 -04:00
Adrien Grand
44d1f1fe3f
LUCENE-7872: TopDocs.totalHits is now a long.
2017-06-21 09:55:02 +02:00
David Smiley
abc393dbfd
LUCENE-7500: Remove LeafReader.fields in lieu of LeafReader.terms.
...
Optimized MultiFields.getTerms.
2017-06-15 00:59:01 -04:00
David Smiley
f470bbcbdc
LUCENE-7876 avoid leafReader.fields
2017-06-13 22:44:04 -04:00
Mike McCandless
d276acfbbc
LUCENE-7854: enable indexing custom term frequencies
2017-06-06 13:37:31 -04:00
Adrien Grand
14320a584c
LUCENE-7847: Fix the all-docs-match optimization of range queries on range fields.
2017-05-23 18:46:50 +02:00
Adrien Grand
06a6034d9b
LUCENE-7730: Better accuracy for the length normalization factor.
2017-05-18 16:27:31 +02:00
Dawid Weiss
e52d860994
LUCENE-7796: Make IOUtils.reThrow idiom declare Error return type so
...
callers may use it in a way that compiler knows subsequent code is
unreachable. reThrow is now deprecated in favor of IOUtils.rethrowAlways.
2017-04-28 12:17:21 +02:00
Adrien Grand
d3494c2cd6
LUCENE-7781: Call ensureOpen when registering closed listeners.
2017-04-13 08:41:47 +02:00
Adrien Grand
15a1561d43
LUCENE-7767: SortedDocValues.ordValue() now throws an IOException.
2017-04-11 10:02:51 +02:00
Adrien Grand
23b002a0fd
LUCENE-7756: Only record the major Lucene version that created the index, and record the minimum Lucene version that contributed to segments.
2017-04-04 09:57:16 +02:00
Adrien Grand
e80643e5a7
LUCENE-7753: Make fields static when possible.
2017-03-31 17:28:21 +02:00
Adrien Grand
53064e46dd
LUCENE-7754: Inner classes should be static whenever possible.
2017-03-28 15:35:04 +02:00
Nicholas Knize
d34d81f9af
LUCENE-7740: Refactor Range Fields to remove Field suffix (e.g., DoubleRange),
...
move InetAddressRange and InetAddressPoint from sandbox to misc module, and
refactor all other range fields from sandbox to core.
2017-03-13 02:22:29 -05:00
Adrien Grand
8ed2b764ed
LUCENE-6819: Remove index-time boosts.
2017-03-02 19:18:16 +01:00
Adrien Grand
540a237231
LUCENE-7410: Make TestReaderClosed pass if the IndexSearcher wraps a threadpool.
2017-03-01 19:12:14 +01:00
Adrien Grand
df6f830723
LUCENE-7410: Make cache keys and close listeners less trappy.
2017-02-28 14:46:45 +01:00
Ishan Chattopadhyaya
9a1702a8f5
SOLR-8029: Reverting the previous commit and the merge
2017-02-15 07:13:28 +05:30
Noble Paul
325cbf0018
Revert "Merge remote-tracking branch 'origin/master'"
...
This reverts commit 26298f35df
, reversing
changes made to 65c6c576b7
.
undoing the merge commit
2017-02-14 17:32:14 -08:00
Christine Poerschke
738da0998a
LUCENE-7693: Replace "org.apache." logic in GetMavenDependenciesTask. (Daniel Collins, Christine Poerschke)
2017-02-14 14:27:44 +00:00
Mike McCandless
f1c5cd5784
LUCENE-7690: also handle expected CorruptIndexException in this test
2017-02-13 10:29:56 -05:00
Mike McCandless
a3bfc3e67c
LUCENE-7690: also handle expected CorruptIndexException in this test
2017-02-11 13:55:09 -05:00
Mike McCandless
be007a6c11
LUCENE-7662: throw CorruptIndexException if index files are missing
2017-02-10 20:20:53 -05:00
Steve Rowe
6c1a4b673a
SOLR-6246: SolrSuggester.build() now throws SolrCoreState.CoreIsClosedException when a core reload/shutdown happens; add a random test lookup dictionary with configurable size; add {Analyzing,Blended}InfixSuggester reload/build tests; add a wrapped-exception expectThrows() variant to LuceneTestCase
2017-02-03 18:25:38 -05:00
Mike McCandless
72eaeab715
LUCENE-7668: add new test case; remove dead code; improve CannedTokenStream to copy all Token attributes
2017-01-31 11:56:07 -05:00
Adrien Grand
cf943c5454
LUCENE-7656: Implement geo box/distance queries using doc values.
2017-01-26 13:59:35 +01:00
Adrien Grand
94530940e4
LUCENE-7647: CompressingStoredFieldsFormat should reclaim memory more aggressively.
2017-01-25 16:15:04 +01:00
Alan Woodward
94e3460305
Revert "LUCENE-7628: Scorer.getChildren() returns only matching Scorers"
...
This reverts commit 5bdc492c9c
.
2017-01-23 11:30:03 +00:00
Alan Woodward
5bdc492c9c
LUCENE-7628: Scorer.getChildren() returns only matching Scorers
2017-01-23 09:35:16 +00:00
Mike McCandless
637915b890
LUCENE-7619: add WordDelimiterGraphFilter (replacing WordDelimiterFilter) to produce a correct token stream graph when splitting words
2017-01-17 10:38:07 -05:00
Jim Ferenczi
1acd2ee2bb
Various fixes and updates for index sorting on flush
...
* IndexWriter.validateIndexSort now throws a CorruptIndexException if a segment created by version >= 6.5.0 is not sorted (already applied in branch_6x)
* Removes unneeded check in AssertingLiveDocsFormat (already applied in branch_6x)
* Removes try/finally block when stored fields consumer finishes (already applied in branch_6x).
2017-01-17 14:22:47 +01:00
Adrien Grand
86233cb95d
LUCENE-7055: Add ScorerProvider to get an estimation of the cost of scorers before building them.
2017-01-17 08:51:58 +01:00
Alan Woodward
8fa0a8dd1e
LUCENE-7627: Add #intersect(CompiledAutomaton) to Sorted*DocValues
2017-01-14 09:40:19 +00:00
Mike McCandless
64b86331c2
LUCENE-7626: IndexWriter no longer accepts broken offsets
2017-01-13 17:46:02 -05:00
Mike McCandless
f985fcaa23
promote this test case to core
2017-01-08 06:38:37 -05:00
Mike McCandless
e64111c654
TokenStreamToAutomaton failed to handle certain holes correctly
2017-01-08 06:26:08 -05:00
Uwe Schindler
db9190db93
LUCENE-7595: Fix bug with RamUsageTester incorrectly handling Iterables outside Java Runtime
2016-12-29 20:31:47 +01:00
Uwe Schindler
f29d2b5668
LUCENE-7595: Improve RAMUsageTester in test-framework to estimate memory usage of runtime classes and work with Java 9 EA (b148+). Disable static field heap usage checker in LuceneTestCase
2016-12-29 01:56:23 +01:00
Adrien Grand
ba47f530d1
LUCENE-7401: Make sure BKD trees index all dimensions.
2016-12-26 10:37:16 +01:00
Mike McCandless
c0467bb929
LUCENE-6664: add SynonymGraphFilter for correct multi-token synonym handling
2016-12-22 15:39:17 -05:00
Uwe Schindler
d5e87898b1
LUCENE-6989: Fix some tests that hardcode MMapDirectory (and also the FSDirectory randomizer), to only use MMapDirectory on Windows, if it supports unmapping. Otherwise tests will fail.
2016-12-21 23:07:50 +01:00
Mike McCandless
4ccb9fbd2b
LUCENE-7579: sort segments at flush too
2016-12-20 06:45:06 -05:00
Mike McCandless
268d4ace36
remove bad assertion
2016-12-15 09:30:25 -05:00
Adrien Grand
be74f4f7a7
LUCENE-7569: Fix index sorting test failures.
2016-11-24 14:10:19 +01:00
Mike McCandless
24b5a624bb
LUCENE-7652: improve BasePostingsFormatTestCase with a level 2 ghost test
2016-11-16 05:19:05 -05:00
Mike McCandless
6c3c6bc379
LUCENE-7537: Index time sorting now supports multi-valued sorts using selectors (MIN, MAX, etc.)
2016-11-15 16:22:51 -05:00
Mike McCandless
c0f9bdf3c3
don't use BooleanSimilarity in RandomSimilarity
2016-11-13 18:41:18 -05:00
Adrien Grand
c4c5e868d2
LUCENE-7531: Removed packing support from FST.
2016-11-10 15:01:49 +01:00
Adrien Grand
6b9f11311a
LUCENE-7524: More detailed explanation of idf.
2016-11-10 15:01:49 +01:00
Adrien Grand
3e15233b23
LUCENE-5867: Add a BooleanSimilarity.
2016-11-10 15:01:49 +01:00
Adrien Grand
af60048097
LUCENE-7429: AnalyzerWrapper can now wrap the normalization analysis chain too.
2016-10-27 16:27:45 +02:00
Adrien Grand
9aca4c9d56
LUCENE-7462: Give doc values APIs an `advanceExact` method.
2016-10-24 10:51:23 +02:00
Dawid Weiss
bc0116af69
LUCENE-7515: RunListenerPrintReproduceInfo may try to access static rule fields without
...
the rule being called. This flag is needed to ensure this isn't the case.
2016-10-21 11:19:12 +02:00
Dawid Weiss
a19ec194d2
LUCENE-7513: Update to randomizedtesting 2.4.0.
2016-10-21 11:14:37 +02:00
Adrien Grand
c22725f0b5
LUCENE-7494: Give points a per-field API.
2016-10-18 10:14:27 +02:00
Adrien Grand
ea1212232d
LUCENE-7495: Fix doc values iterators' assertions in advance().
2016-10-14 14:38:32 +02:00
Mike McCandless
1b7a88f61e
LUCENE-7491: fix merge exception if the same field has points in some segments but not in others
2016-10-12 09:00:26 -04:00
yonik
98191225eb
SOLR-9579: SchemaField should implement lucene.IndexableFieldType to avoid repeated creation
2016-10-11 11:17:55 -04:00
Adrien Grand
63ef459022
LUCENE-7487: Remove unnecessary synchronization from Lucene70NormsProducer.
2016-10-11 08:31:29 +02:00
Mike McCandless
4fe3110e49
automaton initial state is always 0
2016-10-10 13:43:46 -04:00
Adrien Grand
fb088817eb
LUCENE-7479: SimpleText should directly implement the new doc values APIs.
2016-10-07 10:59:11 +02:00
Adrien Grand
9128bdbaf5
LUCENE-7475: Make norms sparse.
2016-10-06 14:07:27 +02:00
Mike McCandless
001a3ca55b
LUCENE-7407: speed up iterating norms a bit by having default codec implement the iterator directly
2016-10-05 14:18:55 -04:00
Adrien Grand
32446e9205
LUCENE-7453: Create a Lucene70Codec.
2016-10-04 10:50:34 +02:00
Noble Paul
e8767daa7b
SOLR-8995: use lambdas for CoreCloseListener
2016-09-29 11:33:22 +05:30
Mike McCandless
24ec3bd085
fix test bug
2016-09-23 06:13:26 -04:00
Mike McCandless
f7aa200d40
LUCENE-7407: switch doc values usage to an iterator API, based on DocIdSetIterator, instead of random acces, freeing codecs for future improvements
2016-09-21 09:41:41 -04:00
Mike McCandless
c7fb49d7b5
LUCENE-7439: FuzzyQuery now matches all terms within the specified edit distance, even if they are short
2016-09-15 14:44:26 -04:00
Robert Muir
f6253d5ed1
LUCENE-7426: remove deprecated DataInput/Output map/string methods
2016-08-25 12:02:52 -04:00
Mike McCandless
f0963b3b4f
add test case to ensure SearchManager can handle concurrent close, refresh, searching and IndexWriter closing
2016-08-19 09:28:17 -04:00
Robert Muir
18373e1129
LUCENE-7414: TestUtil.checkIterator can make tests very slow
2016-08-16 16:12:55 -04:00
Mike McCandless
36d67aaba9
use method reference instead of lambda in these tests
2016-08-09 08:07:07 -04:00
Mike McCandless
04086fbfc4
LUCENE-7409: improve MockDirectoryWrapper's IndexInput to detect if a clone is being used after its parent was closed
2016-08-09 05:03:29 -04:00
Mike McCandless
1aecdd28d1
LUCENE-7390: revert this change, since it's obsoleted by the much better LUCENE-7396
2016-07-29 14:02:00 -04:00
Adrien Grand
bc29a3d7ed
Add missing update of `lastDocId` in AssertingPointsFormat.
2016-07-28 15:27:14 +02:00
Mike McCandless
3a0a9fd2c2
LUCENE-7390: improve points indexing performance by letting the codec use transient heap in proportion to IndexWriter's indexing buffer, by default
2016-07-25 11:33:34 -04:00
Steve Rowe
51d4af6859
LUCENE-7013: add licence header position checker to -validate-source-patterns, and fix the violations it found
2016-07-13 13:21:36 -04:00
Christine Poerschke
15e8719b8a
LUCENE-7372: Factor out an org.apache.lucene.search.FilterWeight class.
2016-07-13 16:04:24 +01:00
Adrien Grand
866398bea6
LUCENE-7371: Better compression of values in Lucene60PointsFormat.
2016-07-12 17:57:56 +02:00
Adrien Grand
e92a38af90
LUCENE-7355: Add Analyzer#normalize() and use it in query parsers.
2016-07-12 16:33:07 +02:00
Adrien Grand
5def78ba10
LUCENE-7368: Remove queryNorm.
2016-07-12 14:38:36 +02:00
Mike McCandless
df9efb8b6d
LUCENE-7373: deprecate Directory.renameFile, which both renamed and fsync'd the directory, replacing it with separate rename and syncMetaData methods
2016-07-11 11:15:46 -04:00
Adrien Grand
f1528bf338
LUCENE-7369: Similarity.coord and BooleanQuery.disableCoord are removed.
2016-07-07 10:02:29 +02:00
Steve Rowe
17d113dac1
LUCENE-2605: Add classic QueryParser option setSplitOnWhitespace() to control whether to split on whitespace prior to text analysis. Default behavior remains unchanged: split-on-whitespace=true.
2016-07-05 18:03:42 -04:00
Adrien Grand
1e4d51f408
LUCENE-7352: Fix CheckHits for DisjunctionMax queries that generate negative scores.
2016-06-23 19:03:39 +02:00
Karl Wright
b11e48c755
LUCENE-7194: Ban Math.toRadians and Math.toDegrees
2016-06-22 03:53:47 -04:00
Mike McCandless
b338a0c0f0
LUCENE-7345: MDW now disables VirusCheckingFS while trying to corrupt files
2016-06-21 04:50:34 -04:00
Mike McCandless
c311eb1b7e
LUCENE-7345: RAMDirectory now enforces write-once as well
2016-06-20 10:03:19 -04:00
Mike McCandless
4c630b2216
LUCENE-7345: make sure MDW's efforts to corrumpt un-sync'd files is successful
2016-06-20 09:17:44 -04:00
Mike McCandless
87016b5f0c
LUCENE-7318: graduate StandardAnalyzer and make it the default for IndexWriterConfig
2016-06-14 16:38:04 -04:00
Mike McCandless
a893c64595
LUCENE-6171: pass the StandardOpenOption.CREATE_NEW so the filesystem ensures Lucene really is write-once
2016-06-14 15:15:57 -04:00
Christine Poerschke
95c7e6d716
LUCENE-7319: remove one more unused import
2016-06-13 11:11:02 +01:00
Christine Poerschke
52f5c50246
LUCENE-7319: remove unused imports
2016-06-13 09:59:14 +01:00
Uwe Schindler
cc7cede7a5
LUCENE-7333: Fix test bug where randomSimpleString() generated a filename that is a reserved device name on Windows
2016-06-11 11:31:12 +02:00
Mike McCandless
816fae9622
LUCENE-7326: don't use postings format by name in this test
2016-06-10 11:57:41 -04:00
Mike McCandless
067fb25e43
LUCENE-7323: compound file writing now verifies checksum and segment ID for the incoming sub-files, to catch hardware issues or filesystem bugs earlier
2016-06-09 14:48:58 -04:00
Mike McCandless
c8570ed821
LUCENE-7132: BooleanQuery sometimes assigned the wrong score when ranges of documents had only one clause matching while other ranges had more than one clause matchng
2016-06-06 10:35:16 -04:00
Mike McCandless
817c7f069a
sequence numbers: merge master
2016-05-26 15:30:12 -04:00
Adrien Grand
f85dc0fef2
LUCENE-7297: Clean up ArrayUtil.
2016-05-25 16:48:41 +02:00
Martijn van Groningen
d29ab1e812
LUCENE-7206: Improve the ToParentBlockJoinQuery's explain by including the explain of the best matching child doc
2016-05-25 15:24:17 +02:00
Mike McCandless
38e9822cb4
cutover RandomIndexWriter to return sequence numbers
2016-05-24 20:22:47 -04:00
Dawid Weiss
e44509f2df
LUCENE-7277: Make Query.hashCode and Query.equals abstract.
2016-05-24 10:33:15 +02:00
Mike McCandless
5fb7413ccb
LUCENE-6766: remove leftover sop
2016-05-12 15:57:22 -04:00
Mike McCandless
231cb3eb42
LUCENE-6766: implement STRING sort, using segment-local ordinals
2016-05-07 11:46:17 -04:00
Mike McCandless
8fe78da23c
LUCENE-6766: make new Lucene62Codec, with new segment info format that reads/writes the index sort, to support index sorting; remove all usage of SlowCompositeReaderWrapper; also sort ids when merging norms; CheckIndex verifies sort
2016-05-06 16:41:26 -04:00
Mike McCandless
54fa7dfd27
LUCENE-6766: initial patch
2016-05-04 05:37:37 -04:00
Adrien Grand
aa81ba8642
LUCENE-7264: Fewer conditionals in DocIdSetBuilder.
2016-04-29 10:35:27 +02:00
Robert Muir
837264a42e
LUCENE-7251: remove LatLonGrid, remove slow polygon methods, speed up multiple components
2016-04-25 15:31:54 -04:00
Mike McCandless
7acf8babae
LUCENE-7175: give enough heap for large dim count, bytes per dim, when writing points
2016-04-24 05:58:41 -04:00
Adrien Grand
927a44881c
LUCENE-7243: Removed the LeafReaderContext parameter from QueryCachingPolicy#shouldCache.
2016-04-22 13:09:26 +02:00
Adrien Grand
81446cf345
LUCENE-7235: Avoid taking the lock in LRUQueryCache when not necessary.
2016-04-21 15:31:13 +02:00
Robert Muir
ddb8d077ec
Don't pick crazy compression parameters for this monsterish test
2016-04-18 10:11:51 -04:00
Robert Muir
cc099d8fc6
LUCENE-7185: handle underflow
2016-04-18 09:15:04 -04:00
Robert Muir
c135e9a7d6
LUCENE-7185: improve random test point/box generation for spatial tests
2016-04-18 00:19:02 -04:00
Robert Muir
72cb73c6b9
LUCENE-7170: move BaseGeoPointTestCase to test-framework
2016-04-17 08:52:59 -04:00
Mike McCandless
aeea493311
catch user (me) silliness when using EarthDebugger
2016-04-16 05:35:19 -04:00
Mike McCandless
e076b4c5b4
improve randomized polygon generation to sometimes include regular ngons
2016-04-13 05:51:38 -04:00
Mike McCandless
e034b04b06
LUCENE-7189: improve geo debugging technology
2016-04-12 06:10:08 -04:00
Robert Muir
901a3af301
LUCENE-7185: fix random number generation used for spatial tests.
...
Note that GeoPoint tests are still on the old RNG as we haven't get made them happy.
2016-04-11 10:36:10 -04:00
Mike McCandless
739c752cd3
LUCENE-7189: use fewer sampling points for small earth-surface rectangles
2016-04-11 05:45:42 -04:00
Mike McCandless
07d99765f5
LUCENE-7189: make it easier to write WebGL earth HTML for debugging geo failures
2016-04-07 17:54:39 -04:00
Robert Muir
ef6a0d0013
LUCENE-7159: improve testing of polygon tree methods
2016-04-03 14:07:56 -04:00
Robert Muir
9a47912161
package-info.java -> package.html because this package is already defined in core/
2016-04-03 12:09:46 -04:00
nknize
6c219e99e4
LUCENE-7163: refactor GeoRect, Polygon, and GeoUtils tests to geo package in core.
2016-04-02 13:57:02 -05:00
Mike McCandless
7b93fc46b1
LUCENE-7142: BKDWriter wasn't splitting correctly with long ords; improve tests so we sometimes long ords even for small number of points
2016-03-27 05:52:29 -04:00
Mike McCandless
a9eb26c44a
randomize how BKDWriter splits in RandomCodec so we exercise geo shape APIs with more exotic rectangles
2016-03-25 15:40:16 -04:00
Mike McCandless
d392940092
LUCENE-7121: don't write ord for single-valued points, saving 4 bytes per point
2016-03-20 09:16:43 -04:00
Uwe Schindler
f93f90ca1b
SOLR-8874: Make Solr tests work with Java 9 Jigsaw
2016-03-19 14:53:59 +01:00
Mike McCandless
ef7a012513
LUCENE-7113: add best-effort checksum verification to temp files written by OfflineSorter and BKDWriter
2016-03-19 05:18:15 -04:00
Mike McCandless
7523ca1162
LUCENE-7086: move SlowCompositeReaderWrapper to misc module, and throw clear exc if you try to use in with points
...
Squashed commits:
commit e26b065c71388407bc6725256ca43d7bb30dee29
Author: Mike McCandless <mikemccand@apache.org>
Date: Thu Mar 10 14:16:45 2016 -0500
simplify the checking for incoming points
commit b7254376dcb398c7739aab4544118bb4526961d5
Merge: 8ec82a0 d35d569
Author: Mike McCandless <mikemccand@apache.org>
Date: Thu Mar 10 14:05:24 2016 -0500
Merge branch 'master' into slow_wrapper
Conflicts:
lucene/misc/src/test/org/apache/lucene/uninverting/TestFieldCache.java
lucene/misc/src/test/org/apache/lucene/uninverting/TestFieldCacheReopen.java
commit 8ec82a0d9a0dd946d96da20962bb2ea95758edbe
Author: Mike McCandless <mikemccand@apache.org>
Date: Thu Mar 10 13:56:25 2016 -0500
LUCENE-7086: move SlowCompositeReaderWrapper to misc module
2016-03-10 16:08:59 -05:00
Mike McCandless
dacbf333e4
CheckIndex failed to say it was checking points
2016-03-09 11:03:37 -05:00
Simon Willnauer
588aeeaab7
LUCENE-7080: Sort files to corrupt to prevent HashSet iteration order issues across JVMs
2016-03-09 10:56:13 +01:00
Mike McCandless
62b3aaa526
improve testing for sparse points
2016-03-08 15:21:37 -05:00
Mike McCandless
e3fcbfe7ce
don't use slow composite reader in this test
2016-03-08 13:34:08 -05:00
David Smiley
9393a3190c
LUCENE-6952: Make most Filter* classes abstract.
2016-03-08 12:36:46 -05:00
Robert Muir
4cc9ad44df
LUCENE-7075: remove legacy numericutils usage from test.
2016-03-08 08:41:24 -05:00
Robert Muir
862bf7b5ac
LUCENE-7075: convert test class to use points
2016-03-08 07:36:34 -05:00
Mike McCandless
74e7e1509a
LUCENE-7070: insert missing 's' in PointFormat/Reader/Writer
2016-03-06 08:27:02 -05:00
Robert Muir
3ffeccab7e
LUCENE-7063: add tests/docs for numericutils, rename confusing methods, remove overlap with LegacyNumericUtils
2016-03-03 21:52:12 -05:00
Alan Woodward
682b179605
LUCENE-7058: Add getters for various Query implementations
2016-03-03 11:15:15 +00:00
Mike McCandless
2d5519a0ee
also assert points stats docCount <= maxDoc, and docCount >=0 and size >= 0
2016-03-03 05:48:15 -05:00
Mike McCandless
b5475d10e1
also add PointValues.getDocCount stat, and check it in CheckIndex
2016-03-02 18:39:57 -05:00
Mike McCandless
3c02ab2187
add PointValues.size() stat, to return total number of points
2016-03-02 17:53:28 -05:00
Mike McCandless
e3198cac54
LUCENE-7059: always visit 1D points in sorted order; fix tie-break but in BKDWriter; fix BKDWriter to pass on maxMBSortInHeap to the OfflineSorter too
2016-03-02 11:27:52 -05:00
Mike McCandless
6261767b33
remove dup'd code
2016-03-01 14:32:08 -05:00
Mike McCandless
37cf22895f
also test points in TestUtil.checkReader
2016-03-01 05:01:19 -05:00
Robert Muir
502b8800fc
Fix tests to randomized BKD parameters in tests (like TestPointQueries does).
...
Otherwise, even things like range queries are not tested well unless tests use thousands of documents.
2016-02-29 20:29:51 -05:00
Uwe Schindler
8ffa436f00
LUCENE-7053: Move comparator to better place in code; generalize to use CharSequence instead of String
2016-02-29 09:54:22 +01:00
Uwe Schindler
f48d23cd14
LUCENE-7053: Remove custom comparators from BytesRef class and solely use natural byte[] comparator throughout codebase. It also replaces the natural comparator in ArrayUtil by Java 8's Comparator#naturalOrder().
2016-02-29 09:25:55 +01:00
Mike McCandless
126ac9a5fe
BytesRefHash.sort always sorts in unicode order
2016-02-27 10:26:20 -05:00
Mike McCandless
9db0ddc22f
detect when the visitor is being re-used e.g. by SlowCompositeReaderWrapper
2016-02-26 19:29:44 -05:00
Robert Muir
099e031139
LUCENE-7045: remove all encode/decode hooks from PointRangeQuery
2016-02-23 17:03:55 -05:00
Robert Muir
54216c6f65
LUCENE-7043: Add BigIntegerPoint and InetAddressPoint to sandbox.
2016-02-23 07:24:38 -05:00
Robert Muir
54a544b307
LUCENE-7039: Improve PointRangeQuery & co
2016-02-22 15:10:15 -05:00
Uwe Schindler
3d34728c4b
Prevent warning on empty try-with-resources
2016-02-21 16:40:32 +01:00
Robert Muir
189e985b5c
LUCENE-7037: Switch all exceptions tests to expectThrows()
2016-02-19 12:07:47 -05:00
Mike McCandless
7ff31daeb0
use try-w-resources so Directory is closed even on assumption violation
2016-02-15 18:44:07 -05:00
Mike McCandless
a9dc40294e
fix this test to avoid MockRandomMergePolicy which leads to false failures
2016-02-15 05:17:40 -05:00
Mike McCandless
12b8721a44
Merge branch 'jira/lucene-5438-nrt-replication'
2016-02-11 11:20:18 -05:00
Mike McCandless
88fea23176
turn off debug prints; add lucene.experimental to javadocs
2016-02-09 05:22:16 -05:00
Mike McCandless
9afa560054
fix some nocommits; fix one stress test failure
2016-02-08 14:07:04 -05:00
Mike McCandless
2cee9f1693
LUCENE-6835, LUCENE-6684: keep the 'suppress NSFE on windows' hack inside IFD as well
2016-02-08 13:54:05 -05:00
Mike McCandless
9ba62e5e38
Merge branch 'master' into jira/lucene-5438-nrt-replication
...
Conflicts:
lucene/core/src/java/org/apache/lucene/index/IndexFileDeleter.java
lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
2016-02-07 14:03:13 -05:00
Mike McCandless
6369012d33
fix a few nocommits
2016-02-07 13:58:01 -05:00
Mike McCandless
e0ba1e5bff
move verbosity to the right place
2016-02-07 09:26:23 -05:00
Mike McCandless
8e8aa0869e
MDW's assertNoUnreferencedFilesOnClose should still run even if checkIndexOnClose is turned off
2016-02-07 09:19:57 -05:00
Mike McCandless
2a7687641e
add verbosity for this test when it fails
2016-02-07 05:24:19 -05:00
Mike McCandless
bd6804bc63
Merge branch 'master' into nrt_replicas
...
Conflicts:
lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
2016-02-06 11:14:15 -05:00
Mike McCandless
3c15c3f03d
LUCENE-6835: add test case confirming listAll is sorted; fix dir impls that weren't
2016-02-06 09:41:46 -05:00
Mike McCandless
5b4c1d963c
fix javadoc errors
2016-02-06 04:47:16 -05:00
Mike McCandless
d2a5c10326
Merge branch 'master' into lucene-6835
...
Conflicts:
lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestAddTaxonomy.java
lucene/facet/src/test/org/apache/lucene/facet/taxonomy/writercache/TestCompactLabelToOrdinal.java
2016-02-05 12:38:21 -05:00
Mike McCandless
24f55abfd5
improve tests; fix RAFDirectory.openInput to respect pending delete
2016-02-05 12:19:24 -05:00
Mike McCandless
85c546b742
disable random insertion of VirusCheckingFS, and instead add it to a few tests
2016-02-05 09:42:54 -05:00
Uwe Schindler
0f43705788
LUCENE-7013: Revert changes to package-info.java files (adds newline after license header and before javadocs back)
2016-02-04 23:02:50 +01:00
Shai Erera
813ca77250
LUCENE-7013: Move license header to top of file
2016-02-04 15:51:19 +02:00
Shai Erera
30455f728b
LUCENE-7010: add MergePolicyWrapper
2016-02-04 09:24:24 +02:00
Mike McCandless
9cf74f791c
merge master
2016-02-03 17:03:23 -05:00
Mike McCandless
8cd731be50
fix some more nocommits; reduce retry-pending-deletes frequency so it's not O(N^2)
2016-02-03 16:56:10 -05:00
Mike McCandless
f0b9186f55
remove nocommit
2016-02-03 15:47:50 -05:00
Mike McCandless
845eec1036
cutover more places back to deleteFile
2016-02-03 15:44:08 -05:00
Ryan Ernst
732b8fb3b9
LUCENE-7009: Add expectThrows utility to LuceneTestCase
2016-02-03 12:18:12 -08:00
Mike McCandless
a741ea53c9
cut back to Directory.deleteFile(String); disable 'could not removed segments_N so I don't remove any other files it may reference' heroics
2016-02-03 10:35:57 -05:00
Mike McCandless
b4a2bf2b41
fix a few tests; add some nocommits
2016-02-02 18:07:06 -05:00
Mike McCandless
84f44589f6
migrate current patch from svn
2016-02-02 15:53:16 -05:00
Mike McCandless
9332b1602c
also assert PointValues are the same from LTC.assertReaderEquals
2016-01-29 19:09:04 -05:00
Mike McCandless
c403083872
try again
2016-01-29 09:25:48 -05:00
Mike McCandless
3141c697e5
revert
2016-01-29 09:18:31 -05:00
Mike McCandless
27c28b5340
don't test merge stability of point values: our BKD tree impl is not stable on 1D merge
2016-01-29 09:12:35 -05:00
Mike McCandless
ddbf3a2168
fix wrong comment; add test proving it's wrong; add mixed codec tests
2016-01-29 06:16:30 -05:00
Robert Muir
ae6a971c35
LUCENE-7000: Split BasePointFormatTestCase from TestPointValues
2016-01-29 04:27:27 -05:00
Mike McCandless
da5cc3cad5
add CrankyPointFormat
2016-01-28 16:24:27 -05:00
Mike McCandless
791ddc627b
LUCENE-6999: break out PointWriter.finish from .close to avoid leaking file handles on exception
2016-01-28 11:02:24 -05:00
Mike McCandless
1ae7291429
current patch
2016-01-24 18:17:20 -05:00
Michael McCandless
07b5a6f64b
LUCENE-6932: fix test bug that was not always using the dir impl being tested
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1726264 13f79535-47bb-0310-9956-ffa450edef68
2016-01-22 18:11:23 +00:00
Michael McCandless
860a5847b7
LUCENE-6980: fix a few more places to just use default (true) for applyAllDeletes
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1726250 13f79535-47bb-0310-9956-ffa450edef68
2016-01-22 16:12:06 +00:00
Michael McCandless
d71d1aa941
woops
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1726228 13f79535-47bb-0310-9956-ffa450edef68
2016-01-22 15:17:17 +00:00
Michael McCandless
56a76eb5a1
LUCENE-6932: also fix NIOFSIndexInput to throw EOFE if you seek beyond end of file
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1726227 13f79535-47bb-0310-9956-ffa450edef68
2016-01-22 15:16:20 +00:00
Robert Muir
79572ada76
LUCENE-6986: add more DFI measures
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1726205 13f79535-47bb-0310-9956-ffa450edef68
2016-01-22 13:30:12 +00:00
Michael McCandless
fb371af1f9
LUCENE-6980: fix a few more tests to just use default (true) for applyAllDeletes
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1726106 13f79535-47bb-0310-9956-ffa450edef68
2016-01-21 21:32:31 +00:00
Michael McCandless
ddc65d977f
LUCENE-6932: RAMInputStream now throws EOFException if you seek beyond the end of the file
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1726039 13f79535-47bb-0310-9956-ffa450edef68
2016-01-21 17:50:28 +00:00
Michael McCandless
29cb337377
LUCENE-6975: rename dimensional values to points; add ExactPointQuery to match documents containing exactly an indexed point
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1725998 13f79535-47bb-0310-9956-ffa450edef68
2016-01-21 15:58:08 +00:00
Robert Muir
1a9f11ce45
LUCENE-6818: Add DFISimilarity implementing the divergence from independence model
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1725205 13f79535-47bb-0310-9956-ffa450edef68
2016-01-18 09:24:22 +00:00
Michael McCandless
40d290ee84
LUCENE-6980: default applyDeletes to true when opening NRT readers
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1725160 13f79535-47bb-0310-9956-ffa450edef68
2016-01-18 00:43:44 +00:00
Michael McCandless
24c46305bd
LUCENE-6971: remove StorableField, StoredDocument
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1725117 13f79535-47bb-0310-9956-ffa450edef68
2016-01-17 19:54:50 +00:00
Michael McCandless
6961bb1fc4
LUCENE-6932: RAMDirectory's IndexInput should always throw EOFE if you seek beyond the end of the file and then try to read
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1725111 13f79535-47bb-0310-9956-ffa450edef68
2016-01-17 19:22:26 +00:00
Uwe Schindler
f5b0e537b4
LUCENE-6978: Refactor several code places that lookup locales by string name to use BCP47 locale tag instead
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1724891 13f79535-47bb-0310-9956-ffa450edef68
2016-01-15 22:41:57 +00:00
Shai Erera
073dbdc17e
LUCENE-6973: Improve TeeSinkTokenFilter
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1724789 13f79535-47bb-0310-9956-ffa450edef68
2016-01-15 12:55:47 +00:00
Michael McCandless
9bc5058f7d
LUCENE-6962: add min/max per dimension to dimensional values
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1723682 13f79535-47bb-0310-9956-ffa450edef68
2016-01-08 10:52:15 +00:00
Michael McCandless
1c58fd4608
LUCENE-6957: don't make this method final
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1723331 13f79535-47bb-0310-9956-ffa450edef68
2016-01-06 14:17:12 +00:00
Michael McCandless
cc1ac528c1
LUCENE-6957: rename test case so we still run the same test name from the base class
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1723330 13f79535-47bb-0310-9956-ffa450edef68
2016-01-06 14:16:18 +00:00
Robert Muir
a459fdfdf9
LUCENE-6953: clean up test-framework dependencies
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1722131 13f79535-47bb-0310-9956-ffa450edef68
2015-12-29 13:51:03 +00:00
Michael McCandless
d5ebe9cd85
LUCENE-6936: don't try to merge dimentional values that have 0 points/documents (when all docs having dimensional values were deleted)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1720798 13f79535-47bb-0310-9956-ffa450edef68
2015-12-18 14:24:59 +00:00
Michael McCandless
7da175b0b6
LUCENE-6917: rename/deprecate numeric classes in favor of dimensional values
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1719562 13f79535-47bb-0310-9956-ffa450edef68
2015-12-11 21:13:41 +00:00
Michael McCandless
671b5768a6
upgrade comment to javadocs so 'ant precommit' passes
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1719544 13f79535-47bb-0310-9956-ffa450edef68
2015-12-11 20:46:55 +00:00
Christine Poerschke
8575e3fb3a
LUCENE-6925: add ForceMergePolicy class in lucene test-framework and RandomForceMergePolicy class in solr test-framework, plus Test[Random]ForceMergePolicy test classes.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1719449 13f79535-47bb-0310-9956-ffa450edef68
2015-12-11 15:19:29 +00:00
Adrien Grand
ddb3a97678
LUCENE-6919: Make Scorer expose an iterator instead of extending DocIdSetIterator.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1719081 13f79535-47bb-0310-9956-ffa450edef68
2015-12-10 13:43:50 +00:00
Uwe Schindler
8a148abb4e
Add extra check that we can create an AccessControlContext for running test with lower privileges. It's trappy otherwise!
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1718132 13f79535-47bb-0310-9956-ffa450edef68
2015-12-05 23:02:06 +00:00
Gregory Chanan
562d97a69d
SOLR-7928: Improve CheckIndex to work against HdfsDirectory
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1717340 13f79535-47bb-0310-9956-ffa450edef68
2015-11-30 22:46:48 +00:00
Adrien Grand
8eea72d476
LUCENE-6906: Fix Lucene54DocValuesFormat on large empty segments.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1715918 13f79535-47bb-0310-9956-ffa450edef68
2015-11-23 19:05:31 +00:00
Adrien Grand
0ed54b3105
LUCENE-6276: Added TwoPhaseIterator.matchCost().
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1714261 13f79535-47bb-0310-9956-ffa450edef68
2015-11-13 20:08:01 +00:00
Michael McCandless
84ede2378c
LUCENE-6849: expose IndexWriter.flush to move in-memory segments to disk
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1713646 13f79535-47bb-0310-9956-ffa450edef68
2015-11-10 14:35:58 +00:00
Michael McCandless
3f21788fbd
LUCENE-6886: Directory.createTempOutput always uses .tmp extension, and codecs are not allowed to
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1713103 13f79535-47bb-0310-9956-ffa450edef68
2015-11-07 11:07:48 +00:00
Michael McCandless
d3869edb96
LUCENE-6861: switch trunk to Luceen60 codec, implementing dimensional format
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1711732 13f79535-47bb-0310-9956-ffa450edef68
2015-11-01 10:19:50 +00:00
Michael McCandless
dc66518401
fix MismatchedLeafReader to carry over dimensional count/numBytes for each field; add some toString; improve test debuggability
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1711351 13f79535-47bb-0310-9956-ffa450edef68
2015-10-29 19:51:37 +00:00
Dawid Weiss
295b9972f4
LUCENE-6862: Upgrade of RandomizedRunner to version 2.2.0
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1711203 13f79535-47bb-0310-9956-ffa450edef68
2015-10-29 09:38:20 +00:00
Adrien Grand
9f1248e841
LUCENE-6840: Put ord indexes on disk.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1710876 13f79535-47bb-0310-9956-ffa450edef68
2015-10-27 19:49:47 +00:00
Michael McCandless
e5c4ba48df
LUCENE-6825: add dimensionally indexed values
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1710752 13f79535-47bb-0310-9956-ffa450edef68
2015-10-27 09:31:35 +00:00
Alan Woodward
5969426d82
LUCENE-6845: Merge SpanScorer into Spans
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1709964 13f79535-47bb-0310-9956-ffa450edef68
2015-10-22 09:16:03 +00:00
Michael McCandless
f3f232f775
LUCENE-6825: add low-level support for block-KD trees
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1709783 13f79535-47bb-0310-9956-ffa450edef68
2015-10-21 09:56:42 +00:00
Michael McCandless
c855dd5a33
LUCENE-6829: OfflineSorter now uses Directory API; add Directory.createTempOutput and IndexOutput.getName
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1708760 13f79535-47bb-0310-9956-ffa450edef68
2015-10-15 09:58:18 +00:00
Michael McCandless
4fa7bac977
LUCENE-6813: OfflineSorter no longer removes its output file up front; fix file handle leak in RangeTreeWriter
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1705155 13f79535-47bb-0310-9956-ffa450edef68
2015-09-24 21:23:49 +00:00
Michael McCandless
4cbf0da8c6
LUCENE-6734: sidestep auto-prefix terms test bug
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1704660 13f79535-47bb-0310-9956-ffa450edef68
2015-09-22 15:51:40 +00:00
Alan Woodward
b570fb0352
LUCENE-6489: Move Payload queries to queries module and PayloadSpanUtil to sandbox
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1703392 13f79535-47bb-0310-9956-ffa450edef68
2015-09-16 12:43:31 +00:00
Robert Muir
a944ab17a7
LUCENE-6789: change IndexSearcher default similarity to BM25
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1703070 13f79535-47bb-0310-9956-ffa450edef68
2015-09-14 22:03:35 +00:00
Uwe Schindler
01adad8899
LUCENE-6795: Improve RamUsageTester in trunk
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1702693 13f79535-47bb-0310-9956-ffa450edef68
2015-09-13 01:45:37 +00:00
Uwe Schindler
b8a213ccf7
LUCENE-6795: Forbid AccessibleObject#setAccessible and suppress legitimate uses / wrap with doPrivileged
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1702690 13f79535-47bb-0310-9956-ffa450edef68
2015-09-13 01:07:11 +00:00
Uwe Schindler
421afac9a9
Slightly more elegant rethrower (from AttributeFactory) :-)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1702663 13f79535-47bb-0310-9956-ffa450edef68
2015-09-12 18:59:54 +00:00
Robert Muir
b0d1e6f741
LUCENE-6795: remove zero-byte file
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1702154 13f79535-47bb-0310-9956-ffa450edef68
2015-09-10 03:21:00 +00:00
Robert Muir
e18e9ba178
LUCENE-6795: fix some test issues (mostly static leaks)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1702144 13f79535-47bb-0310-9956-ffa450edef68
2015-09-10 01:48:34 +00:00
Robert Muir
37ec9f4344
LUCENE-6795: remove reflection hack completely, see http://mail.openjdk.java.net/pipermail/nio-dev/2015-September/003322.html
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1702139 13f79535-47bb-0310-9956-ffa450edef68
2015-09-10 01:09:42 +00:00
Robert Muir
37db6bf1a5
LUCENE-6794: Fix TestSecurityManager to work with IDEs
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1702123 13f79535-47bb-0310-9956-ffa450edef68
2015-09-09 22:19:22 +00:00
Robert Muir
2489b18c86
LUCENE-6791: sketchy MockFileSystem reflection should be in AccessController block
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1702038 13f79535-47bb-0310-9956-ffa450edef68
2015-09-09 15:33:02 +00:00
Adrien Grand
962313b83b
LUCENE-6590: Replace Query.getBoost, setBoost and clone with a new BoostQuery.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1701621 13f79535-47bb-0310-9956-ffa450edef68
2015-09-07 13:34:46 +00:00
Michael McCandless
6d5b236dea
just retry if automaton is too complex to determinize
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1700444 13f79535-47bb-0310-9956-ffa450edef68
2015-09-01 09:32:44 +00:00
Robert Muir
c2484192de
LUCENE-6206: don't fail test if it encounters jdk bug, ban Collator.compare in tests so this never pops again
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1700261 13f79535-47bb-0310-9956-ffa450edef68
2015-08-31 15:10:15 +00:00
Michael McCandless
f7dc8767bb
LUCENE-6684: disable asserts on windows that false-trip due to 'pending delete' state that an NTFS file can be in
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1700100 13f79535-47bb-0310-9956-ffa450edef68
2015-08-30 09:35:43 +00:00
Michael McCandless
85b6c90b3a
fix test to catch any Throwable, not just IOExc, and then print the IW infoStream
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1700068 13f79535-47bb-0310-9956-ffa450edef68
2015-08-29 18:56:05 +00:00
Michael McCandless
a65779666d
print IW infoStream on failure in this test
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1697776 13f79535-47bb-0310-9956-ffa450edef68
2015-08-25 22:15:42 +00:00
Uwe Schindler
6a44b00201
SOLR-7958: Move TestUtil#randomWhitespace to the only Solr test that is using it
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1697262 13f79535-47bb-0310-9956-ffa450edef68
2015-08-23 21:41:03 +00:00
Uwe Schindler
bc9da338af
LUCENE-6760: Prevent test failure in Java 9 b76+
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1697131 13f79535-47bb-0310-9956-ffa450edef68
2015-08-22 21:33:47 +00:00
Uwe Schindler
7a93c3e6f1
LUCENE-6752: Add Math#random() to forbiddenapis
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1697050 13f79535-47bb-0310-9956-ffa450edef68
2015-08-21 19:42:38 +00:00
Michael McCandless
567de2a357
LUCENE-6745: IndexInput.clone is not thread-safe; fix BKD/RangeTree to respect that
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1697010 13f79535-47bb-0310-9956-ffa450edef68
2015-08-21 15:24:03 +00:00
Michael McCandless
be9471debb
LUCENE-6745: RAMInputStream.clone was not thread safe (Mike McCandless)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1696798 13f79535-47bb-0310-9956-ffa450edef68
2015-08-20 14:39:30 +00:00
Uwe Schindler
f0654e355e
LUCENE-6732: Improve checker for invalid source patterns to also detect javadoc-style license headers. Use Groovy to implement the checks instead of plain Ant
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1695380 13f79535-47bb-0310-9956-ffa450edef68
2015-08-11 22:13:00 +00:00
Adrien Grand
5186ce4e23
LUCENE-6715: Take value tables into account for memory usage of doc values.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1695027 13f79535-47bb-0310-9956-ffa450edef68
2015-08-10 11:48:15 +00:00
Alan Woodward
92900dd203
LUCENE-6580: Allow defined-width gaps in SpanNearQuery
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1694082 13f79535-47bb-0310-9956-ffa450edef68
2015-08-04 16:15:05 +00:00
Adrien Grand
6a481c0a58
LUCENE-6668: Added table encoding to sorted set/numeric doc values.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1692058 13f79535-47bb-0310-9956-ffa450edef68
2015-07-21 07:36:38 +00:00
Michael McCandless
a6301dd900
LUCENE-6659: remove IWC's max thread states limit
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1690299 13f79535-47bb-0310-9956-ffa450edef68
2015-07-10 18:09:58 +00:00
Adrien Grand
ac8c26c8e0
LUCENE-6645: Optimized DocIdSet building for the "many small postings lists" case.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1690026 13f79535-47bb-0310-9956-ffa450edef68
2015-07-09 08:39:00 +00:00
Michael McCandless
dd75010e6b
LUCENE-6616: IW lists files only once on init, IFD no longer suppresses FNFE, IFD deletes segments_N files last
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1689893 13f79535-47bb-0310-9956-ffa450edef68
2015-07-08 14:42:43 +00:00
Uwe Schindler
1f2b51cd96
LUCENE-6563: Improve MockFileSystemTestCase.testURI to check if a path can be encoded according to local filesystem requirements. Otherwise stop test execution
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1689768 13f79535-47bb-0310-9956-ffa450edef68
2015-07-07 23:03:58 +00:00
Uwe Schindler
4accc25477
LUCENE-6651: AttributeImpl#reflectWith(AttributeReflector) was made abstract and has no reflection-based default implementation anymore.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1688855 13f79535-47bb-0310-9956-ffa450edef68
2015-07-02 16:18:51 +00:00
Uwe Schindler
1816ed1945
LUCENE-6653, LUCENE-6652: Refactor TermToBytesRefAttribute; add oal.analysis.tokenattributes.BytesTermAttribute; remove code duplication in tests
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1688830 13f79535-47bb-0310-9956-ffa450edef68
2015-07-02 14:09:29 +00:00
Uwe Schindler
e50f72e073
LUCENE-6542: FSDirectory's ctor now works with security policies or file systems that restrict write access
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1688537 13f79535-47bb-0310-9956-ffa450edef68
2015-07-01 00:16:37 +00:00
Michael McCandless
5f44cbb202
LUCENE-6617: reduce heap usage for small FSTs
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1688412 13f79535-47bb-0310-9956-ffa450edef68
2015-06-30 09:43:37 +00:00
Uwe Schindler
4b758ee3fe
LUCENE-6637: Fix FSTTester to not violate file permissions on -Dtests.verbose=true
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1688317 13f79535-47bb-0310-9956-ffa450edef68
2015-06-29 21:54:08 +00:00
Michael McCandless
2d0ac9bb7f
LUCENE_6524: init IndexWriter from already opened reader
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1687992 13f79535-47bb-0310-9956-ffa450edef68
2015-06-28 08:07:50 +00:00
Adrien Grand
d671dd8d89
LUCENE-6553: Simplify how live docs are applied.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1687524 13f79535-47bb-0310-9956-ffa450edef68
2015-06-25 13:59:19 +00:00
Adrien Grand
81f4c0f1b5
LUCENE-2880: Make span queries score more consistently with regular queries.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1686301 13f79535-47bb-0310-9956-ffa450edef68
2015-06-18 19:37:05 +00:00
Adrien Grand
35c0ff0ec6
LUCENE-6583: Remove FilteredQuery.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1686203 13f79535-47bb-0310-9956-ffa450edef68
2015-06-18 12:29:56 +00:00
Adrien Grand
4aafacfbef
LUCENE-6570: Make BooleanQuery immutable.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1686145 13f79535-47bb-0310-9956-ffa450edef68
2015-06-18 07:14:05 +00:00
Adrien Grand
c397fe7234
LUCENE-6531: Make PhraseQuery immutable.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1685754 13f79535-47bb-0310-9956-ffa450edef68
2015-06-16 10:18:40 +00:00
Uwe Schindler
106d6b92ef
LUCENE-6564: Change PrintStreamInfoStream to use thread safe Java 8 ISO-8601 date formatting (in Lucene 5.x use Java 7 FileTime#toString as workaround); fix output of tests to use same format
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1685675 13f79535-47bb-0310-9956-ffa450edef68
2015-06-15 21:34:41 +00:00
Michael McCandless
3aa18151b3
LUCENE-6539: Add DocValuesNumbersQuery
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1685540 13f79535-47bb-0310-9956-ffa450edef68
2015-06-15 11:01:14 +00:00
Ramkumar Aiyengar
b1f1f5df0b
Revert r1685431: LUCENE-6564: Add milliseconds to timestamp in IW output for tests
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1685461 13f79535-47bb-0310-9956-ffa450edef68
2015-06-14 20:26:12 +00:00
Ramkumar Aiyengar
e2a1ee29e0
LUCENE-6564: Add milliseconds to timestamp in IW output for tests
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1685431 13f79535-47bb-0310-9956-ffa450edef68
2015-06-14 18:11:23 +00:00
Robert Muir
50fc8ad31d
LUCENE-6504: implement norms with random access API
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1685007 13f79535-47bb-0310-9956-ffa450edef68
2015-06-12 00:32:45 +00:00
Michael McCandless
f68abe9378
LUCENE-6511: add CMS.getAutoIOThrottle
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1684981 13f79535-47bb-0310-9956-ffa450edef68
2015-06-11 22:02:53 +00:00
Alan Woodward
9c12b35df9
SOLR-6371: Simplify SpanCollector interface
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1684700 13f79535-47bb-0310-9956-ffa450edef68
2015-06-10 16:01:00 +00:00
Michael McCandless
42b8b47b27
LUCENE-6533: don't cache live docs in SlowCompositeReaderWrapper
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1684615 13f79535-47bb-0310-9956-ffa450edef68
2015-06-10 09:29:09 +00:00
Adrien Grand
d1adfee99a
LUCENE-6527: Queries now get a dummy Similarity when scores are not needed in order to not load unnecessary information like norms.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1684502 13f79535-47bb-0310-9956-ffa450edef68
2015-06-09 19:02:37 +00:00
Mark Robert Miller
ed6fd884b0
SOLR-7512: SolrOutputFormat creates an invalid solr.xml in the solr home zip for MapReduceIndexerTool.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1684494 13f79535-47bb-0310-9956-ffa450edef68
2015-06-09 18:18:10 +00:00
Robert Muir
1cf0ee7471
use 'reader' in code to make it easier to disable evilReader
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1684294 13f79535-47bb-0310-9956-ffa450edef68
2015-06-08 23:20:08 +00:00
Robert Muir
ca7b037934
LUCENE-6529: add asserts
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1683913 13f79535-47bb-0310-9956-ffa450edef68
2015-06-06 13:52:40 +00:00
Adrien Grand
c129a9080b
LUCENE-6526: Asserting(Query|Weight|Scorer) now ensure scores are not computed if they are not needed.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1683734 13f79535-47bb-0310-9956-ffa450edef68
2015-06-05 12:18:12 +00:00
Robert Muir
fe6c3dc939
LUCENE-6508: Simplify directory/lock API
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1683606 13f79535-47bb-0310-9956-ffa450edef68
2015-06-04 18:20:44 +00:00
Robert Muir
a2c8b6c7ad
LUCENE-6517: disable test on J9, for now
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1683453 13f79535-47bb-0310-9956-ffa450edef68
2015-06-04 03:20:18 +00:00
Robert Muir
d9a4127a9d
LUCENE-6518: classcache reaper needs exemption from thread leaks (J9)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1683451 13f79535-47bb-0310-9956-ffa450edef68
2015-06-04 03:15:22 +00:00
Alan Woodward
f066027bc9
LUCENE-6466: Remove SpanSimilarity class and make SpanMTQWrapper single-pass
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1682513 13f79535-47bb-0310-9956-ffa450edef68
2015-05-29 16:23:08 +00:00
Mark Robert Miller
d38212a458
SOLR-7601: We should only check that tests have properly closed resources if the tests passed.
...
Speeds up test fails and cleans up Jenkin's failure reports.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1682454 13f79535-47bb-0310-9956-ffa450edef68
2015-05-29 13:18:09 +00:00
Michael McCandless
225e4a5803
LUCENE-6507: don't let NativeFSLock.close release other locks
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1682327 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 20:36:20 +00:00
Simon Willnauer
b418047251
LUCENE-6499: Fix typo and make vars final
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1681851 13f79535-47bb-0310-9956-ffa450edef68
2015-05-26 20:36:01 +00:00
Simon Willnauer
9124fcfade
LUCENE-6499: WindowsFS misses to remove open file handle if file is concurrently deleted
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1681846 13f79535-47bb-0310-9956-ffa450edef68
2015-05-26 20:25:21 +00:00
Alan Woodward
2183e67cfd
LUCENE-6466: Move SpanQuery.getSpans() and .extractTerms() to SpanWeight
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1680565 13f79535-47bb-0310-9956-ffa450edef68
2015-05-20 13:29:10 +00:00
Alan Woodward
a0561676a0
LUCENE-6371: Add collection API to Spans, remove payload methods
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1680205 13f79535-47bb-0310-9956-ffa450edef68
2015-05-19 09:02:38 +00:00
Adrien Grand
3827a5fb10
LUCENE-6483: Ensure core closed listeners are called on the same cache key as the reader which has been used to register the listener.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1680049 13f79535-47bb-0310-9956-ffa450edef68
2015-05-18 16:20:06 +00:00
Simon Willnauer
22d22bf415
LUCENE-6488: Ensure files are closed if onClose/onOpen throws an Exception
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1680005 13f79535-47bb-0310-9956-ffa450edef68
2015-05-18 12:22:28 +00:00
Robert Muir
4483ff2089
LUCENE-6083: SpanWithinQuery and SpanContainingQuery
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1676716 13f79535-47bb-0310-9956-ffa450edef68
2015-04-29 11:42:11 +00:00