Commit Graph

24947 Commits

Author SHA1 Message Date
Karl Wright e509eb6851 LUCENE-7157: Fix up javadoc 2016-04-04 15:55:39 -04:00
Karl Wright 882d1d4409 LUCENE-7157: Update API javadoc and Polygon method visibilities 2016-04-04 15:55:14 -04:00
Karl Wright c698928b06 LUCENE-7167:
Make solid variants package private

More public->package private
2016-04-04 15:54:48 -04:00
Karl Wright 0399eb4b67 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 13:13:17 -04:00
Robert Muir 1113443fc6 LUCENE-7159: Speed up LatLonPoint point-in-polygon performance 2016-04-04 12:52:28 -04:00
Robert Muir bb2e01c3d9 LUCENE-7159: improve testing of polygon tree methods 2016-04-03 14:08:56 -04:00
Robert Muir 741a1e4eed LUCENE-7163: move Polygon's test too 2016-04-03 13:34:36 -04:00
Robert Muir a70c3df7a6 package-info.java -> package.html because this package is already defined in core/ 2016-04-03 12:10:50 -04:00
nknize 4e70702782 Fix missing import from refactor. Update change log 2016-04-02 14:07:19 -05:00
nknize 951563aa42 LUCENE-7163: refactor GeoRect, Polygon, and GeoUtils tests to geo package in core. 2016-04-02 14:07:06 -05:00
Robert Muir 99d16feb7e 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:25:18 -04:00
markrmiller d9c3c7e6f0 SOLR-8855: The HDFS BlockDirectory should not clean up it's cache on shutdown. 2016-04-01 15:51:34 -04:00
Robert Muir ca9eca9de0 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:30:19 -04:00
nknize 637dce83e2 LUCENE-7152: Refactor GeoUtils from lucene-spatial to core module. 2016-04-01 11:05:36 -05:00
markrmiller 461c9b4fef SOLR-8856: Do not cache merge or 'read once' contexts in the hdfs block cache. 2016-04-01 10:26:54 -04:00
Robert Muir d9d88b8941 LUCENE-7160: LatLonPoint quantization should use the same rounding mode as GeoPointField 2016-04-01 08:33:50 -04:00
Mike McCandless 4ecfa98bdb LUCENE-7158: use the same value (from WGS84) for earth's mean radius when we approximate it as a sphere 2016-04-01 05:41:19 -04:00
Robert Muir 50909527d0 LUCENE-7153: remove extra PIP copy, this is in Polygon.java now 2016-04-01 00:24:27 -04:00
Robert Muir 2c0a8ed418 LUCENE-7153: give GeoPointField and LatLonPoint full polygon support 2016-03-31 22:29:44 -04:00
Robert Muir 1153264782 completely untested logic to try to make javadocs work across our rats nest of spatial modules ! 2016-03-31 22:11:18 -04:00
jbernste 586afc3db1 SOLR-8888: Update CHANGES.txt 2016-03-31 20:59:19 -04:00
jbernste ffdfceba53 SOLR-8888: Add shortestPath Streaming Expression 2016-03-31 16:35:49 -04:00
nknize 82ed2383f0 replace svn up with git pull in buildAndPushRelease.py 2016-03-31 13:41:01 -05:00
jbernste 74b5a7a972 SOLR-8924: RollupStream breaks with null values in the group by buckets 2016-03-31 12:05:18 -04:00
Mike McCandless 0dcf822f40 LUCENE-7150: add Geo3DPoint.newDistance/Box/PolygonQuery 2016-03-31 11:54:50 -04:00
Tommaso Teofili 2f9a966b70 LUCENE-7156 - fixed precision and accuracy calculations
(cherry picked from commit d08f327)
2016-03-31 14:53:11 +02:00
nknize 08dae30f73 * 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:42:50 -05:00
David Smiley 44e0ac3856 SOLR-8903: Move SolrJ DateUtil to contrib/extraction as ExtractionDateUtil.
And removed obsolete methods.
(cherry picked from commit 5e5fd66)
2016-03-30 15:07:52 -04:00
David Smiley 72f5eac2c5 SOLR-8904: switch from SimpleDateFormat to Instant.parse and format.
[value] and ms() and contrib/analytics now call DateMathParser to parse.  DateFormatUtil is now removed.
(cherry picked from commit 94c0423) (cherry picked from commit 39932f5)
2016-03-30 14:37:55 -04:00
markrmiller 28a51cef56 SOLR-8864: TestTestInjection needs to cleanup after itself. 2016-03-30 12:35:21 -04:00
Jan Høydahl f9a4deb7be SOLR-8870: AngularJS support for qt style handlers, and fix slash encoding bug to support Query panel through proxy
(cherry picked from commit aec11eb)
2016-03-30 12:58:44 +02:00
Mike McCandless e2d58ccb37 LUCENE-7122: handle fixed length byte[] values more efficiently in OfflineSorter 2016-03-30 05:53:10 -04:00
Ryan Ernst 0cf26bf368 LUCENE-7147: Improve disjoint check for geo distance query traversal 2016-03-29 12:17:19 -07:00
Robert Muir 5958bcb68e disable test method for deprecated encoding: its too memory-hungry 2016-03-29 09:51:59 -04:00
Robert Muir c769199c20 quantize random rects in test too (for now) until we can really remove this leniency... 2016-03-29 00:17:20 -04:00
Robert Muir a6dcab2623 this test uses NaN to mean missing. don't try to quantize it. 2016-03-28 16:02:43 -04:00
Robert Muir 1ebb10c649 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:54 -04:00
Robert Muir f28f1096ce Merge branch 'branch_6x' of https://git-wip-us.apache.org/repos/asf/lucene-solr into branch_6x 2016-03-28 14:22:28 -04:00
Robert Muir 70290d9c8e LUCENE-7145: consolidate polygon range checks, tests, box usage. make cannot -> must not consistent so we can test this stuff. 2016-03-28 14:14:19 -04:00
Mike McCandless 25a0c79808 fix nocommit 2016-03-28 14:14:08 -04:00
Robert Muir c3ff34e54b minor test cleanups 2016-03-28 12:01:20 -04:00
Robert Muir f3c743550f factor out polygon/box generation into GeoTestUtil. removes lots of leniency and unnecessary quantization! may cause failures!!!! 2016-03-28 11:49:39 -04:00
Mike McCandless 9cccffad41 simplify base geo test class 2016-03-28 11:09:31 -04:00
Robert Muir 81f32f272f geo tests: simplify random generation 2016-03-28 10:54:29 -04:00
Mike McCandless 51feadd185 LUCENE-7144: forceMerge before pulling reader 2016-03-28 09:42:55 -04:00
Robert Muir d8dd06f422 LUCENE-7126: GeoPointDistanceRangeQuery not valid for multi-valued docs 2016-03-28 08:19:22 -04:00
Tommaso Teofili 967f7d3492 LUCENE-6954 - keep info about relationship between fields and terms when retrieving terms in MLT
(cherry picked from commit e8dac9b)
2016-03-28 10:09:51 +02:00
Mike McCandless a9b702df79 clean up random poly generation; simplify geo util methods for validating lat/lon 2016-03-27 17:47:50 -04:00
Robert Muir 0c0a25d747 test polygon queries with mike's surprise polygon generator 2016-03-27 16:58:49 -04:00
Robert Muir bd74f42503 slightly improve polygon testing: test something other than boxes 2016-03-27 15:28:04 -04:00