Commit Graph

6113 Commits

Author SHA1 Message Date
Shay Banon bc54201cfc Running the node stats api while a shard is moving onto the node logs an exception
fixes #4203
2013-11-19 11:54:32 -08:00
Matt Weber a841a422f6 Add a field data based TermsFilter
Add FieldDataTermsFilter that compares terms out of
the fielddata cache. When filtering on a large
set of terms this filter can be considerably faster
than using a standard lucene terms filter.

Add the "fielddata" execution mode to the
terms filter parser to enable the use of
the new FieldDataTermsFilter.

Add supporting tests and documentation.

Closes #4209
2013-11-19 19:18:16 +01:00
Alexander Reelsen dab841d4ec Revert Ignore slow log configuration on shard creation
This reverts commit 10810f00d4 as this introduces an exception to the rule when parsing settings.
2013-11-19 16:11:59 +01:00
Alexander Reelsen 10810f00d4 Ignore slow log configuration on shard creation
In case of a misconfigured slow search/index configuration (unparseable
TimeValue) an exception is thrown.

This is not a problem when creating a shard of an index, as an exception
is returned and all is good. However, this is a huge problem, when
starting up a node, as the shard creation is repeated endlessly.

This patch changes the behaviour to go on as usual and just disable the
slowlog, as an improper configuration of logging should not affect the
allocation behaviour.

Closes #2730
2013-11-19 15:35:50 +01:00
Alexander Reelsen 88b854e2ea Making SearchRequest in PutWarmerRequest mandatory & validated
The search request inside of a put warmer request was nullable, but actually we have to have that request in the transport action.
Validation and appropriate test added.

Closes #4196
2013-11-19 15:02:08 +01:00
Alexander Reelsen 513611bd48 DateFieldMapper.merge() can change date format and include_in_all
In order to be able to add an additional date to a date field mapper,
the merge operation has to support this.

Closes #3727
2013-11-19 14:33:41 +01:00
Martijn van Groningen 244e78fbfb Fixed small test bug. 2013-11-19 11:26:45 +01:00
Lee Hinman c96cb99cef Move ?pretty=false handling to the builder instead of mutating the map 2013-11-18 16:03:36 -07:00
Matt Weber 9c15b86b89 Update FilterBuilder and QueryBuilder interfaces
Make the FilterBuilder interface consistent with the QueryBuilder
interface and replace usage of QueryBuilderException with
ElasticSearchIllegalArgumentException.
2013-11-18 20:22:54 +01:00
Benjamin Devèze 00be285c26 Handle pretty=false and missing line feed for pretty=true which is the default for main REST action 2013-11-18 07:39:15 -07:00
Martijn van Groningen 59f1ce5ada Added test for PR #4157 (deep pagination in a small index) 2013-11-18 12:58:55 +01:00
Mark Elliot 5e164a85ed Size docIdsToLoad appropriately in SearchService
Closes #4156
2013-11-18 12:40:13 +01:00
Alexander Reelsen 5e835f0071 Added test for Update API via native scripts
Motivation was to have a test ready as well as something other people could have a look at.
2013-11-18 11:42:29 +01:00
Luca Cavanna 38d895bf1a Added catch EsRejectedExecutionException when trying to reschedule river start 2013-11-18 10:40:09 +01:00
Simon Willnauer 5b1820b723 Don't take static memory of test base classes into account when checking for static leftovers. 2013-11-18 10:26:08 +01:00
Matt Weber 55300f3a3f Update BloomFilter
Allow the user to configure the number of hash functions as well as add
support for serializing/deserializing the bloom filter from a stream.
Add a hashCode to the bloom filter.
2013-11-18 09:46:04 +01:00
Igor Motov 2c1714d4b2 Re-enable snapshot/restore tests that were failing on windows 2013-11-15 13:05:46 -05:00
Britta Weber faf2380605 Allow native scripts to set the value of a script field to primitive arrays
Script fields could not be set to int[] and float[] by native
scripts because StreamInput and StreamOutput could not handle
them.

closes #4175
2013-11-15 18:58:12 +01:00
Andrew Raines 8fabeb1c0b First pass at cat docs. 2013-11-14 21:37:02 -05:00
Andrew Raines c65dcd6dc8 Add load average to _cat/nodes. 2013-11-14 20:13:57 -05:00
Andrew Raines 7a348cd2d8 Add _cat/help (halp!) 2013-11-14 20:13:55 -05:00
Andrew Raines 72d052f753 Add full_id param to support displaying entire node ID. 2013-11-14 20:10:41 -05:00
Andrew Raines 2b8bf07bd3 Drop the heap and RAM used from _cat/nodes and add the RAM percentage.
In this view you never care about the actual heap used bytes; you only
want to know that your max is set to what you meant and what
percentage you're currently using.

