Commit Graph

10809 Commits

Author SHA1 Message Date
Karl Wright 9c02bf09b7 LUCENE-8451: Add disabled regression test 2018-08-09 20:39:38 -04:00
Nicholas Knize cbaedb470c LUCENE-8447: Add DISJOINT and WITHIN support to LatLonShape queries 2018-08-08 12:50:05 -05:00
Jim Ferenczi 49e3cca77f LUCENE-8204: Boolean queries with a mix of required and optional clauses are now faster if the total hit count is not required 2018-08-08 15:49:58 +02:00
Jim Ferenczi ba9b18f367 LUCENE-8439: Disjunction max queries can skip blocks to select the top documents when the total hit count is not required 2018-08-08 12:34:42 +02:00
David Smiley c3887b351e SOLR-12586: Change ParseDateFieldUpdateProcessorFactory to use java.time.DateTimeFormatter, not Joda Time.
Note: slightly different pattern language!
Remove Joda Time.
Closes #428
2018-08-07 11:51:16 -04:00
Nhat Nguyen 3898653195 LUCENE-8442: Avoid merge in testPendingDeleteDVGeneration
If a merge is triggered, it might reclaim the randomFile which we picked
up but haven't opened yet, the test will fail with NoSuchFileException.
This commit disables merges to avoid such scenarios.
2018-08-07 09:19:56 -04:00
Ignacio Vera ea2e564dad LUCENE-8444: Prevent building functionally identical plane bounds when constructing DualCrossingEdgeIterator 2018-08-06 12:40:08 +02:00
Ignacio Vera 70a4939ab4 LUCENE-8445: Tighten condition when two planes are identical to prevent constructing bogus tiles when building GeoPolygons 2018-08-06 09:34:11 +02:00
Adrien Grand 3b15be3781 LUCENE-8060: Fix test bug.
Should use IndexSearcher#count to get accurate counts.
2018-08-05 22:41:02 +02:00
Adrien Grand fb7fce8623 Fix ReqOptSumScorer to not advance backwards. 2018-08-05 22:40:43 +02:00
Varun Thacker e3cdb395a4 SOLR-12617: Remove Commons BeanUtils as a dependency 2018-08-03 09:46:54 -07:00
Nicholas Knize 2a41cbd192 LUCENE-8443: Fix InverseIntersectVisitor logic for LatLonShape queries, add adversarial test for same shape many times 2018-08-03 10:30:47 -05:00
Jim Ferenczi 1af7686cb6 LUCENE-8443: Mute failing test temporarily 2018-08-03 12:38:36 +02:00
Nicholas Knize a0e33a9bc8 LUCENE-8440: Add support for indexing and searching Line and Point shapes using LatLonShape encoding 2018-08-02 17:17:37 -05:00
Adrien Grand 64573c142c LUCENE-8312: Fixed performance regression with non-scoring term queries. 2018-08-01 21:39:55 +02:00
Nicholas Knize 18c2300fd6 LUCENE-8435: Add new LatLonShapePolygonQuery for querying indexed LatLonShape fields by arbitrary polygons 2018-08-01 12:53:36 -05:00
Jim Ferenczi 679b4aa71d LUCENE-8441: IndexWriter now checks doc value type of index sort fields and fails the document if they are not compatible. 2018-08-01 18:28:51 +02:00
Adrien Grand c6e0c2875d Make the nightly test smaller.
Cherry-picked from 3203e99d8f.
2018-08-01 16:24:59 +02:00
Adrien Grand e56c8722ce Revert "Make the nightly test smaller so that it does not fail with GC overhead exceeded (OOM). Clean up random number fetching to make it shorter."
This reverts commit 3203e99d8f.
2018-08-01 15:44:57 +02:00
Adrien Grand 86a39fa29f Revert "Fix AAIOOBE in GeoTestUtil."
This reverts commit c3e813188e.
2018-08-01 15:44:47 +02:00
Adrien Grand c3e813188e Fix AAIOOBE in GeoTestUtil. 2018-08-01 15:17:53 +02:00
Adrien Grand 116309160e LUCENE-8060: ToChildBlockJoinQuery can't delegate getMaxScore but not advanceShallow. 2018-08-01 14:42:37 +02:00
Dawid Weiss 3203e99d8f Make the nightly test smaller so that it does not fail with GC overhead exceeded (OOM). Clean up random number fetching to make it shorter. 2018-08-01 14:05:02 +02:00
Adrien Grand 5dffff7df7 LUCENE-8437: CheckIndex shouldn't duplicate SegmentInfos' serialization logic. 2018-08-01 10:11:40 +02:00
Adrien Grand 99dbe93681 LUCENE-8060: IndexSearcher's search and searchAfter methods now only compute total hit counts accurately up to 1,000. 2018-08-01 09:01:21 +02:00
Adrien Grand 96e985a348 LUCENE-8391: Make TestUpgradeIndexMergePolicy faster when merging a TieredMergePolicy. 2018-07-31 21:33:11 +02:00
Christine Poerschke 1a870876c2 Fix 'redundant cast to long' warning in TestTieredMergePolicy. 2018-07-31 19:29:50 +01:00
Christine Poerschke 6fbaf698b9 SOLR-12557: standardise solr/core (private) logger names 2018-07-31 17:00:11 +01:00
Steve Rowe a08eadb480 Fix InfixSuggestersTest.testShutdownDuringBuild() failures 2018-07-30 22:49:49 -04:00
Adrien Grand 61e89e3ca0 LUCENE-8431: Top-docs collectors now collect lower bounds of the hit count. 2018-07-30 16:38:05 +02:00
Adrien Grand 9ca053712a LUCENE-8430: TopDocs.totalHits may now be a lower bound of the hit count. 2018-07-30 16:38:05 +02:00
Adrien Grand 3a837ca374 LUCENE-8412: Further simplification. 2018-07-30 16:20:36 +02:00
Nicholas Knize 1888bb5d3e LUCENE-8418: Fix tessellation failure on polygon with holes due to
vertex index clashing.
2018-07-27 11:00:46 -05:00
Adrien Grand d78feb2236 LUCENE-8429: Avoid stack overflows in DaciukMihovAutomatonBuilder. 2018-07-27 11:11:28 +02:00
Adrien Grand 534204890a LUCENE-8423: Make generation carrying more robust. 2018-07-27 11:11:28 +02:00
Adrien Grand 5f539442a9 LUCENE-8420: Fix soft-deletes optimization. 2018-07-27 11:11:28 +02:00
Adrien Grand 914e264165 LUCENE-8428: PriorityQueue takes sentinels via a Supplier as a constructor argument. 2018-07-27 11:11:28 +02:00
Nicholas Knize 6ab3ff8392 LUCENE-7314: Graduate LatLonPoint and query classes to core 2018-07-25 18:10:26 -05:00
Dawid Weiss d25f62634b LUCENE-8415: test quirk follow up. MockDirectoryWriter uses AccessDeniedException (a subclass of IOException) to signal files still open for writing when read access is requested. 2018-07-25 11:34:31 +02:00
Adrien Grand 65f6e6c150 LUCENE-8427: Fix bug in BlockMaxConjunctionScorer.
In case a scorer would return information about a block that doesn't contain
any matches, BlockMaxConjunctionScorer could use invalid score bounds. This
would never occur when building a conjunction of term queries but possibly when
building a conjunction of phrase queries for instance.
2018-07-25 10:57:11 +02:00
Simon Willnauer 35fa0b4f55 LUCENE-8425: Expose hard live docs on SegmentReader level
Today if soft deletes are used we expose a union of hard and soft deletes
via LeafReader#getLiveDocs. Yet, if a users wants to take advantage of
searching also soft-deleted documents the only option today is to search
all documents even though some of them are hard deleted. The recommendation
is to not mix those but in exceptional cases ie. when a document hits a
non-aborting exception during indexing the document is marked as hard
deleted which is the correct action. In order to filter those out having
access to the hard live docs on the segment reader level allows to filter out
these documents.
2018-07-25 09:34:36 +02:00
Nhat Nguyen d66c05ce4f LUCENE-8414: Make segmentInfos private in IndexWriter
Today IW#SegmentInfos is package-private and can be accessed directly.
Unlike the production code which accesses the SegmentInfo with IW lock,
tests can access it without holding IW lock. This causes these tests
sometimes fail because they are checking an inconsistent view of
SegmentInfos due to a concurrent modification.

