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
Robert Muir
ca3cad194b
Separate simple tests from random tests, separate tests for different encodings.
...
We can simplify the random tests to be easier to debug (like sandbox latlonpoint), but first
we need to ensure that no coverage is lost: otherwise we might weaken tests with quantization.
2016-03-21 23:44:10 -04:00
Robert Muir
4d0aa7709a
move tests from sandbox/ to spatial/ since they test GeoUtils methods (now with no unwanted quantization)
2016-03-21 23:09:49 -04:00
Robert Muir
69da13ff6f
LUCENE-7125: remove additional confusion (we already quantize once, don't do it again).
2016-03-21 22:47:31 -04:00
Robert Muir
d74572ac9c
LUCENE-7125: remove BKD_TOLERANCE from LatLonPoint polygon tests
2016-03-21 22:01:52 -04:00
Gregory Chanan
56292fd4ef
LUCENE-7115: Speed up FieldCache.CacheEntry toString by setting initial StringBuilder capacity
2016-03-21 11:51:49 -07:00
Robert Muir
ce3114233b
LUCENE-7123: deduplicate/cleanup spatial distance
2016-03-21 10:34:03 -04:00
Steve Rowe
751a53fe00
LUCENE-7111: DocValuesRangeQuery.newLongRange behaves incorrectly for Long.MAX_VALUE and Long.MIN_VALUE
2016-03-21 08:59:43 -04:00
Mike McCandless
0e189bca2d
LUCENE-7120: re-use readers while recursing in BKDWriter so we get more thorough checksum verification on its temp files
2016-03-21 05:49:47 -04:00
Ryan Ernst
7f9c4d886d
LUCENE-7118: Move numDims check before modulo numDims
2016-03-20 13:49:33 -07:00
Ryan Ernst
54e662b6da
LUCENE-7118: Fix packed points upper/lower bound length check
2016-03-20 13:39:50 -07:00
Robert Muir
e1a1dbfabc
LUCENE-7117, LUCENE-7118: Remove multidimensional arrays from PointRangeQuery
2016-03-20 16:05:17 -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
093a3e8711
Update tools for maximum Java 9 compatibility (especially Groovy)
2016-03-20 11:59:56 +01:00
Uwe Schindler
f93f90ca1b
SOLR-8874: Make Solr tests work with Java 9 Jigsaw
2016-03-19 14:53:59 +01:00
Mike McCandless
cc774994fc
make a separate explicit test case for testing threads
2016-03-19 09:04:04 -04: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
yonik
5ea86b14c3
SOLR-8867: fix frange/FunctionValues.getRangeScorer to not match missing values, getRangeScorer refactored to take LeafReaderContext
2016-03-17 16:58:27 -04:00
Adrien Grand
c1e95d7b4d
More javadocs about exclusive bounds.
2016-03-17 16:25:27 +01:00
Mike McCandless
85945ef2a7
add asserts
2016-03-17 10:10:28 -04:00
Steve Rowe
6ebf61535e
SOLR-7339: Upgrade to Jetty 9.3.8.v20160314
2016-03-17 01:46:36 -04:00
Adrien Grand
24830b7f18
LUCENE-7106: Add helpers to compute aggregated stats on points.
2016-03-16 15:34:40 +01:00
Robert Muir
2c8b2a6cd3
remove obselete warning: this sort makes bounding boxes for you
2016-03-16 09:30:45 -04:00
Robert Muir
6ea458a0ed
LUCENE-7109: LatLonPoint.newPolygonQuery should use two-phase iterator
2016-03-16 09:26:15 -04:00
Robert Muir
870baafc82
LUCENE-7105: Optimize LatLonPoint.newDistanceQuery
2016-03-15 11:18:15 -04:00
Mike McCandless
3ba7456f70
LUCENE-7108: this test was running the wrong range query
2016-03-15 09:50:12 -04:00
Martijn van Groningen
c1dfeb8ef8
LUCENE-7093: Added point values support to the memory index
2016-03-15 13:13:19 +01:00
Mike McCandless
82c06190a3
LUCENE-7101: OfflineSorter had O(N^2) merge cost, and used too many temporary file descriptors, for large sorts
2016-03-15 07:36:02 -04:00
Mike McCandless
56ca641b5b
re-enable accidentally turned off test evilness
2016-03-15 05:18:53 -04:00
Martijn van Groningen
cf3eea2640
LUCENE-7091: Added doc values support to memory index
2016-03-15 09:57:40 +01:00
Martijn van Groningen
8185c8a11d
Change entry to reflect that LUCENE-7087 has been backported to 6.0
2016-03-15 09:49:17 +01:00
Robert Muir
02bb6c0155
LUCENE-7104: remove "sort missing first" from LatLonPoint.newDistanceSort and simplify/speedup code
2016-03-14 19:07:30 -04:00
Robert Muir
1660b5630a
LUCENE-7103: further optimize LatLonPoint.newDistanceSort
2016-03-14 16:25:31 -04:00
Robert Muir
0f949c8153
LUCENE-7102: LatLonPoint.newDistanceSort fails with "sort missing first"
2016-03-14 14:08:25 -04:00
Robert Muir
80fe00ba18
LUCENE-7099: improve test to exercise searchAfter
2016-03-14 12:19:19 -04:00
Mike McCandless
c8b06b68e6
fix test bug: this test expects single segment index
2016-03-14 10:42:03 -04:00
Mike McCandless
f706c9de82
fix test bug: these tests expect only one segment
2016-03-14 10:21:57 -04:00
Mike McCandless
8cbe471377
LUCENE-7097: let IntroSorter go 2X deeper in quicksort before switching to heapsort
2016-03-14 06:03:17 -04:00
Mike McCandless
3c7e55da3a
fix wrong param order in 2B tests
2016-03-13 08:56:51 -04:00
Mike McCandless
983908c809
optimize offline -> offline partition
2016-03-13 08:55:31 -04:00
Mike McCandless
d8eac8e38a
let BKD use 256 MB heap in 2B tests
2016-03-13 06:53:24 -04:00
Mike McCandless
f474f523dc
improve 2B points test; add new 2B test against BKD directly
2016-03-13 06:41:19 -04:00
Mike McCandless
b466cb6376
make BKD's temp file names a bit more descriptive
2016-03-13 06:28:49 -04:00
Mike McCandless
fcd90b9ba6
fix int overflow
2016-03-13 06:28:18 -04:00
Mike McCandless
fa9700737a
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr
2016-03-13 05:35:34 -04:00
Mike McCandless
b420ad4e3c
don't wrap searchers in this test
2016-03-13 05:35:02 -04:00
Mike McCandless
41ef29a2c3
optimize BKD leaf block writing: use incoming sorted points to compute commonn prefix (saves one pass); remove an extra copy bytes
2016-03-13 05:31:11 -04:00
Robert Muir
576a40596d
LUCENE-7099: use two-phase iteration in LatLonPoint.newDistanceQuery
2016-03-12 10:59:43 -05:00
Mike McCandless
0ff341f747
remove O(N^2) asserts
2016-03-12 06:17:03 -05:00
Mike McCandless
b8cfcaf344
LUCENE-7098: reduce OfflineSorter and BKDWriter IO by using 4 bytes instead of 8 bytes to encord ord in the common case
...
Squashed commit of the following:
commit 5ac2dcf2a972e46ccda3e7a8d8df5d0af58f712a
Merge: 68acf7f 684b222
Author: Mike McCandless <mikemccand@apache.org>
Date: Fri Mar 11 19:04:13 2016 -0500
Merge branch 'master' into intords
commit 68acf7f9ee2e0249d90075bc035721c0a91619f7
Author: Mike McCandless <mikemccand@apache.org>
Date: Fri Mar 11 19:04:01 2016 -0500
rename to totalPointCount and add comment; enforce that the caller doesn't exceed what they said; simplify the longOrds check to just compare to Integer.MAX_VALUE
commit afc964b56015475e8c354fdc8b0e05c7fa074ec2
Merge: db79e36 fe21f7a
Author: Mike McCandless <mikemccand@apache.org>
Date: Fri Mar 11 10:17:09 2016 -0500
Merge branch 'master' into intords
Conflicts:
lucene/core/src/test/org/apache/lucene/index/Test2BPoints.java
commit db79e365e097153a05813eaa70603c601bce1853
Author: Mike McCandless <mikemccand@apache.org>
Date: Fri Mar 11 10:15:05 2016 -0500
use int (4 bytes) not lon (8 bytes) if the number of points is less than ~2.1B
2016-03-12 05:12:46 -05:00
Mike McCandless
459d6fd9f9
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr
2016-03-12 04:57:02 -05:00
Mike McCandless
3bc2b9e642
don't wrap index reader in this test: it requires leaf readers
2016-03-12 04:56:23 -05:00
Robert Muir
e169050dc3
LUCENE-7099: speed up embarrasingly slow sandbox/ distance sort
2016-03-11 21:20:07 -05:00
Robert Muir
b3ee746a8b
LUCENE-7099: add newDistanceSort to sandbox LatLonPoint
2016-03-11 19:29:22 -05:00
Mike McCandless
684b222221
Replace O(N^2) cost bitset clearing with O(N)
2016-03-11 18:43:34 -05:00
Mike McCandless
1e05d3be76
fix int overflow bug in BKDWriter that prevented it from indexing > 2.1B points; try to improve runtime of Test2BPoints
2016-03-11 06:48:30 -05:00
Mike McCandless
fafbb2b6c7
remove dead code
2016-03-11 05:34:19 -05:00
Mike McCandless
af34993843
remove TODO that was in fact done
2016-03-11 04:54:01 -05:00
Mike McCandless
1a233d83de
test bug: close the right reader (the one we passed to newSearcher)
2016-03-11 04:53:43 -05:00
Mike McCandless
859ad950cc
fix rare-ish test bug
2016-03-10 16:34:04 -05: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
Robert Muir
d35d5694d8
LUCENE-7090, LUCENE-7075: deprecate single-valued LegacyNumerics fieldcaching, provide Points-based replacement.
2016-03-10 08:29:56 -05:00
Martijn van Groningen
0b8b16f9f2
LUCENE-7087: Let MemoryIndex#fromDocument(...) accept 'Iterable<? extends IndexableField>' as document instead of 'Document'
2016-03-10 14:05:54 +01:00
Robert Muir
162636bf05
LUCENE-7081: prefix-compress compressible fixed-width data (like InetAddress/BigInteger)
2016-03-10 07:25:48 -05:00
Robert Muir
89cc676f2b
LUCENE-7089, LUCENE-7075: add points to flexible queryparser to replace legacy numerics support
2016-03-09 21:06:41 -05:00
Mike McCandless
dee8b5e40a
don't use slow composite wrapper in these tests
2016-03-09 14:11:04 -05:00
Robert Muir
a7ff1c8d3e
LUCENE-7076: improve deprecation message for LegacyNumericRangeQuery
2016-03-09 12:16:59 -05:00
Robert Muir
58623e00cc
LUCENE-7079: add newSetQuery(String, Collection) to primitive Point types
2016-03-09 11:25:37 -05:00
Mike McCandless
dacbf333e4
CheckIndex failed to say it was checking points
2016-03-09 11:03:37 -05:00
Christine Poerschke
f1ad769666
LUCENE-7084: fail precommit on comparingIdentical. also replaces one assert in the SingletonSortedSetDocValues constructor with equivalent test (TestSortedSetDocValues.testNoMoreOrdsConstant).
2016-03-09 16:00:15 +00:00
Robert Muir
116ece2fe4
LUCENE-7088, LUCENE-7075: Add PointRangeQueryBuilder to xml-queryparser to replace LegacyNumericRangeQueryBuilder
2016-03-09 10:07:33 -05:00
Mike McCandless
770e508fd3
LUCENE-7085: PointRangeQuery.equals sometimes returns false even if queries were in fact equal
2016-03-09 10:07:15 -05:00
Mike McCandless
004e83bb6c
add 2B point test
2016-03-09 09:30:22 -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
12f7ad6696
remove troublesome float tests since facets only actually expose doubles
2016-03-08 17:30:30 -05:00
Mike McCandless
a6c8ccbc99
fix random float test to do the +/- 1 ulp in float space
2016-03-08 17:22:31 -05: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
Mike McCandless
2cac33a5ce
LUCENE-7083: default points merge logic should not ask a reader to merge points on a field that doesn't exist in that segment
2016-03-08 13:28:28 -05:00
David Smiley
9393a3190c
LUCENE-6952: Make most Filter* classes abstract.
2016-03-08 12:36:46 -05:00
Robert Muir
f9fbf8bc1d
LUCENE-7075: clean up LegacyNumerics* usage in queries/ tests
2016-03-08 11:17:12 -05:00
Robert Muir
75f18ad404
LUCENE-7075: clean up LegacyNumeric* in .document javadocs
2016-03-08 10:55:13 -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
Robert Muir
bfd58bc9de
LUCENE-7077: fail precommit on useless assignment
2016-03-08 06:42:35 -05:00
Robert Muir
5bb072d4b9
LUCENE-7076: Improve MIGRATE.txt/Point javadocs
2016-03-08 06:21:07 -05:00
David Smiley
f7f81c3284
LUCENE-7056: Geo3D package re-org
2016-03-07 20:14:19 -05:00
Mike McCandless
3d633c6e68
LUCENE-7071: reduce byte copying costs of OfflineSorter
2016-03-07 18:12:10 -05:00
Robert Muir
4df4cb07ac
LUCENE-7073: fix FieldType issues with Points
2016-03-07 16:13:05 -05:00
Mike McCandless
9082d5f8f4
make test less evil
2016-03-07 08:38:38 -05:00
Mike McCandless
b79067a456
LUCENE-7072: always use WGS84 planet model in Geo3DPoint
2016-03-07 05:23:04 -05:00
Uwe Schindler
6ce6c01318
Update URL to Lucene's KEYS file
2016-03-07 11:21:12 +01:00
Adrien Grand
e695b0ae07
LUCENE-7066: Optimize PointRangeQuery for the case that all documents have a value and all points from the segment match.
2016-03-07 09:55:39 +01:00
Mike McCandless
74e7e1509a
LUCENE-7070: insert missing 's' in PointFormat/Reader/Writer
2016-03-06 08:27:02 -05:00
Mike McCandless
74f4f9f98d
remove useless print
2016-03-05 18:12:50 -05:00
Mike McCandless
f1c044a2d7
fix very rare test bug that I somehow hit
2016-03-05 04:57:14 -05:00
Mike McCandless
9c8cbefbff
add END to the end of SimpleText's points data file
2016-03-05 04:51:14 -05:00
anshum
437170fa88
SOLR-8789: Remove the *Tests regular expression from the build xml, and instead rename CollectionsAPISolrJTests to CollectionsAPISolrJTest
2016-03-04 16:34:44 -08:00
anshum
6772ed09e8
SOLR-8789: Fix common-build.xml to run tests in classes that end in *Tests.java
2016-03-04 16:25:24 -08:00
Robert Muir
144273a814
LUCENE-7067: add missing checkIntegrity calls for Points
2016-03-04 17:25:22 -05:00
Mike McCandless
91e29bab67
add randomized test for GeoUtils.circleToBBox
2016-03-04 16:53:58 -05:00
Martijn van Groningen
b9cc15309c
LUCENE-7065: Fix the explain for the global ordinals join query. Before the
...
explain would also indicate that non matching documents would match.
On top of that with score mode average, the explain would fail with a NPE.
2016-03-04 18:23:00 +01:00
Noble Paul
ab35fafdd5
Merge remote-tracking branch 'origin/master'
2016-03-04 18:54:12 +05:30
Noble Paul
c27dd8e038
SOLR-8750 : Use lambdas in code where SAM type interfaces are used
2016-03-04 18:53:47 +05:30
Shalin Shekhar Mangar
4bb4c48bff
Remove confusing stale comment
2016-03-04 18:38:22 +05:30
Adrien Grand
a78ef15842
LUCENE-7064: Add attribution.
2016-03-04 11:44:22 +01:00
Luc Vanlerberghe
40aab73a4c
LUCENE-7064: Split MultiPhraseQuery into an immutable class and a Builder
...
This closes #19
2016-03-04 11:28:36 +01: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
4c4313889f
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr
2016-03-03 05:48:45 -05:00
Mike McCandless
2d5519a0ee
also assert points stats docCount <= maxDoc, and docCount >=0 and size >= 0
2016-03-03 05:48:15 -05:00
Shalin Shekhar Mangar
a2120730a6
Adding version 6.1.0
2016-03-03 15:39:08 +05:30
David Smiley
569b6ca9ca
LUCENE-7060: Spatial4j 0.6 upgrade. Package com.spatial4j.core -> org.locationtech.spatial4j
2016-03-02 21:05:32 -05:00
Mike McCandless
c16f73aa91
remove leftover print
2016-03-02 19:29:08 -05:00
Mike McCandless
7dffaa30fa
also test getDocCount on schema ghost
2016-03-02 18:58:21 -05:00
Mike McCandless
e4964efdf4
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr
2016-03-02 18:55:33 -05:00
Mike McCandless
5b1b183878
add missing delegations
2016-03-02 18:45:03 -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
85dbdb7659
fix NPE, add test case
2016-03-02 17:59:42 -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
9f5bbc2d91
LUCENE-7059: remove MultiPointValues
2016-03-02 17:20:06 -05:00
Robert Muir
e80ab3926c
LUCENE-7061: fix remaining api issues with XYZPoint classes
...
Squashed commit of the following:
commit 0261e28dd29b1c2a1dcbd5e796966b2cdf2f4b82
Author: Robert Muir <rmuir@apache.org>
Date: Wed Mar 2 14:51:49 2016 -0500
Add note about comparison order and test extreme values
commit e1f7bc244cd980e931d584c00ba73f8ac521c3fd
Author: Mike McCandless <mikemccand@apache.org>
Date: Wed Mar 2 14:25:50 2016 -0500
add explicit test to verify rect query is inclusive; make test fail fast by default
commit c9be9139ec2f9553ce05fb56b2667be77b8176b6
Author: Robert Muir <rmuir@apache.org>
Date: Wed Mar 2 14:03:47 2016 -0500
oops
commit 351d0838bbc87dc7c6d83476bd9cb7ce6c38fc3c
Author: Robert Muir <rmuir@apache.org>
Date: Wed Mar 2 13:53:42 2016 -0500
clean up pointrangequery: remove nulls and inclusives
commit 0796057a8041ddf43341611b477502fa2307f0b1
Merge: 742ee02 e3198ca
Author: Robert Muir <rmuir@apache.org>
Date: Wed Mar 2 13:26:48 2016 -0500
Merge branch 'master' into unfuck_points
commit 742ee02aaf55439463daddbd3ea16c5e8df31f01
Author: Robert Muir <rmuir@apache.org>
Date: Wed Mar 2 13:16:08 2016 -0500
Remove nulls and inclusives from points apis
2016-03-02 16:52:38 -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
09aa951ad0
remove or cutover all uses of now unsupported versions
2016-03-02 09:05:41 -05:00
Mike McCandless
c62ad7bba0
add todos, fix whitespace
2016-03-02 06:30:43 -05:00
Mike McCandless
5454e1030e
upgrade dvupdates index to 6.0.0
2016-03-02 06:25:25 -05:00
Mike McCandless
73f112248b
ugprade moreterms index to 6.0.0
2016-03-02 06:19:21 -05:00
Mike McCandless
0fd7724896
upgrade empty index to 6.0.0; move 5.0 single segment indices to old
2016-03-02 06:16:47 -05:00
Mike McCandless
2ba48030f3
SegmentInfos now throws IndexFormatTooOld if index is before 6.0.0
2016-03-02 06:10:53 -05:00
Mike McCandless
ddbeb2a6b0
rename old indices to unsupported ones, and remove now unsupported 5.x version constants
2016-03-02 06:00:43 -05:00
Mike McCandless
5fbee20457
Un-deprecate Version.LUCENE_7_0_0
2016-03-02 04:33:56 -05:00
nknize
96b195432f
Update master version to 7.0.0
2016-03-02 02:37:33 -06:00
Mike McCandless
251cdbcee3
optimize BKDWriter's offline comparator a bit
2016-03-01 16:08:01 -05:00
Mike McCandless
6261767b33
remove dup'd code
2016-03-01 14:32:08 -05:00
Uwe Schindler
3c27980c4a
LUCENE-7053: Simplify code to work around Java 8u25 compiler bug
2016-03-01 18:36:54 +01:00
Mike McCandless
2a7314b599
make test less evil
2016-03-01 10:47:06 -05:00
Robert Muir
2264600ffe
LUCENE-7057: cleanup some sandiness around LatLonPoint
2016-03-01 07:04:45 -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
Robert Muir
dc39fc3e5a
LUCENE-7015: "fix" package-info/javadocs issues across duplicated packages.
2016-02-29 19:49:29 -05:00
nknize
89db4950b9
LUCENE-7015: Refactor spatial module to spatial-extras
...
Refactors non GeoPoint* classes from existing spatial module to a new spatial-extras module. dev-tools, build, and project files are updated to include new spatial-extras module.
2016-02-29 16:18:39 -06:00
Mike McCandless
3cc8b6f8fd
also test LatLonPoint.newDistanceQuery from TestLatLonPointQueries, and remove some test leniency
2016-02-29 15:45:09 -05:00
Robert Muir
858a52b7c5
LUCENE-7051: remove another estimate match count optimization
2016-02-29 08:29:52 -05:00
Robert Muir
7385d3a4a1
LUCENE-7054: add newDistanceQuery to sandbox LatLonPoint
2016-02-29 07:38:40 -05:00
Adrien Grand
44324d3dfe
LUCENE-7050: Cache TermsQuery and point queries more aggressively.
2016-02-29 11:02:57 +01:00
Adrien Grand
46d05afdae
LUCENE-7051: Remove the "estimate match count" optimization from point queries.
2016-02-29 10:10:32 +01:00
Uwe Schindler
5f9db01833
LUCENE-6989: Also print missing permission if unmap hack does not work; rename method to make stack trace look nice while executing unmapping
2016-02-29 10:01:43 +01: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
e590ed67cf
make PointInSetQuery abstract
2016-02-26 20:25:51 -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
Adrien Grand
509c6a0acb
LUCENE-6793: Make LegacyNumericRangeQuery and point queries less subject to hash collisions.
2016-02-26 16:47:11 +01:00
Mike McCandless
3c1b309d2d
fix a few plases in CheckIndex to not try to call BytesRefBuilder.toString (it hits an UnsupportedOperationException)
2016-02-26 04:27:28 -05:00
Robert Muir
d21fe2e34a
Add missing bounds check to PointRangeQuery for inclusive arrays.
...
Otherwise you may or may not get a strange exception.
2016-02-25 14:03:55 -05:00
Mike McCandless
b9d46e4fd6
LUCENE-7048: add changes entry
2016-02-25 13:11:14 -05:00
Mike McCandless
446ce8604e
LUCENE-7048: add XXXPoint.newSetQuery to match documents with any values from the specified set (this is the analog of TermsQuery, for points)
...
Merge branch 'point_set_query'
2016-02-25 13:08:35 -05:00
Mike McCandless
7e1fbdf31a
fix compilation errors
2016-02-25 05:51:18 -05:00
Mike McCandless
a1f5269280
get multi-dim point-in-set testcase working; add explicit tests for 'no points queried' cases; fix last nocommits
2016-02-25 05:21:08 -05:00
Robert Muir
e901c61973
javadocs
2016-02-25 04:34:59 -05:00
Mike McCandless
41a336f1e5
add BinaryPoint.newSetQuery
2016-02-24 17:45:56 -05:00
Mike McCandless
c056f4b388
improve tests; fix a couple nocommits
2016-02-24 16:59:01 -05:00
Mike McCandless
ae70920378
add BigIntegerPoint.newSetQuery; fix Float/DoublePoint to encode/decode correctly
2016-02-24 16:39:13 -05:00
Mike McCandless
1c3d52d6b5
Merge branch 'master' into point_set_query
2016-02-24 15:38:40 -05:00
Mike McCandless
1fb9de8da5
add InetAddressPoint.newSetQuery
2016-02-24 15:38:22 -05:00
Mike McCandless
dc95d5248a
LUCENE-7047: improve Geo3DPoint, core XXXPoint.toString
2016-02-24 11:13:01 -05:00
Mike McCandless
dfbcbf96cd
Merge branch 'master' into point_set_query
...
Conflicts:
lucene/sandbox/src/java/org/apache/lucene/document/LatLonPoint.java
2016-02-24 08:48:48 -05:00
Mike McCandless
30fcafdfd9
add newSetQuery to DoublePoint and FloatPoint
2016-02-24 08:48:10 -05:00
Robert Muir
77e62276f9
LUCENE-7046: Remove PointInRectQuery, instead using 2-D PointRangeQuery for LatLonPoint
2016-02-24 08:31:45 -05:00
Mike McCandless
8abd5a415b
fix test bug: let BKD use enough heap in this test
2016-02-24 07:52:22 -05:00
Mike McCandless
79c8bce1af
add LongPoint.newSetQuery; improve PointInSetQuery.toString
2016-02-24 04:50:37 -05:00
Dawid Weiss
4c9dca8d90
SOLR-8711: follow-up removal of dependencies no longer used. (applying
...
again, with changes to the sources).
This reverts commit 594fb908f6
.
2016-02-24 09:27:06 +01:00
Dawid Weiss
594fb908f6
Revert "SOLR-8711: follow-up removal of dependencies no longer used."
...
This reverts commit a77d67a926
.
2016-02-24 09:08:18 +01:00
Mike McCandless
3f5ed6eb67
address some nocommits; add randomized test for 1D ints
2016-02-23 18:41:03 -05:00
Mike McCandless
01afea60d6
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/lucene-solr
2016-02-23 17:39:15 -05:00
Mike McCandless
e4a196265b
use more than one thread for this test
2016-02-23 17:39:08 -05:00
Mike McCandless
8d88bb7a13
remove debug print
2016-02-23 17:19:11 -05:00
Mike McCandless
8a4c19777e
Merge branch 'master' into point_set_query
...
Conflicts:
lucene/core/src/java/org/apache/lucene/document/IntPoint.java
2016-02-23 17:15:20 -05:00
Mike McCandless
1654818e98
more tests; move factory method to IntPoint
2016-02-23 17:12:50 -05:00
Robert Muir
099e031139
LUCENE-7045: remove all encode/decode hooks from PointRangeQuery
2016-02-23 17:03:55 -05:00
Mike McCandless
96ed42bb13
factor out some private helper classes
2016-02-23 16:48:35 -05:00
Mike McCandless
013abeaa5b
a rough start
2016-02-23 16:34:39 -05:00
Robert Muir
54216c6f65
LUCENE-7043: Add BigIntegerPoint and InetAddressPoint to sandbox.
2016-02-23 07:24:38 -05:00
Dawid Weiss
a77d67a926
SOLR-8711: follow-up removal of dependencies no longer used.
2016-02-23 10:49:23 +01:00
Robert Muir
9ca1a19b81
LUCENE-7042: more cleanup for Point encodings
2016-02-22 19:32:52 -05:00
Robert Muir
54a544b307
LUCENE-7039: Improve PointRangeQuery & co
2016-02-22 15:10:15 -05:00
Robert Muir
dfd95df2f1
fix javadocs typos
2016-02-22 12:28:58 -05:00
Dawid Weiss
ed90697dd2
SOLR-8711: Upgrade Carrot2 clustering dependency to 3.12.0
...
SOLR-8710: Upgrade morfologik-stemming to version 2.1.0
LUCENE-7040: Upgrade morfologik-stemming to version 2.1.0
2016-02-22 18:23:50 +01:00
Mike McCandless
fa602bf635
more test verbosity for exotic OS X only test failure
2016-02-22 05:08:05 -05:00
Uwe Schindler
da28b98920
Update reference to Unicode version of Java 9
2016-02-21 16:55:20 +01:00
Uwe Schindler
3d34728c4b
Prevent warning on empty try-with-resources
2016-02-21 16:40:32 +01:00
Mike McCandless
aef2ff55dd
Include 5.5.0 indices in TestBackwardsCompatibility
2016-02-21 05:33:25 -05:00
Robert Muir
206a2b8b73
clean up javadocs/typos
2016-02-20 10:10:09 -05:00
Uwe Schindler
0f29b3ec7f
LUCENE-6989: Make casting to Runnable interface in cleaner hack easier to understand
2016-02-20 01:05:45 +01:00
Robert Muir
189e985b5c
LUCENE-7037: Switch all exceptions tests to expectThrows()
2016-02-19 12:07:47 -05:00
Mike McCandless
b8f251d8e9
do not create a 5.6.0 version now since 5.5.0 is the last 5.x feature release
2016-02-18 16:45:57 -05:00
Mike McCandless
d8afc3876d
fix static member leak
2016-02-18 10:11:45 -05:00
Mike McCandless
2018122bcf
yet more verbosity for this test that only fails rarely on OS X
2016-02-18 09:27:54 -05:00
Uwe Schindler
fc879d1a5d
LUCENE-7035: Also regenerate analysis/common's UnicodeWhitespaceTokenizer (it actually changes nothing, but updates version numbers)
2016-02-18 08:23:46 +01:00
Robert Muir
b0a43aa1b2
LUCENE-7035: Upgrade icu4j to 56.1/unicode 8.
2016-02-17 20:10:02 -05:00
markrmiller
0bba332549
SOLR-7339: Jetty 9.3 upgrade.
2016-02-16 16:01:10 -05:00
Uwe Schindler
44b58ee4f8
LUCENE-6989: Merge changes
2016-02-16 17:15:27 +01:00
Mike McCandless
7ff31daeb0
use try-w-resources so Directory is closed even on assumption violation
2016-02-15 18:44:07 -05:00
Uwe Schindler
0e9307bb84
LUCENE-6989: Add Javadocs about required permissions to enable MMAP unmapping
2016-02-16 00:08:46 +01:00
Uwe Schindler
7d58232ed2
LUCENE-6989: Forward-port changes entry for 5.5
2016-02-15 21:48:31 +01:00
Uwe Schindler
7b6df2542d
LUCENE-6989: Add preliminary support for MMapDirectory unmapping in Java 9
2016-02-15 19:57:39 +01:00
Mike McCandless
a9dc40294e
fix this test to avoid MockRandomMergePolicy which leads to false failures
2016-02-15 05:17:40 -05:00
Uwe Schindler
19c56f2085
LUCENE-6989: Disable test if mmap unmapping is not working (otherwise will fail with later Java 9), until we committed real fix for LUCENE-6989; remove useless and broken test
2016-02-15 00:18:17 +01:00
Mike McCandless
8bcd41e7cc
absorb the un-released 5.4.2 changes into 5.5.0's section
2016-02-14 08:49:05 -05:00
Uwe Schindler
dd6057e79f
LUCENE-7028: Add changes for 5.5
2016-02-14 00:57:27 +01:00
Uwe Schindler
74421d729b
LUCENE-7028: Remove duplicate method in LegacyNumericUtils
2016-02-14 00:49:21 +01:00
Uwe Schindler
42ae21cb9a
LUCENE-7027: Fixed NumericTermAttribute to not throw IllegalArgumentException after NumericTokenStream was exhausted
2016-02-13 18:02:57 +01:00
Mike McCandless
12b8721a44
Merge branch 'jira/lucene-5438-nrt-replication'
2016-02-11 11:20:18 -05:00
Mike McCandless
84637e99b1
bump version for 5.5.0 release
2016-02-11 04:26:27 -05:00
Mike McCandless
20c38e7b87
mark tests as Nightly
2016-02-11 04:25:38 -05:00
Mike McCandless
3a47dd29bc
remove some core changes; add missing sync that caused stress test failure
2016-02-10 09:09:49 -05:00
nknize
7d8f0127b7
LUCENE-6997: refactor GeoPointField and query classes from lucene.spatial to lucene.spatial.geopoint package
2016-02-09 21:51:48 -06:00
nknize
a928e4b406
LUCENE-7019: add two-phase iteration to GeoPointTermQueryConstantScoreWrapper
2016-02-09 14:19:06 -06:00
Mike McCandless
027bc0e4d6
cleanup stale TODOs; fix precommit
2016-02-09 13:59:05 -05:00
Mike McCandless
5640470593
cleanup some precommit failures
2016-02-09 10:43:36 -05:00
Mike McCandless
88fea23176
turn off debug prints; add lucene.experimental to javadocs
2016-02-09 05:22:16 -05:00
Mike McCandless
c03bb2ecf9
Merge branch 'jira/lucene-5438-nrt-replication' of https://git-wip-us.apache.org/repos/asf/lucene-solr into jira/lucene-5438-nrt-replication
2016-02-08 19:18:25 -05:00
Mike McCandless
e7351d3405
fix test failure when primary is flushing just before crashing
2016-02-08 19:18:22 -05:00
Mike McCandless
f7a56ed6bc
fix compilation
2016-02-08 19:16:33 -05:00
Mike McCandless
ae2b58c03c
indexer threads should stop on shutdown; don't suppress exceptions; decrease random commit frequency
2016-02-08 19:15:17 -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
Adrien Grand
5e6f22b925
LUCENE-7002: Fixed MultiCollector to not throw a NPE if setScorer is called after one of the sub collectors is done collecting.
2016-02-08 16:41:42 +01:00
nknize
dac06176ec
re-enable random term encoding in TestGeoPointQuery
2016-02-07 14:50:26 -06:00
Mike McCandless
f0f42780a9
cutover to 'Directory owns retrying deletes on buggy filesystems, cleaning up a lot of crazy retry logic
2016-02-07 14:46:08 -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
1d4d9c588c
LUCENE-6750: add verbosity when this test fails
2016-02-07 13:35:24 -05:00
Mike McCandless
f8bd22e58c
LUCENE-6835, LUCENE-6684: move the 'suppress NSFE on windows' hack down lower, out of IFD into FSDir; also fix IFD to remove segments files before others
2016-02-07 13:21:39 -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
53597e8f8e
try to fix test bug, so that on Windows instead of relying on WindowsFS to prevent deletion of open files, we rely on the OS itself
2016-02-07 07:04:10 -05:00
Mike McCandless
2a7687641e
add verbosity for this test when it fails
2016-02-07 05:24:19 -05:00
Uwe Schindler
8231bf9cd4
Fix Jaspell license header to not mimic Javadocs (reduces warning)
2016-02-07 00:12:24 +01:00
Uwe Schindler
afe792b57a
Fix ICU-License header to not mimic Javadocs (reduces warning)
2016-02-07 00:08:49 +01: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
0404be94a7
improve exception message
2016-02-06 11:08:07 -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
b1b2c799aa
add more non-stress test cases
2016-02-06 09:04:15 -05:00
Mike McCandless
8e784699f0
Merge branch 'lucene-6835'
...
Retrying file deletion is now the responsibility of Directory.deleteFile, and Directory.listAll now returns all entries in sorted order.
2016-02-06 08:26:15 -05:00
Mike McCandless
5b4c1d963c
fix javadoc errors
2016-02-06 04:47:16 -05:00
nknize
072d44f9e8
refactor GeoPointInPolygonQuery to rewrite using package private delegate
2016-02-06 00:50:51 -06:00
nknize
9f1c4d2a0d
update CHANGES.txt. Cleanup javadoc, still a broken link from package private inherited class
2016-02-05 23:56:19 -06:00
nknize
ae3b388e97
LUCENE-6930: Decouples GeoPointField from NumericType by using a custom GeoPointTokenStream and TermEnum designed for GeoPoint prefix terms
2016-02-05 22:05:49 -06:00
nknize
207f7f92bb
update lucene CHANGES.txt
2016-02-05 13:36:33 -06: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
nknize
665041c52f
LUCENE-6997: refactor sandboxed GeoPointField and query classes to lucene-spatial module
2016-02-05 10:58:39 -06: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
Uwe Schindler
eee6fa0bcf
LUCENE-7013: Fix javadocs by reverting to previous state (script failure possibly)
2016-02-04 20:54:18 +01:00
Mike McCandless
dd6379c05f
make all Directory.listAll's sort, and add BaseDirectoryTestCase; add TODO; suppress VirusCheckingFS for another test
2016-02-04 12:17:46 -05:00
Shai Erera
813ca77250
LUCENE-7013: Move license header to top of file
2016-02-04 15:51:19 +02:00
Shai Erera
e6d629d527
LUCENE-7010: document protected field
2016-02-04 13:49:37 +02:00
Shai Erera
0c4598d5f4
LUCENE-7010: add @param to ctor javadocs
2016-02-04 11:30:47 +02:00
Shai Erera
30455f728b
LUCENE-7010: add MergePolicyWrapper
2016-02-04 09:24:24 +02:00
nknize
62dfc815b0
fix GeoRelationUtils.pointInPolygon to include points that fall on the boundary
2016-02-04 00:43:49 -06: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
82ecccf8e9
Merge branch 'nrt_replicas' of github.com:mikemccand/lucene-solr into nrt_replicas
...
Conflicts:
lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestNRTReplication.java
2016-02-03 16:46:27 -05:00
Mike McCandless
7af83c486b
add nocommit; try to fix false test failure due to concurrent check index running while primary is still closing
2016-02-03 16:45:46 -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
3a889301c7
LUCENE-7011: use try-w-resources
2016-02-03 10:19:26 -05:00
Mike McCandless
72b79308cb
ensureCanWrite is not necessary since we pass TRUNCATE_EXISTING
2016-02-03 05:35:32 -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
a48ba5090b
add time took for each index part during flush, like we do on merge; improve javadocs
2016-02-02 11:07:36 -05:00
Christine Poerschke
274febf021
LUCENE-7008: make TestSortingMergePolicy.testForceMergeNotNeeded a no-op until we figure out why the (super class) test fails.
2016-02-02 15:51:12 +00:00
Michael McCandless
d9f20f53ed
fix compilation errors
2016-02-02 06:16:34 -05:00
Mike McCandless
8889469b8b
reduce some verbosity; fix a silly vInt/int disagreement in the test protocol; reduce indexing rate so translog replay can keep up vs primary crashing itself
2016-02-02 06:09:57 -05:00
Christine Poerschke
ce0b931da8
LUCENE-7006: increase BaseMergePolicyTestCase use (TestNoMergePolicy and TestSortingMergePolicy now extend it, TestUpgradeIndexMergePolicy added)
2016-02-01 17:51:09 +00:00
Christine Poerschke
fce97a6ca6
LUCENE-7005: TieredMergePolicy tweaks (>= vs. >, @see get vs. set)
2016-02-01 17:11:47 +00:00
Mike McCandless
15fed60b05
fix test bug, using different randomness when creating the two IWCs
2016-02-01 05:27:20 -05:00
David Smiley
0fab4ccb96
.gitignore Benchmark: temp/ & work/
2016-02-01 00:18:37 -05:00
Mike McCandless
9332b1602c
also assert PointValues are the same from LTC.assertReaderEquals
2016-01-29 19:09:04 -05:00
Mike McCandless
5d5b082e6d
catch invalide usage of XXXPoint APIs, when dimensions are mismatched
2016-01-29 15:39:06 -05:00
Robert Muir
07c9b2bdad
Use 2d points too in some of these tests (1d has optimized merge, for example)
2016-01-29 11:43:39 -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
Mike McCandless
ff49bd5922
make SimpleTextPointReader heroic about exceptions too
2016-01-29 05:45:54 -05:00
Mike McCandless
c260c9d251
fix test bug
2016-01-29 05:02:32 -05:00
Robert Muir
ae6a971c35
LUCENE-7000: Split BasePointFormatTestCase from TestPointValues
2016-01-29 04:27:27 -05:00
Mike McCandless
0607f007bf
throw IOExc, not RuntimeException wrapping IOExc, if we hit exc while closing IndexReader
2016-01-28 19:10:09 -05:00
Mike McCandless
da5cc3cad5
add CrankyPointFormat
2016-01-28 16:24:27 -05:00
Mike McCandless
5a4bb9f2a1
disable ExtraFS for these tests
2016-01-28 12:17:48 -05:00
Mike McCandless
47fb35c20a
fix false failures from test bugs
2016-01-28 11:30:18 -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
af3a19574e
LUCENE-6998: fix a couple places to better detect truncated index files; improve corruption testing
2016-01-28 05:01:15 -05:00
Mike McCandless
cd82417c35
remove dead, and also scary, methods from geo tests
2016-01-27 09:15:41 -05:00
Robert Muir
283d9bb4b7
fix test bug (boosting stopwords with DFI)
2016-01-27 07:49:21 -05:00
Mike McCandless
022540e8c2
fix more nocommits; add separate test that deleteAll can replicate
2016-01-27 06:00:12 -05:00