22848 Commits

Author SHA1 Message Date
Uwe Schindler
4293030fd9 painless: Remove stale comment and remove declared exception 2016-06-16 11:46:11 +02:00
Jim Ferenczi
ad232aebbe Set collection mode to breadth_first in the terms aggregation when the cardinality of the field is unknown or smaller than the requested size.
closes #9825
2016-06-16 11:33:40 +02:00
Uwe Schindler
f2d6219426 painless: remove useless dropArguments and throws statement in megamorphic cache; add tests 2016-06-16 11:08:10 +02:00
Christoph Büscher
01004c72ba Improve TimeZoneRoundingTests error messages
Currently the error messages for failing tests in the TimeZoneRoundingTests test
suite are hard to read because they usually report the actual end expected date
in milliseconds utc (e.g. "Expected: <1414270860000L> but: was <1414270800000L>".
This makes failing tests hard to read.

This change introduces a new Matcher that can be used for equality checks for
long dates but reports the error both as a formated date string according to
some time zone and also as the actual long values, so you get messages like
"Expected: 2014-10-26T00:01:00.000+03:00 [1414270860000] but:  was
"2014-10-26T00:00:00.000+03:00 [1414270800000]".

Also clean cleaning up some helper methods and generally simplifying a few test
cases. Otherwise this change shouldn't affect either the scope of the test or
anything about the rounding implementation itself.
2016-06-16 10:10:04 +02:00
Adrien Grand
9ffb2ff6ba Expose half-floats. #18887
They have been implemented in https://issues.apache.org/jira/browse/LUCENE-7289.
Ranges are implemented so that the accuracy loss only occurs at index time,
which means that if you are searching for values between A and B, the query will
match exactly all documents whose value rounded to the closest half-float point
is between A and B.
2016-06-16 09:46:39 +02:00
Simon Willnauer
18ff051ad5 Simplify ScriptModule and script registration (#18903)
Registering a script engine or native scripts still uses Guice today
and is much more complicated than needed. This change moves to a pull
based model where script plugins have to implement a dedicated interface
`ScriptPlugin` and defines simple getter returning instances rather than
classes.
2016-06-16 09:35:13 +02:00
Alexander Lin
7d42e7e716 Closes #18013. Added status field to _msearch response bodies. 2016-06-16 00:25:17 -07:00
Daniel Mitterdorfer
edf010f878 Force single-node cluster in NettyHttpRequestSizeLimitIT 2016-06-16 07:30:55 +02:00
Robert Muir
ec7215e5f2 get non-capturing lambdas working 2016-06-16 01:25:43 -04:00
David Pilato
abfde4d33e Merge pull request #18909 from philipskokoh/master
TransportClient instead of Client in the code snippet at Transport Client documentation
2016-06-16 05:52:58 +02:00
David Pilato
b036d238f5 Fix typo 2016-06-16 05:51:39 +02:00
Philips Kokoh
cc465a38bf TransportClient instead of Client in the code 2016-06-16 11:32:49 +08:00
Robert Muir
f7b7204721 Merge pull request #18907 from rmuir/fix_horrible_capture
Fix horrible capture
2016-06-15 20:54:15 -04:00
Robert Muir
60176afdde clean up a bit more 2016-06-15 20:30:16 -04:00
Ryan Ernst
a4503c2aed Plugins: Remove name() and description() from api
In 2.0 we added plugin descriptors which require defining a name and
description for the plugin. However, we still have name() and
description() which must be overriden from the Plugin class. This still
exists for classpath plugins. But classpath plugins are mainly for
tests, and even then, referring to classpath plugins with their class is
a better idea. This change removes name() and description(), replacing
the name for classpath plugins with the full class name.
2016-06-15 17:12:22 -07:00
Ryan Ernst
7f6e0c6c02 fix compile for ingest plugin lambda 2016-06-15 16:57:01 -07:00
Robert Muir
54797b7d09 don't let megamorphic cache "capture" arbitrary arguments.
pass the shit we need as bootstrap params
2016-06-15 19:33:59 -04:00
Nik Everett
dc2d7a2a6d Test: wait for task to start before waiting for it to finish (#18902) 2016-06-15 18:42:48 -04:00
Jason Tedor
8caaf9ad11 Fix thread pool docs regarding dynamic settings
Thread pool settings are no longer dynamically updatable since
da74323141a69bd06fc19a70bc072143e9f0e986. This commit removes a leftover
note from the thread pool module docs that incorrectly states that
thread pool settings are dynamically updatable.
2016-06-15 18:25:25 -04:00
Tal Levy
a26260fb72 new ScriptProcessor for Ingest (#18193)
add new ScriptProcessor for executing ES Scripts within pipelines
2016-06-15 14:57:18 -07:00
Robert Muir
154d750e4b Merge pull request #18899 from rmuir/more_def_cleanup
fix bugs in operators and more improvements for the dynamic case
2016-06-15 17:06:46 -04:00
Daniel Mitterdorfer
889d802115 Refine wording in benchmark README and correct typos 2016-06-15 23:01:56 +02:00
Areek Zillur
7e678443d3 Merge pull request #18802 from areek/enhancement/shrink_request_parser
Add Shrink request source parser to parse create index request body
2016-06-15 17:53:43 -03:00
Daniel Mitterdorfer
32dd813436 Fix typo in benchmark README 2016-06-15 22:45:47 +02:00
Uwe Schindler
ae6ce1c42e Small refactoring and cleanup to separate the polymorphic and megamorphic case 2016-06-15 22:27:30 +02:00
Areek Zillur
1a59a8418a Merge branch 'master' into enhancement/shrink_request_parser 2016-06-15 15:49:40 -04:00
Uwe Schindler
6e83f41e94 Merge branch 'more_def_cleanup' of https://github.com/rmuir/elasticsearch into more_def_cleanup 2016-06-15 21:47:28 +02:00
Uwe Schindler
5b11b15300 fix typo 2016-06-15 21:46:58 +02:00
Nik Everett
ab2a4a0d72 Fix exception on task not found
Silly protected method....
2016-06-15 15:29:42 -04:00
Nik Everett
8cc848f31c Allow FieldStatsRequest to disable cache 2016-06-15 15:10:46 -04:00
Alexander Kazakov
2fc328e10a Docs: Fix typo in RestIT 2016-06-15 15:06:50 -04:00
Areek Zillur
eb9b4437b2 update docs 2016-06-15 14:57:17 -04:00
Ryan Ernst
8de90a66a1 Relax plugin id url heuristic, since java uses single slash instead of double 2016-06-15 11:43:38 -07:00
Robert Muir
786c3b0fa8 speed up compound assignments 2016-06-15 14:38:37 -04:00
Robert Muir
a4036b8069 add compound assignment tests 2016-06-15 14:02:19 -04:00
Uwe Schindler
949e99bde3 Merge branch 'more_def_cleanup' of https://github.com/rmuir/elasticsearch into more_def_cleanup 2016-06-15 19:48:53 +02:00
Uwe Schindler
8d3c411298 Remove unneeded type adaption and add error message on violation 2016-06-15 19:48:38 +02:00
Robert Muir
e3f34730ae and compound assignment 2016-06-15 13:37:10 -04:00
Robert Muir
27f8b6e6db get compound assignment working 2016-06-15 13:30:21 -04:00
Uwe Schindler
ca2e0e1660 Some small cleanups around the lookup 2016-06-15 19:07:13 +02:00
Uwe Schindler
767bb49da8 Fix bug with first param (receiver) on the cache lookup 2016-06-15 19:00:22 +02:00
Ryan Ernst
9c65bd4ac4 Merge pull request #18876 from rjernst/plugin_install_unknown
Emit nicer error message when trying to install unknown plugin
2016-06-15 09:56:43 -07:00
Uwe Schindler
283410b7ac Merge branch 'more_def_cleanup' of https://github.com/rmuir/elasticsearch into more_def_cleanup 2016-06-15 18:37:07 +02:00
Uwe Schindler
04ab42cdf5 Use rethrow puzzler in the ClassValue 2016-06-15 18:36:45 +02:00
Robert Muir
d4db8c9c82 some cleanup 2016-06-15 12:32:38 -04:00
Uwe Schindler
6487940a79 Move type changes up to static part 2016-06-15 18:26:11 +02:00
Uwe Schindler
a473298f44 Add megamorphic cache 2016-06-15 18:21:42 +02:00
Daniel Mitterdorfer
cca4529b1c Mute NHRSLIT while investigating 2016-06-15 18:02:31 +02:00
Daniel Mitterdorfer
d56e4bc7b1 Remove obsolete benchmarks / comments 2016-06-15 16:54:54 +02:00
Daniel Mitterdorfer
2c467fd9c2 Add microbenchmarking infrastructure (#18891)
With this commit we add a benchmarks project that contains the necessary build
infrastructure and an example benchmark. It is added as a separate project to avoid
interfering with the regular build too much (especially sanity checks) and to keep
the microbenchmarks isolated.

Microbenchmarks are generated with `gradle :benchmarks:jmhJar` and can be run with
` gradle :benchmarks:jmh`.

We intentionally do not use the
[jmh-gradle-plugin](https://github.com/melix/jmh-gradle-plugin) as it causes all
sorts of problems (dependencies are not properly excluded, not all JMH parameters
can be set) and it adds another abstraction layer that is not needed.

Closes #18242
2016-06-15 16:48:02 +02:00