This commit makes SegmentInfos private in IndexWriter and ensures that
we snapshot SegmentInfos in our tests.
2018-07-24 12:39:27 -04:00
Dawid Weiss 8892c0d9af LUCENE-8415: Clean up Directory contracts (write-once, no reads-before-write-completed). Minor test improvements and cleanups. 2018-07-24 08:47:50 +02:00
Jason Gerlowski 6ed9607f74 SOLR-12555: Add add'l expectThrows() test helper 2018-07-23 20:37:04 -04:00
Alan Woodward 028c86b1fa LUCENE-8306: Allow iteration over submatches
Also includes LUCENE-8404, adding match iteration to SpanQuery
2018-07-23 10:02:01 +01:00
Adrien Grand 55bfadbce1 LUCENE-8412: TopFieldCollector no longer takes a trackDocScores option. 2018-07-23 09:06:49 +02:00
koji 34686c00dd LUCENE-8420: Upgrade OpenNLP to 1.9.0 2018-07-23 13:55:22 +09:00
Alan Woodward 6e3f61f6f9 Revert "LUCENE-8306: Allow iteration over submatches"
Incorrect patch committed in error

This reverts commit a8839b7eab.
2018-07-22 22:36:46 +01:00
Alan Woodward a8839b7eab LUCENE-8306: Allow iteration over submatches 2018-07-22 21:42:46 +01:00
Nicholas Knize 509561bf2a LUCENE-8418: Mute LatLonShape polygonWithHole test until fix is applied 2018-07-20 11:36:47 -05:00