Commit Graph

32041 Commits

Author SHA1 Message Date
Chris Hostetter 12495ac26c Harden StreamDecoratorTest
remove flakey dependency on sleep (to wait for cache expiration) w/explicit instruction to ignore cache

sleep is not garunteed to sleep the exact amount (based on limitations of the system clock)

(cherry picked from commit 24b94b8dac)
2019-07-18 19:40:47 -07:00
Christine Poerschke eb75a60857 SOLR-13585: Factor out SearchGroupsResultTransformer.[de]serializeOneSearchGroup methods. (Christine Poerschke, Diego Ceccarelli) 2019-07-18 14:37:10 +01:00
Alan Woodward ee09208293 LUCENE-8918: Disallow null terms in PhraseQuery 2019-07-18 11:14:48 +01:00
Munendra S N 241c44a82d SOLR-13206: Fix AIOOBE when group.facet is specified with group.query
group.facet is supported only for group.field. When group.facet is
used with group.query, then return proper error code
2019-07-18 11:10:08 +05:30
iverase 6f2ff2157d LUCENE-8913: Fix test bug in BaseLatLonShapeTestCase#testBoxQueryEqualsAndHashcode 2019-07-18 07:21:35 +02:00
Munendra S N d23da5a951 LUCENE-8909: deprecate IndexWriter#getFieldNames() 2019-07-18 10:19:07 +05:30
Munendra S N 6899e0520e SOLR-13634:move ResponseBuilderTest to same package as ResponseBuilder 2019-07-17 22:53:08 +05:30
Munendra S N 4c11633c03 SOLR-12368: inplace update for field that doesn't yet exist in any doc
If the field is non-stored, non-indexed and docvalue enabled numeric field
then inplace update can be done. previously, lucene didn't support
docvalue update for field that is not yet present in indexWriter but
LUCENE-8316 added support for this.
This adds support to update field which satisfies inplace conditions
but which doesn't yet exist in any docs
2019-07-17 21:48:11 +05:30
Ignacio Vera 568dedab6d LUCENE-8914: Move compare logic to IntersectVisitor in FloatPointNearestNeighbor (#783)
Move the logic for discarding inner modes to the IntersectVisitor so we take advantage of the change introduced in LUCENE-7862
2019-07-17 14:15:21 +02:00
Chris Hostetter 4ccef38d48 SOLR-13534: Fix test
Remove buggy 'port roulette' code that can easily fail if OS gives the selected port to a different process just before creating the server

Use jetty's built in support for listining on an OS selected port instead

Also increase timeouts to better account for slow/heavily loaded (ie:jenkins) VMs where SolrCore reloading may take longer then 10 seconds

(cherry picked from commit 19c78ddf98)
2019-07-16 14:34:55 -07:00
Tomoko Uchida b5e8dc3af4
LUCENE-8911: Backport LUCENE-8778 (improved analysis SPI name handling) to 8.x (#782)
This also keeps old names for backwards compatibility on 8.x
2019-07-16 18:22:50 +09:00
noble 2f3451c3b6 SOLR-13534: Make the test more robust 2019-07-16 11:54:12 +10:00
Gus Heck 081e2ef2c0 SOLR-13375 2 dimensional routed aliases 2019-07-15 11:11:24 -04:00
Atri Sharma a94093102e LUCENE-8810: Honor MaxClausesCount in BooleanQuery (#787)
During Flattening, BooleanQuery will always try to flatten
nested clauses during rewrite. However, this can cause the
maximum number of clauses to be violated by the new query.
This commit disables flattening in the specific case.
2019-07-15 15:34:27 +02:00
Adrien Grand 2885a11578 LUCENE-8811: Revert on 8.x. 2019-07-15 13:52:43 +02:00
Ishan Chattopadhyaya ee4495f33b SOLR-13619: Kerberos plugin to forward original user principal 2019-07-15 15:13:13 +05:30
Ishan Chattopadhyaya a7a3fab8c8 SOLR-13472: Forwarded requests should skip authorization on receiving nodes 2019-07-15 15:13:04 +05:30
Tomoko Uchida 6504babebd Update solr/CHANGES.txt for SOLR-13588 and SOLR-13602. 2019-07-14 14:52:42 +09:00
Chris Hostetter d91900a4a2 Harden DeleteReplicaTest
* tighten assertions related to type of watcher that should be removed

* use waitForActiveCollection before deleting collections to work around SOLR-13616 and/or SOLR-13627

(cherry picked from commit 7ddba3b712)
2019-07-13 08:03:47 -07:00
Chris Hostetter 4f2d7c2ecd SOLR-13532: Fix http timeout and error logging bugs in RecoveryStrategy
(cherry picked from commit f85a78c441)
2019-07-11 14:05:16 -07:00
Tomoko Uchida 59c7eb92cf LUCENE-8907: Revert LUCENE-8778 and succeeding commits. 2019-07-11 23:19:13 +09:00
iverase 51f4340796 Add next minor version 8.3.0 2019-07-11 12:47:34 +02:00
Christine Poerschke 72d38364f1 Fix couple of solr-ref-guide typos. 2019-07-11 11:30:28 +01:00
David Smiley fb2c513a4c CHANGES.txt: separate improvements to dedicated section 2019-07-10 22:47:57 -04:00
Chris Hostetter 81b2e06ffe Harden TestPolicyCloud
- ensure all collections/replicas are active

- tighten assertions around expected replica locations

- eliminate some redundent code

These changes should also help ensure we don't get (more) spurious failures due to SOLR-13616

(cherry picked from commit 8a277cab7d)
2019-07-10 17:17:28 -07:00
Atri Sharma 7339eb272c LUCENE-8875: Introduce Optimized Collector For Large Number Of Hits (#754)
This commit introduces a new collector which is optimized for
cases when the number of hits is large and/or the actual hits
collected are sparse in comparison to the number of hits
requested.
2019-07-10 19:26:49 +02:00
Adrien Grand daa6aba029 Ensure tokens have at least 2 chars, otherwise norms are incorrect. 2019-07-10 09:09:07 +02:00
Munendra S N 0752c07c1c SOLR-11263: add test for payload func with undefined field
Payload func with undefined used to throw NPE. In SOLR-11610, this
was fixed to return proper error but there are no tests to verify
changed the behavior.
This add simple test to verify error code and error message
2019-07-10 10:42:56 +05:30
Nicholas Knize 860e0be537 LUCENE-8632: Fix EdgeTree.internalComponentRelateTriangle to pass correct line segment vertices 2019-07-09 13:51:29 -05:00
Adrien Grand a80b5164d1 LUCENE-8311: Add CHANGES entry. 2019-07-09 17:05:47 +02:00
Adrien Grand aad4b411cd LUCENE-8900: Simplify MultiSorter. 2019-07-09 16:20:29 +02:00
Adrien Grand d271770ed1 LUCENE-8311: Phrase impacts (#760) 2019-07-09 16:10:34 +02:00
Christine Poerschke 439d43056c Fix two 'against' typos. 2019-07-09 11:14:59 +01:00
Christine Poerschke 198cf0861d LUCENE-8766: fix in[di]vidually typo in package-info.java 2019-07-09 11:14:58 +01:00
Nicholas Knize 81c88e2df3 LUCENE-8632: New XYShape Field and Queries for indexing and searching general cartesian geometries
The LatLonShape field and LatLonShape query classes added the ability to index and search geospatial
geometries in the WGS-84 latitude, longitude coordinate reference system. The foundation for this
capability is provided by the Tessellator that converts an array of vertices describing a Point Line
or Polygon into a stream of 3 vertex triangles that are encoded as a seven dimension point and
indexed using the BKD POINT structure. A nice property of the Tessellator is that lat, lon
restrictions are artificial and really only bound by the API.

This commit builds on top of / abstracts the Tessellator LatLonShape and LatLonShapeQuery classes to
provide the ability to index & search general cartesian (non WGS84 lat,lon restricted) geometry.
It does so by introducing two new base classes: ShapeField and ShapeQuery that provide the indexing
and search foundation for LatLonShape and the LatLonShape derived query classes
(LatLonShapeBoundingBoxQuery, LatLonShapeLineQuery, LatLonShapePolygonQuery) and introducing a new
XYShape factory class along with XYShape derived query classes (XYShapeBoundingBoxQuery,
XYShapeLineQuery, XYShapePolygonQuery). The heart of the cartesian indexing is achieved through
XYShapeEncodingUtils that converts the double precision vertices into an integer encoded seven
dimension point (similar to LatLonShape).

The test framework is also further abstracted and extended to provide a full test suite for the
new XYShape capability that works the same way as the LatLonShape test suite (but applied to non
GIS geometries).
2019-07-08 15:19:03 -05:00
Chris Hostetter 4fd1850d2e SOLR-13599: additional 'checkpoint' logging to try and help diagnose strange failures
(cherry picked from commit b4a602f6b2)
2019-07-08 08:42:07 -07:00
Adrien Grand a329953429 LUCENE-8803: Change the way that reverse ordering is implemented.
This addresses some test failures when IndexSearcher is created with an executor
and merges hits with TopDocs#merge.
2019-07-08 10:25:48 +02:00
Anshum Gupta 5d3a84fcd0
SOLR-13507: Remove support for addr parameter from the /solr/admin/zookeeper endpoint. (#759) (#766) 2019-07-05 10:15:13 -07:00
Andrzej Bialecki e616ed49a6 SOLR-13583: Return 400 Bad Request instead of 500 Server Error when a complex
alias is found but a simple alias was expected.
2019-07-05 09:22:00 +02:00
Adrien Grand a0a1604352 LUCENE-8803: Ensure doc ID order is preserved in tests. 2019-07-05 09:12:50 +02:00
Noble Paul cb1b86b80a SOLR-13538: toNativeType () TrieDate & EnumField do not handle CharSequence properly 2019-07-05 14:50:13 +10:00
S N Munendra 7ce347c573 SOLR-13538: Fix classcastEx in TrieDateField for atomic updates (#764)
SOLR-13538: toNativeType () TrieDate & EnumField do not handle CharSequence properly
2019-07-05 14:49:59 +10:00
Jan Høydahl 07cb7cf593 LUCENE-8852: Fix wording and git commit msg
(cherry picked from commit 36af839eb1)
2019-07-04 19:05:10 +02:00
Ignacio Vera ef64f7af3e LUCENE-8888: Improve distribution of points with data dimensions in BKD tree leaves (#747) 2019-07-04 11:17:14 +02:00
Michael Sokolov 792871c480 LUCENE-8895: deprecate the other util.fst.Util.getByOutput override, too 2019-07-03 21:34:44 -04:00
Andrzej Bialecki bf1d14539c SOLR-13003: Fix WrapperModel method delegation. 2019-07-03 20:18:27 +02:00
Andrzej Bialecki 9d52e5be3b SOLR-13003: Query Result Cache does not honour maxRamBytes parameter. 2019-07-03 18:27:21 +02:00
Tomoko Uchida a471ece05b SOLR-13602: Update _default schema for unittests. 2019-07-04 00:10:30 +09:00
Munendra S N fd93b43cf9 SOLR-13603: remove deprecated groupSpec methods usage
This is precursor to removing deprecated methods
2019-07-03 19:34:11 +05:30
Tomoko Uchida d586c44a33 SOLR-13588: Document Estonian analyzer in Solr Ref Guide 2019-07-03 22:04:47 +09:00