Commit Graph

9371 Commits

Author SHA1 Message Date
Mike McCandless 5fb7413ccb LUCENE-6766: remove leftover sop 2016-05-12 15:57:22 -04:00
Mike McCandless e283271aaf LUCENE-6766: more IW.infoStream logging around sorting; fix test bug 2016-05-12 15:25:11 -04:00
David Smiley 062869626f LUCENE-7278: DateRangePrefixTree's Calendar is now configurable 2016-05-12 14:14:33 -04:00
Karl Wright 351878223d LUCENE-7212: Add geo3d doc values field 2016-05-12 09:39:10 -04:00
Mike McCandless 0a150bb377 LUCENE-7279: add CHANGES 2016-05-12 05:54:52 -04:00
Mike McCandless 76762b15c0 LUCENE-7279: don't throw AIOOBE on some valid inputs 2016-05-12 05:54:22 -04:00
Mike McCandless e3ecc6a536 LUCENE-6766: merge master 2016-05-10 05:44:36 -04:00
Mike McCandless 8361de87be LUCENE-6766: fix parallel reader's detection of conflicting index sort 2016-05-10 05:31:02 -04:00
Mike McCandless 1e82c13184 LUCENE-6766: resolve remaining nocommits; add more IW infoStream logging during merge 2016-05-10 04:49:33 -04:00
Mike McCandless fa37241e78 LUCENE-6766: add deletions to random test 2016-05-08 08:03:11 -04:00
Mike McCandless 87690f8b13 LUCENE-6766: add another random test case; move early terminating collector to core 2016-05-08 07:58:20 -04:00
Mike McCandless 78a5501063 LUCENE_6766: add missing first/last tests 2016-05-08 06:41:55 -04:00
Mike McCandless da473399a3 LUCENE-6766: simplify test case 2016-05-08 06:20:59 -04:00
Mike McCandless 7683f33586 LUCENE-6766: remove unused SortField.Type.BYTES; don't pass liveDocs to DocIDMerger (it's redundant with MergeState.DocMap) 2016-05-08 05:00:19 -04:00
Mike McCandless 8098a911be LUCENE-6766: add float, double 2016-05-07 18:36:13 -04:00
Uwe Schindler 30cbab6793 Update link to Oracle Javadocs to prevent browser security warning when displaying from HTTPS (e.g. https://lucene.apache.org) 2016-05-07 18:55:42 +02:00
Mike McCandless 231cb3eb42 LUCENE-6766: implement STRING sort, using segment-local ordinals 2016-05-07 11:46:17 -04:00
Mike McCandless 54650eccf3 LUCENE-6766: don't throw exc from MultiXXX if there is an index sort 2016-05-07 11:45:59 -04:00
Mike McCandless 849fd54f2c LUCENE-6766: Merge branch 'master' into index_sort 2016-05-06 19:17:31 -04:00
Mike McCandless eb8b1a92d8 LUCENE-6766: MultiXXX now refuse to merge if there is an index sort 2016-05-06 19:02:41 -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
Karl Wright da6426f03c LUCENE-7241: Get rid of one more allocation during isWithin processing. 2016-05-06 07:36:50 -04:00
Karl Wright 6c6667e60e LUCENE-7241: Get rid of allocation for vector that we don't need. 2016-05-05 16:35:25 -04:00
Karl Wright 7d4f387384 LUCENE-7241: More performance improvements 2016-05-05 16:16:55 -04:00
Karl Wright d4c5586032 LUCENE-7241: Don't allocate GeoPoints we aren't going to return. 2016-05-05 14:47:40 -04:00
Karl Wright 382ffdb636 LUCENE-7241: More performance improvements. 2016-05-05 07:54:09 -04:00
Karl Wright 551d267ff5 LUCENE-7241: Another minor optimization. 2016-05-05 03:36:53 -04:00
Karl Wright 940281bb5d Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-05-05 03:05:25 -04:00
Karl Wright 037ecceba8 LUCENE-7241: For rare cases, don't precompute stuff. 2016-05-05 03:04:39 -04:00
Mike McCandless 54fa7dfd27 LUCENE-6766: initial patch 2016-05-04 05:37:37 -04:00
Adrien Grand b5acdabe53 Fix for TermsQueryTest.testRamBytesUsed failures.
This replaces the HashSet whose memory usage is hard to predict with a simple boolean.
2016-05-04 08:15:42 +02:00
Karl Wright 6ef0f218f6 LUCENE-7270: Robert's implementation of the tree structure works as well and it's simpler, so I'm switching to that. 2016-05-03 18:06:09 -04:00
Karl Wright 8c0bf8b3b6 LUCENE-7270: Fix javadoc. 2016-05-03 15:29:26 -04:00
Karl Wright d3d754e91d LUCENE-7270: Perofmance improvements related to tree structure. 2016-05-03 13:15:37 -04:00
Jan Høydahl 0ebe6b0f79 SOLR-9053: Upgrade commons-fileupload to 1.3.1, fixing a potential vulnerability 2016-05-03 13:36:06 +02:00
Mike McCandless b0b8d5795e LUCENE-7269: also handle annoying schema ghost corner case where number of docs with points in a segment is 0 2016-05-03 07:31:11 -04:00
Karl Wright a492117576 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-05-03 06:46:01 -04:00
Karl Wright 9e09c5cbb0 LUCENE-7241: Fix large polygon test point logic to deal properly with holes. 2016-05-03 06:45:53 -04:00
Christine Poerschke 2fe824fd6e LUCENE-7263: Make queryparser/xml/CoreParser's SpanQueryBuilderFactory accessible to deriving classes. (Daniel Collins via Christine Poerschke) 2016-05-03 10:05:02 +01:00
Karl Wright 21b87bc7c4 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-05-03 02:08:10 -04:00
Karl Wright 39e8e76c44 LUCENE-7241: Another round of tree debugging, and hook large polygons up to the random tester. 2016-05-03 02:07:59 -04:00
David Smiley 91153b9627 LUCENE-7262: Fix NPE, this should lazy-init in start() 2016-05-02 22:39:32 -04:00
Karl Wright a48245a1bf Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-05-02 17:05:09 -04:00
Karl Wright d7752408db LUCENE-7241: Fix intersection bounding so we don't get spurious non-matching crossings. 2016-05-02 17:04:55 -04:00
Adrien Grand 4fa2b29b20 LUCENE-7262: Leverage index statistics to make DocIdSetBuilder more efficient. 2016-05-02 15:04:27 +02:00
Karl Wright 645889f6b2 LUCENE-7241: Improve ability to find pole. 2016-05-01 11:20:10 -04:00
Karl Wright ccc9057ea0 LUCENE-7241: Various changes towards making GeoComplexPolygon fully testable. 2016-05-01 09:35:00 -04:00
Karl Wright 7bc4859daf Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-05-01 06:09:51 -04:00
Karl Wright 516fb5d193 LUCENE-7241: Add basic unit tests for intersections and bounds. 2016-05-01 06:09:36 -04:00
Robert Muir 3b9aa4d5cc Improve exception message so you see expected/actual if lock file is messed with 2016-04-30 16:16:24 -04:00
Karl Wright 7ed472fb52 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-29 13:33:09 -04:00
Karl Wright 595a55bbb5 LUCENE-7241: Add public functionality for handling large polygons in geo3d. 2016-04-29 13:32:55 -04:00
Adrien Grand f7b333f105 LUCENE-7264: Fix test bug in TestReqExclBulkScorer. 2016-04-29 13:30:00 +02:00
Adrien Grand aa81ba8642 LUCENE-7264: Fewer conditionals in DocIdSetBuilder. 2016-04-29 10:35:27 +02:00
Karl Wright 7bc50ec1ee Merge branch 'LUCENE-7241' 2016-04-28 20:00:19 -04:00
Karl Wright 7d33e774c2 Fix javadoc 2016-04-28 19:58:55 -04:00
Karl Wright 31176d1de2 Add more tests, and catch degenerate case early 2016-04-28 19:27:36 -04:00
Karl Wright da896f803d Finish debugging simple case 2016-04-28 19:20:03 -04:00
Chris Hostetter 791d1e7393 SOLR-9028: Fixed some test related bugs preventing SSL + ClientAuth from ever being tested 2016-04-28 13:18:01 -07:00
Karl Wright 3d7fd5e1df Improve path determination code 2016-04-28 15:09:48 -04:00
Karl Wright 72d536cb11 Lots of fixes 2016-04-28 13:14:35 -04:00
Adrien Grand ef45d4b2e1 LUCENE-7261: Speed up LSBRadixSorter. 2016-04-28 18:20:41 +02:00
Karl Wright d990d975ac Rewrite tree handling to actually work. 2016-04-28 08:12:42 -04:00
Karl Wright 86be6a67db Use more accurate version of inside cutoff planes. 2016-04-27 20:09:06 -04:00
Karl Wright f896afc88b Fix initialization bugs that prevented the code from working. 2016-04-27 17:19:30 -04:00
Karl Wright 9dd7921f9d More robust logic for picking the intersection point and path 2016-04-27 13:54:28 -04:00
Robert Muir ebd120465a LUCENE-7259: speed up MatchingPoints cost estimation 2016-04-27 12:02:27 -04:00
Karl Wright be0fff05bc Flesh out remaining methods 2016-04-27 08:26:03 -04:00
Karl Wright 7a4c077454 Finish handling for intersection point 2016-04-27 07:30:07 -04:00
Adrien Grand c7cdf2832b LUCENE-7257: PointValues aggregated stats fail if the provided field does not have points on one of the leaves. 2016-04-27 11:41:04 +02:00
Karl Wright 117f79ddd2 Restructure DualCrossing counter so that the plane inside and outside boundaries are used to detect inside and outside crossings. Also identify the case for special treatment of edges lying on the intersection point. 2016-04-26 13:49:47 -04:00
Christine Poerschke 9c69c4cf12 LUCENE-7252: add TestCoreParser.testTermQueryEmptyXML test 2016-04-26 17:41:26 +01:00
Christine Poerschke 9d8fad7a63 Make the static CoreParser.parseXML method package-private instead of private so that it's visible to and can be used by tests. 2016-04-26 15:10:58 +01:00
Robert Muir 6fa5166e41 LUCENE-7254: (sandbox/ only) Don't let abuse cases slow down spatial queries 2016-04-26 09:17:21 -04:00
Karl Wright 478e0e1054 Add GeoPolygonFactory support for the new shape. 2016-04-26 08:56:53 -04:00
Karl Wright bb7d4585c4 Separate point filtering from edge filtering. 2016-04-26 08:03:02 -04:00
Karl Wright f3748ebaa4 Introduce notion of inside/outside for DualCrossing. 2016-04-26 07:46:44 -04:00
Karl Wright 42d3f3d1c1 Have two separate crossing counters; one for dual leg, one for single. 2016-04-26 02:46:03 -04:00
Karl Wright 4105fda9c1 Separate the above and below planes everywhere so we can compute intersections and bounds. 2016-04-25 15:50:45 -04:00
Robert Muir 837264a42e LUCENE-7251: remove LatLonGrid, remove slow polygon methods, speed up multiple components 2016-04-25 15:31:54 -04:00
Karl Wright 641d221cba Get it to compile 2016-04-25 14:33:38 -04:00
Karl Wright 8b50cb8a8f Handle the case where the last leg lands on an edge. 2016-04-25 13:05:12 -04:00
Karl Wright d41537d0e2 Complete the logic for following a path, except for the path endpoint on edge condition. 2016-04-25 12:16:56 -04:00
Mike McCandless fe795c9f7a fix stale javadocs 2016-04-25 11:14:39 -04:00
Karl Wright 282c9a8fec Flesh out logic for handling vertex on plane case. 2016-04-25 10:15:11 -04:00
Christine Poerschke fd7b2159d8 LUCENE-7247: TestCoreParser.dumpResults verbose and test-fail logging tweaks 2016-04-25 09:39:29 +01:00
Karl Wright d287ecaeed Flesh out the additional method needed in Plane, as well as intersection logic. 2016-04-25 02:40:31 -04:00
Robert Muir e3e9114921 implement grow() for spatial3d intersector: easy speedup 2016-04-24 20:09:05 -04:00
Robert Muir 0dc32e3d6b implement grow() for polygon queries too: easy speedup. 2016-04-24 18:47:50 -04:00
Karl Wright b9c2bf7d28 More work on GeoComplexPolygon 2016-04-24 17:44:40 -04:00
Robert Muir 45c48da54a LUCENE-7240: Remove DocValues from LatLonPoint, add DocValuesField for that 2016-04-24 17:15:30 -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
Karl Wright 69be7dc2a3 Two nested classes made private that should never have been public. 2016-04-24 02:23:05 -04:00
Karl Wright c75df440d3 Add Edge subclass 2016-04-24 02:18:23 -04:00
Karl Wright 97e8f1aead LUCENE-7250: Handle holes properly for distance and relationship calculation. 2016-04-23 06:44:42 -04:00
Karl Wright a5e24b213d First cut of new class 2016-04-23 03:48:09 -04:00
Karl Wright 38ebd906e8 LUCENE-7244: Complain if the holes are outside the polygon. 2016-04-22 16:37:31 -04:00
Robert Muir 88c9da6c89 LUCENE-7249: LatLonPoint polygon should use tree relate() 2016-04-22 15:11:03 -04:00
Robert Muir 776f9ec7c8 LUCENE-7242: LatLonTree should build a balanced tree 2016-04-22 12:09:15 -04:00
Adrien Grand bf232d7635 LUCENE-7237: LRUQueryCache now prefers returning an uncached Scorer than waiting on a lock. 2016-04-22 14:09:44 +02:00
Adrien Grand 927a44881c LUCENE-7243: Removed the LeafReaderContext parameter from QueryCachingPolicy#shouldCache. 2016-04-22 13:09:26 +02:00
Robert Muir 4fd5d88080 LUCENE-7239: Use interval tree to speed up LatLonPoint.newPolygonQuery 2016-04-21 20:15:33 -04:00
markrmiller f3de223774 SOLR-8933: Solr should not close container streams. 2016-04-21 11:53:58 -04:00
nknize 545a14000b LUCENE-7186: add a numerically stable morton encoding method to GeoEncodingUtils 2016-04-21 10:14:36 -05:00
Adrien Grand 2ee8426d5e LUCENE-7238: Explicitly disable the query cache in MemoryIndex.createSearcher. 2016-04-21 17:01:43 +02:00
Adrien Grand 81446cf345 LUCENE-7235: Avoid taking the lock in LRUQueryCache when not necessary. 2016-04-21 15:31:13 +02:00
Karl Wright 2ff8bb0c8b Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-21 08:31:14 -04:00
Karl Wright 42b4f045c0 LUCENE-7226: Add leniency support for filtering points, in order to be able to use OSM data. 2016-04-21 08:30:52 -04:00
Adrien Grand 91fd163112 LUCENE-7234: Add InetAddressPoint.nextUp/nextDown 2016-04-20 15:45:38 +02:00
Adrien Grand 2724b99b5c LUCENE-7232: Fixed InetAddressPoint.newPrefixQuery. 2016-04-20 15:13:20 +02:00
Adrien Grand 858082c4ca LUCENE-7209: Fixed explanations of FunctionScoreQuery. 2016-04-20 14:52:12 +02:00
Karl Wright 0221516716 LUCENE-7226: Slight improvements to filtering and pole discovery operations. 2016-04-19 20:12:05 -04:00
Karl Wright 2276b9f270 Fix javadoc error 2016-04-19 13:44:06 -04:00
Karl Wright 5bb9084bd5 Fix test to recognize null polygon response. 2016-04-19 12:06:15 -04:00
Karl Wright 2342290816 LUCENE-7212: Structural changes necessary to support distance-limited bounds. 2016-04-19 10:20:00 -04:00
Karl Wright 02f1dacc3d LUCENE-7192: Catch the case where we have two points in the same poly that are not adjacent but identical. 2016-04-19 09:09:40 -04:00
Karl Wright 46062fbd86 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-19 08:28:36 -04:00
Karl Wright 75cdcbab10 LUCENE-7192: Revamp how coplanar points are detected and filtered, for OpenStreetMap compatibility. 2016-04-19 08:28:06 -04:00
Robert Muir af09c618eb LUCENE-7229: Improve Polygon.relate for faster tree traversal/grid construction 2016-04-18 20:22:40 -04:00
Robert Muir b839325740 LUCENE-7185: fix buggy worst-case error and add test for absurd distances 2016-04-18 19:47:22 -04:00
Karl Wright 7bd116c447 LUCENE-7228: Bounds computations which use Lagrangian multipliers are inherently less precise, so make sure that the bounds values exceed the size of the shape by a comfortable amount. 2016-04-18 13:53:59 -04:00
Karl Wright a7b138317a Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-18 13:28:30 -04:00
Karl Wright 15f94c550f LUCENE-7225: Detect nonsense polygon as an error rather than creating failures. 2016-04-18 13:28:21 -04: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 730a04723f don't use DirectPostingsFormat for Legacy geopoint tests: it just uses tons of RAM 2016-04-18 08:51:41 -04:00
Christine Poerschke c57db02580 LUCENE-7219: Make queryparser/xml (Point|LegacyNumeric)RangeQuery builders match the underlying queries' (lower|upper)Term optionality logic. (Kaneshanathan Srivisagan, Christine Poerschke) 2016-04-18 12:09:31 +01:00
Tommaso Teofili 4751b83c97 LUCENE-7161 - give enough similar docs for mlt to match 2016-04-18 11:47:46 +02:00
Robert Muir c135e9a7d6 LUCENE-7185: improve random test point/box generation for spatial tests 2016-04-18 00:19:02 -04:00
Karl Wright aafdc372d9 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-17 15:37:20 -04:00
Karl Wright e90ed57b94 LUCENE-7226: Remove independent check for backtrack, and remove GeoPolygonFactory methods that use point index for anything. 2016-04-17 15:37:02 -04:00
Robert Muir 72cb73c6b9 LUCENE-7170: move BaseGeoPointTestCase to test-framework 2016-04-17 08:52:59 -04:00
Karl Wright 35e0e92bb3 LUCENE-7226: Clean polygon data, where feasible. 2016-04-17 08:13:44 -04:00
Karl Wright c08f644841 LUCENE-7225: Undo unneeded conflict detection logic in test. 2016-04-16 16:11:49 -04:00
Karl Wright 7b6423c2c7 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-16 10:14:35 -04:00
Karl Wright 22a23f66f7 LUCENE-7225: Undo fancy visit code; it won't do anything useful anyway. 2016-04-16 10:12:53 -04:00
Karl Wright 8ffb2d19e8 LUCENE-7225: Handle case where we don't know what truth is properly. 2016-04-16 08:29:43 -04:00
Mike McCandless aeea493311 catch user (me) silliness when using EarthDebugger 2016-04-16 05:35:19 -04:00
Karl Wright 922210401b Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-16 04:07:39 -04:00
Karl Wright bf3f960e76 LUCENE-7225: Fix Geo3DRelations test to use the correct measure of 'truth' in assessing relationships. 2016-04-16 04:07:10 -04:00
Mike McCandless ad86feca09 improve javadocs and argument validation for LatLonPoint.nearest 2016-04-15 16:55:38 -04:00
Robert Muir d5e0b36d50 remove dead code 2016-04-15 14:55:33 -04:00
Robert Muir 3e6024ffdd improve javadocs for LatLonPoint.nearest() 2016-04-15 14:45:22 -04:00
Mike McCandless c7d4080820 LUCENE-7223: improve XXXPoint javadocs to explain that a StoredField is needed if you want to retrieve the original value at search time 2016-04-15 13:34:16 -04:00
Robert Muir a60265ef5a LUCENE-7222: Improve Polygon.contains() 2016-04-15 12:53:09 -04:00
Christine Poerschke cb840f5242 LUCENE-7210: TestCoreParser.afterClass now resets (static) indexData/coreParser/analyzer to null. 2016-04-15 12:52:44 +01:00
Karl Wright 5348504d45 LUCENE-7221: Do not attempt to carve out holes from bounds. 2016-04-15 07:11:15 -04:00
Karl Wright 5f0245febe LUCENE-7221: Fix broken bounds for GeoCircles. 2016-04-15 03:01:11 -04:00
Karl Wright 7c098913e2 LUCENE-7221: Merge issue 2016-04-14 20:55:54 -04:00
Karl Wright 1d76b2c49b LUCENE-7221: Limit the number of requests to getRelationship() and isWithin() using bounds. 2016-04-14 20:46:38 -04:00
Karl Wright 43b8456cdf LUCENE-7221: Performance improvements for large polygons. 2016-04-14 16:23:20 -04:00
Christine Poerschke 88c4b095bc LUCENE-7210: Add missing @Override to TestCorePlus(Queries|Extensions)Parser's newCoreParser method. 2016-04-14 19:38:43 +01:00
Mike McCandless 68e9efc7ac LUCENE-7069: can't wrap with exotic readers when making IndexSearcher 2016-04-14 14:10:52 -04:00
Mike McCandless 5238de937a LUCENE-7069: woops, approxBestDistance was way too approximate when the point was inside the cell 2016-04-14 12:05:10 -04:00
Christine Poerschke 8d5d201343 LUCENE-7210: Make TestCore*Parser's analyzer choice override-able. (Christine Poerschke, Daniel Collins) 2016-04-14 16:03:11 +01:00
Mike McCandless f6c7fc7a26 LUCENE-7069: add LatLonPoint.nearest to find N nearest points 2016-04-14 11:02:25 -04:00
Mike McCandless af5742cc0a LUCENE-7218: remove wrong comment 2016-04-14 05:55:15 -04:00
Mike McCandless 60033b308a improve exception messages when requested slice is out of bounds 2016-04-14 05:52:53 -04:00
Robert Muir 2335a458d8 LUCENE-7215: don't invoke full haversin for LatLonPoint.newDistanceQuery 2016-04-13 19:02:11 -04:00
Robert Muir 1a1c8dbfb3 LUCENE-7213: fix test bug when LatLonPoint.newBoxQuery returns MatchNoDocsQuery. 2016-04-13 18:52:32 -04:00
Karl Wright e4dcf423e3 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-13 16:15:53 -04:00
Karl Wright 6e5ec3bb4c Disable GeoConvexPolygon and GeoConcavePolygon sanity checks, since these are now package private and the check happens in GeoPolygonFactory anyway. 2016-04-13 16:15:43 -04:00
Robert Muir fc19c99e0e LUCENE-7214: Remove two-phase iteration from LatLonPoint.newDistanceQuery 2016-04-13 15:57:04 -04:00
David Smiley f7f64c2172 LUCENE-7211: Use DocIdSetBuilder instead of FixedBitSet in spatial RPT intersects predicate. 2016-04-13 10:39:09 -04:00
Robert Muir cd673ebec9 LUCENE-7185: add proper tests for grid bugs found here, and fix related bugs still lurking 2016-04-13 10:33:26 -04:00
Christine Poerschke f2f484680f LUCENE-7205: Remove repeated nl.getLength() calls in (Boolean|DisjunctionMax|FuzzyLikeThis)QueryBuilder. 2016-04-13 11:27:17 +01:00
Mike McCandless e076b4c5b4 improve randomized polygon generation to sometimes include regular ngons 2016-04-13 05:51:38 -04:00
Karl Wright 69f3d1fe5f LUCENE-7204: Add a test for (and make a fix for) legitimately coplanar polygon points. 2016-04-13 02:51:25 -04:00
Karl Wright 9a150920a6 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-12 15:37:47 -04:00
Karl Wright 414bdea97a LUCENE-7204: Add check for backtracking over polygon path. 2016-04-12 15:37:13 -04:00
Robert Muir 8f5ef078b0 LUCENE-7207: fix test bug. shrinking a box which is a line can create a cross-dateline query! 2016-04-12 09:27:30 -04:00
Mike McCandless e034b04b06 LUCENE-7189: improve geo debugging technology 2016-04-12 06:10:08 -04:00
Karl Wright a3ee984bc8 LUCENE-7203: Fix the javadoc broken in the previous commit. 2016-04-12 06:05:22 -04:00
Karl Wright 91f74ee254 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-12 06:03:24 -04:00
Karl Wright aa4236a612 LUCENE-7203: Improve polygon intersection detection using a small amount of upfront work. 2016-04-12 06:03:04 -04:00
yonik c1a70f31a6 LUCENE-7188: remove incorrect sanity check in NRTCachingDirectory.listAll() that throws IllegalStateException 2016-04-11 23:51:41 -04:00
Karl Wright 61e3c4020c Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-11 12:55:38 -04:00
Karl Wright 83bde55865 LUCENE-7201: Handle illegal rectangles during testing. 2016-04-11 12:55:21 -04:00
Karl Wright 05dc90215a LUCENE-7201: Handle backside whole-world case for bbox generation. 2016-04-11 12:52:48 -04:00
Adrien Grand 88965a0bec Fix javadoc generation. 2016-04-11 18:46:47 +02: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 38bf7dd834 fix silly stack-building test bug in BKD visitor forensics 2016-04-11 05:42:59 -04:00
Mike McCandless 604fb28b58 fix rare test bug 2016-04-11 05:24:34 -04:00
Tommaso Teofili 273d586be4 LUCENE-7196 - added missing misc dependency 2016-04-11 10:03:37 +02:00
Tommaso Teofili 112078eaf9 LUCENE-7196 - guaranteed class coverage in split indexes through grouping by class 2016-04-11 09:59:22 +02:00
Martijn van Groningen d7867b80f8 LUCENE-7187: Block join queries' Weight#extractTerms(...) implementations should delegate to the wrapped weight. 2016-04-11 09:20:39 +02:00
Mike McCandless dd8c199c0b fix failing test: 6.0 has back compat support in 7.0 ;) 2016-04-10 11:03:35 -04:00
Karl Wright 22ccccfc3e LUCENE-7199: Use a more refined algorithm for picking the random pole used in clockwise/counterclockwise determination. 2016-04-10 08:58:19 -04:00
Karl Wright a4bf526a62 LUCENE-7194: Roll our own toRadians() method, and also make it less likely we'll need to restaple the toString() tests. 2016-04-10 05:11:12 -04:00
Karl Wright d377e7fd34 LUCENE-7197: Fix two test failures and add more forensics that helped resolve the issue. 2016-04-09 16:12:39 -04:00
Karl Wright 4d3a633bf1 Augment explain output from geo3d BKD tree tests to include shape relationships etc. 2016-04-09 00:56:27 -04:00
Karl Wright 23b953cb4f Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-08 20:35:55 -04:00
Karl Wright 4537a66bb1 Stop tests from failing just because of toString test 2016-04-08 20:34:23 -04:00
nknize 455f3dd694 LUCENE-7184: update CHANGES.txt 2016-04-08 15:15:57 -05:00
Karl Wright eb8751256d Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-08 15:53:30 -04:00
Karl Wright 4c4730484d LUCENE-7195: Clockwise/counterclockwise detection was rotating coordinates in the wrong direction. 2016-04-08 15:53:12 -04:00
nknize 48f77829f4 adds 6.0.0 back compat test indexes 2016-04-08 14:29:31 -05:00
nknize d896eab989 minor trimming from spatial module's GeoEncodingUtils 2016-04-08 10:55:40 -05:00
Karl Wright 771680cfd0 LUCENE-7192: Permit adjacent points in a polygon to be coplanar. 2016-04-08 09:14:47 -04:00
Karl Wright 9b65416e60 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-08 06:07:13 -04:00
Tommaso Teofili c906b4fc5a LUCENE-7193 - added missing timeout param to tests 2016-04-08 11:06:43 +02:00
Tommaso Teofili 2507015f4c LUCENE-7193 - add generic f1-measure metric to confusion matrix 2016-04-08 11:06:43 +02:00
Karl Wright 99fa55906c LUCENE-7191: Tests now exercise the query factory methods in Geo3DPoint. 2016-04-08 01:33:46 -04:00
Mike McCandless 1848477bd8 LUCENE-7168: use center value on decode 2016-04-07 18:48:47 -04:00
Karl Wright 5e4777346a LUCENE-7190: Make some methods private in public classes, and make a very few constants public. 2016-04-07 18:31:19 -04:00
Karl Wright 4ffba0b400 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-07 17:59:45 -04:00
Karl Wright a06a6dfaad LUCENE-7173: Iterate at least 100 times each for polygon construction when testing. 2016-04-07 17:59:33 -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
nknize d4bb6912fd fix bug in testLat/LonQuantization 2016-04-07 15:23:04 -05:00
nknize b5ce2f67fd LUCENE-7184: Refactor LatLonPoint encoding methods to new GeoEncodingUtils helper class in core geo package. Also refactors LatLonPointTests to TestGeoEncodingUtils. 2016-04-07 14:07:20 -05:00
Robert Muir 05d62a3577 LUCENE-7185: fix tie-breaker sort bug 2016-04-07 11:27:52 -04:00
Mike McCandless df07e0c30f LUCENE-7168: fix ceil/floor decode to match encode 2016-04-07 09:27:48 -04:00
Karl Wright 74aadd3a7e Fix up internal method signatures to make some degree of greater sense, in GeoPolygonFactory. 2016-04-07 07:40:07 -04:00
Mike McCandless 60fa46578f fix wrong description of how to run IndexFiles demo 2016-04-07 05:29:09 -04:00
Robert Muir e0c507a400 LUCENE-7185: fix edge case bugs in LatLonPoint bounding box query 2016-04-07 00:09:56 -04:00
Robert Muir 2965ac2ca1 LUCENE-7185: fix edge case bug in test logic (min=max=180), don't leak Directory for edge cases! 2016-04-07 00:08:03 -04:00
Robert Muir b59ace99e4 LUCENE-7185: make an empty grid the simple way 2016-04-06 21:49:24 -04:00
Mike McCandless c2289de3c7 LUCENE-7168: improve encode and quantization testing for geo3d 2016-04-06 19:18:56 -04:00
Karl Wright 0163574f9c LUCENE-7173: Get the random nested polygon code working. 2016-04-06 18:57:00 -04:00
Karl Wright eda2a31959 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-06 17:18:10 -04:00
Karl Wright 68e792e3d4 LUCENE-7173: Begin adding tests for random polygons with nesting. Also found and fixed a tiling problem. 2016-04-06 17:17:50 -04:00
Robert Muir 370f2d3488 don't test LatLonPoint's quantization with epsilons: demand exact answers 2016-04-06 14:18:14 -04:00
Christine Poerschke a893aaaf4d Tweak TestRateLimiter.testThreads logic.
(Make visible the fact that the machine/actualMBPerSec was way-too-slow i.e. the not-too-fast portion of the test wasn't really checked.)
2016-04-06 18:18:57 +01:00
Karl Wright 6cf0e2a3e7 LUCENE-7173: Add complex test logic for creating nested polygons 2016-04-06 09:22:11 -04:00
Christine Poerschke 2259288ca0 LUCENE-7178: TestCoreParser tweaks
Summary:
 * rename testSimpleXML to testTermQueryXML
 * rename testSimpleTermsQueryXML to testTermsQueryXML
 * try-with-resources and file-not-found-assert for TestCoreParser.parse
 * TestCoreParser.dumpResults verbose logging now includes qType and numDocs

(Ramkumar Aiyengar, Nathan Visagan, Christine Poerschke)
2016-04-06 13:38:47 +01:00
Karl Wright e6fd37c4a1 LUCENE-7176: Hide GeoPath implementation in a factory/interface. 2016-04-05 03:41:48 -04:00
Karl Wright dc2f17483a LUCENE-7167: Re-enable test I disabled because of the package-private changes. 2016-04-05 03:00:15 -04:00
Karl Wright 885d567bed Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr 2016-04-05 00:37:11 -04:00
Karl Wright 7289bc36f6 LUCENE-7173: Bring polygon API into compliance with 2D version. 2016-04-04 18:56:59 -04:00
Uwe Schindler b0af7a4adf LUCENE-7174: Upgrade randomizedtesting to 2.3.4 2016-04-04 23:01:48 +02:00
Steve Rowe deefaf1ad9 Add Points format to o.a.l.codec package description 2016-04-04 16:53:12 -04:00
Karl Wright 9bef6c000b LUCENE-7157: More javadoc fixes 2016-04-04 14:51:28 -04:00
Karl Wright 94f8e10813 LUCENE-7157: More javadoc fixes 2016-04-04 14:41:42 -04:00
Karl Wright d900588887 LUCENE-7167: Fix spatial-extras tests that were broken by package private changes. One test is commented out while I search for a good way to do what it needs. 2016-04-04 13:59:10 -04:00
Karl Wright c2c68ece23 LUCENE-7157: Fix up javadoc 2016-04-04 13:43:46 -04:00
Robert Muir c1a3e1b8d0 LUCENE-7159: Speed up LatLonPoint point-in-polygon performance 2016-04-04 12:51:03 -04:00
Karl Wright ed6f2b0d0c LUCENE-7157: Update API javadoc and Polygon method visibilities 2016-04-04 12:13:37 -04:00
Karl Wright 0843e95f0c LUCENE-7167:
Make solid variants package private

More public->package private
2016-04-04 11:49:39 -04:00
Karl Wright 1040fcbf42 LUCENE-7157
Add and use clockwise/counterclockwise construction of geo polygons

All code in place but isn't working

Add GeoConcavePolygon, and make more efficient intersection code for GeoConvexPolygon

Finish code, but it fails tests due to looping

Fix some problems

Fix typo

Get one test to run at least

Get it to work

Turn off debugging

Get rid of unused code

Fix beasting failure

Boundary edges have to use sided planes that are inverted in order to constrain the intersections right.

Add test

Use a more rigorous membership structure for bounding edges.

Fix bounding issue

Remove dependence on hash order

Get everything working again

Get everything working

Remove System.out
2016-04-04 11:42:40 -04:00
Robert Muir ef6a0d0013 LUCENE-7159: improve testing of polygon tree methods 2016-04-03 14:07:56 -04:00
Robert Muir d30ebffc95 LUCENE-7163: move Polygon's test too 2016-04-03 13:33:24 -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 9ed95bc6e8 Fix missing import from refactor. Update change log 2016-04-02 14:06:20 -05:00
nknize 6c219e99e4 LUCENE-7163: refactor GeoRect, Polygon, and GeoUtils tests to geo package in core. 2016-04-02 13:57:02 -05:00
Robert Muir f8ea8b855e LUCENE-7166: fix quantization bugs in LatLonPoint and GeoPointField, remove test leniency
Squashed commit of the following:

commit 83c0f9b6158495b8b3d7108059a23bdf38e0f7f3
Author: Robert Muir <rmuir@apache.org>
Date:   Fri Apr 1 23:33:29 2016 -0400

    fix geopoint

commit 97ebd2de516e61c236542fb2fb28e71cf6bdc403
Author: Robert Muir <rmuir@apache.org>
Date:   Fri Apr 1 23:06:05 2016 -0400

    fix test and LatLonPoint encoding/quantization/box queries
2016-04-02 07:16:55 -04:00
Robert Muir 0166171566 LUCENE-7162: set SerialMergeScheduler in all spatial tests.
We can test thread safety of e.g. BKD structures elsewhere in a simpler way. It is important
for geo tests to be simpler and easier to reproduce and debug.
2016-04-01 13:28:11 -04:00
nknize 3f217aba6d LUCENE-7152: Refactor GeoUtils from lucene-spatial to core module. 2016-04-01 11:03:11 -05:00
Robert Muir c071a3a8b5 LUCENE-7160: LatLonPoint quantization should use the same rounding mode as GeoPointField 2016-04-01 08:32:16 -04:00
Mike McCandless cf7967cc46 LUCENE-7158: use the same value (from WGS84) for earth's mean radius when we approximate it as a sphere 2016-04-01 05:40:50 -04:00
Robert Muir cc75be53f9 LUCENE-7153: remove extra PIP copy, this is in Polygon.java now 2016-04-01 00:23:22 -04:00
Robert Muir 81c83b4431 LUCENE-7153: give GeoPointField and LatLonPoint full polygon support 2016-03-31 22:28:46 -04:00
Robert Muir 2af578e167 completely untested logic to try to make javadocs work across our rats nest of spatial modules ! 2016-03-31 22:00:49 -04:00
Mike McCandless bf0e59223d LUCENE-7150: add Geo3DPoint.newDistance/Box/PolygonQuery 2016-03-31 11:54:01 -04:00
Tommaso Teofili d08f327a7f LUCENE-7156 - fixed precision and accuracy calculations 2016-03-31 14:45:31 +02:00
nknize e1b45568b4 * LUCENE-7094: BBoxStrategy and PointVectorStrategy now support PointValues (in addition to legacy numeric trie). Their APIs were changed a little and also made more consistent. PointValues/Trie is optional, DocValues is optional, stored value is optional. 2016-03-30 18:14:20 -05:00
Mike McCandless c47a2996b5 LUCENE-7122: handle fixed length byte[] values more efficiently in OfflineSorter 2016-03-30 05:52:05 -04:00
Ryan Ernst 045659533c LUCENE-7147: Improve disjoint check for geo distance query traversal 2016-03-29 12:14:41 -07:00
Robert Muir e5836318dd disable test method for deprecated encoding: its too memory-hungry 2016-03-29 09:51:09 -04:00
Robert Muir 5619838e1c quantize random rects in test too (for now) until we can really remove this leniency... 2016-03-29 00:16:52 -04:00
Robert Muir 7476d0622f this test uses NaN to mean missing. don't try to quantize it. 2016-03-28 16:02:02 -04:00
Robert Muir 9189bdc1c2 don't quantize ALL generated points in this test, just the ones we index (except for some leniency: see the TODO).
This may cause more test failures!
2016-03-28 14:39:01 -04:00
Robert Muir 8c5115ea9a LUCENE-7145: consolidate polygon range checks, tests, box usage. make cannot -> must not consistent so we can test this stuff. 2016-03-28 14:12:49 -04:00
Mike McCandless 565525fdb7 fix nocommit 2016-03-28 14:13:44 -04:00
Robert Muir 2b4ab3cbde minor test cleanups 2016-03-28 12:00:53 -04:00
Robert Muir 956e4363f1 factor out polygon/box generation into GeoTestUtil. removes lots of leniency and unnecessary quantization! may cause failures!!!! 2016-03-28 11:48:14 -04:00
Mike McCandless 010f02216d simplify base geo test class 2016-03-28 11:08:53 -04:00
Robert Muir 1b3a3c113e geo tests: simplify random generation 2016-03-28 10:54:03 -04:00
Mike McCandless 67ca5499a3 LUCENE-7144: forceMerge before pulling reader 2016-03-28 09:42:29 -04:00
Robert Muir 9a08113a53 LUCENE-7126: GeoPointDistanceRangeQuery not valid for multi-valued docs 2016-03-28 07:46:08 -04:00
Tommaso Teofili e8dac9bfdf LUCENE-6954 - keep info about relationship between fields and terms when retrieving terms in MLT 2016-03-28 10:07:30 +02:00
Mike McCandless 6f0488f730 clean up random poly generation; simplify geo util methods for validating lat/lon 2016-03-27 17:47:14 -04:00
Robert Muir 11d10699cc test polygon queries with mike's surprise polygon generator 2016-03-27 16:58:14 -04:00
Robert Muir 6ac0c43b97 slightly improve polygon testing: test something other than boxes 2016-03-27 15:27:17 -04: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 6d288704c4 the scratch BytesRef must be private to each offline reader 2016-03-26 06:25:53 -04:00
Mike McCandless 78d5cfefe2 LUCENE-7141: switch OfflineSorter's ByteSequencesReader to BytesRefIterator 2016-03-26 03:47:06 -04:00
Mike McCandless c93c88dfb4 fix bug in exception's message 2016-03-25 20:15:07 -04:00
Mike McCandless 1e9fb843a9 add missing javadocs 2016-03-25 19:47:14 -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
Martijn van Groningen 2babaf8c3d LUCENE-7095: Add point values support to the numeric field query time join 2016-03-25 17:23:03 +01:00
Adrien Grand 9448bd007b LUCENE-7112: WeightedSpanTermExtractor.extractUnknownQuery is only called on queries that could not be extracted. 2016-03-25 15:45:43 +01:00
Mike McCandless c498fcdc43 LUCENE-7139: move these fixed tests out of the loop 2016-03-25 08:24:08 -04:00
Mike McCandless 626bed8bc6 LUCENE-7140: add spatial3d PlanetModel.bisection method 2016-03-25 08:21:44 -04:00
Mike McCandless b8feb92271 LUCENE-7139: fix bugs in geo3d's vincenty distance implementation 2016-03-25 07:59:56 -04:00
Mike McCandless 5d16e75819 BKDWriter optimization: avoid copying unnecessary bytes when marking the right tree ords 2016-03-25 07:44:40 -04:00
Robert Muir fc7f559138 LUCENE-7136: remove threads from BaseGeoPointTestCase 2016-03-24 14:13:24 -04:00
Robert Muir ff70c680a2 LUCENE-7137: consolidate many tests across Points and GeoPoint queries/fields 2016-03-24 12:41:30 -04:00
Mike McCandless 5b3e07a98a BKDWriter: also fix split to read ord after docID 2016-03-24 11:22:03 -04:00
Mike McCandless f859bab35f simplify BKDWriter's comparator tie break for its temp files; add test case verifying tie break by docID 2016-03-24 10:02:48 -04:00
Mike McCandless 5174c4934c fix test bug: pass the correct point count when creating BKDWriter 2016-03-24 05:13:59 -04:00
yonik cb41903039 LUCENE-7119: allow bypass of docvalues check in DocTermOrds 2016-03-23 23:04:50 -04:00
Mike McCandless 97b6270337 LUCENE-7133: check field name in equals/hashCode for point queries 2016-03-23 17:12:14 -04:00
Mike McCandless 390166fa25 disable query cache when this test uses threads, so seeds reliably reproduce 2016-03-23 06:21:09 -04:00
Mike McCandless 6a5e935aa6 GeoPointField now validates incoming lat/lon 2016-03-23 04:42:15 -04:00
Mike McCandless 99c3bb2371 LUCENE-7128: fix a few more lon/lat places; remove more dead code 2016-03-22 18:21:24 -04:00
Robert Muir 5385c8d92f LUCENE-7130: fold optimizations from LatLonPoint to GeoPointField 2016-03-22 17:47:09 -04:00
Robert Muir 1e5f74a02b LUCENE-7127: remove epsilon-based testing from lucene/spatial, fix distance bugs. 2016-03-22 16:54:08 -04:00
Mike McCandless 275a259b1f LUCENE-7128: clean up new geo APIs to consistently take lat before lon, make methods private when possible, use lat/lon instead of y/x naming, remove unused code 2016-03-22 11:52:26 -04:00
Mike McCandless 6a474df367 remove unnecessary confusing parameters 2016-03-22 11:35:02 -04:00