Closes #4151.
2013-11-14 20:10:40 -05:00
Andrew Raines 5c085c1204 Fix misspellings. 2013-11-14 20:10:36 -05:00
Igor Motov c63701c5c7 Improve snapshot/restore test speed 2013-11-14 19:05:13 -05:00
Luca Cavanna b2ad34cf99 Refactored indices aliases api to make use of the new recently introduced generic ack mechanism
Closes #4114
2013-11-14 22:59:17 +01:00
Shay Banon 3b30192c8f fix failed compilation under jdk 6 2013-11-14 22:48:11 +01:00
Igor Motov 499cff3b1e Fix possible NPE in snapshot/restore during node shutdown 2013-11-14 13:22:55 -05:00
Luca Cavanna 6945f294e7 Added support for _name parameter in indices filter
Closes #4166
2013-11-14 18:43:08 +01:00
Luca Cavanna 4670a2e514 Trimmed down MatchedQueriesTests 2013-11-14 18:37:55 +01:00
Luca Cavanna 0aaa39d00a Minor improvements to indices filter and query & updated docs
Slightly simplified indices filter and query parsers code
Trimmed down tests where possible
2013-11-14 17:25:34 +01:00
Olivier Favre fa80ca97b2 Indices query/filter skip parsing altogether for irrelevant indices when possible
Closes #2416
2013-11-14 17:24:49 +01:00
Alexander Reelsen c8020760d7 multi_match query supports fields as single string and array
The multi_match query accepted only an array in the fields parameter. This patch allows to use a single string as well.

Also added tests for parsing in both cases.

Closes #4164
2013-11-14 15:54:03 +01:00
Shay Banon 826b8bd742 move bloom filter class to a more common package 2013-11-14 15:37:01 +01:00
Simon Willnauer c48c8fd974 Include inner classes in the test package as well 2013-11-14 13:49:37 +01:00
Shay Banon f8afa4d67b remove deprecated method usage with jackson 2013-11-14 13:15:26 +01:00
Igor Motov 3c0cc22d36 Fix possible race condition during snapshot deletion 2013-11-13 23:21:17 -05:00
Igor Motov 0a7c6c9288 Fix file handle leak in URLBlobContainer 2013-11-13 23:21:16 -05:00
Boaz Leskes c324251fc2 Make SimpleNodeSampler populate the list of connected nodes using the information returned from the cluster
This is to allow people to introspect things like data settings and attributes. Also makes it consistent with the sniff sampler.

Closes #4162
2013-11-13 17:26:24 +01:00
Simon Willnauer ba61bbb31b Move [0.90.7] to a release 2013-11-13 15:53:57 +01:00
Simon Willnauer 098cbef6d0 use dedicated release log in order to build lucene & es releases in parallel 2013-11-13 12:41:23 +01:00
Martijn van Groningen 8e0291823a Fixed bug in bool filter where it doesn't emit docs as hits while they are hits.
There is an optimization that executes bit based (slow) filters in the end. Matched docs could be unset if they didn't match with any of these filters. The bug was that also iterator based (fast) filters should be checked.
This change checks all should filters in the end part (if must or must_not clauses exists), so it can now correctly unset matched docs. The current bool filters requires that at least one should clause must match for docs to be match regardless of any other clauses.

Closes #4130
2013-11-13 11:54:48 +01:00
Igor Motov c3e53f3889 Make mock repository blocking tests more deterministic and reproducible 2013-11-12 13:34:14 -05:00
Simon Willnauer 904c0abb3e Add random filter that compares XBooleanFilter with BooleanQuery while respective the min_should_match = 1 that the filter applies 2013-11-12 18:30:46 +01:00
Simon Willnauer 1e06c76467 Release semaphore if client call throws and exception
Closes #4153
2013-11-12 15:05:42 +01:00
Simon Willnauer 16ee742682 Cleanup test framework in order to release it as a jar file
This commit adds javadocs and removed unused methods from central
classes like ElasticsearchIntegrationTest. It also changes visibility
of many methods and classes that are only needed inside the test infrastructure.
2013-11-12 11:54:55 +01:00
Antoine Rey 2afdb4c8e7 [Javadoc] Fix copy/paste comment on YAML type 2013-11-12 10:19:41 +01:00
Igor Motov f9b43a9efa Failure in onComplete method of AbstractFsBlobContainer#readBlob should trigger onFailure 2013-11-11 20:57:50 -05:00
Igor Motov ab52ab48dd Randomize the number of snapshots in deleteSnapshotTest 2013-11-11 14:42:43 -05:00
Igor Motov e32f16b789 Fix file handle leak in readBlob method of AbstractFsBlobContainer 2013-11-11 14:41:53 -05:00