javanna
108f5c5701
Count Request: minScore can be null, its getter should be Float rather than float
2015-10-06 16:16:57 +02:00
javanna
c2fc65352a
[TEST] move variable assignment one line above
2015-10-06 16:00:06 +02:00
javanna
fcc60609ae
Count api: simplify default handling
...
For minScore and terminateAfter we can just rely on defaults set to SearchSourceBuilder.
2015-10-06 15:55:34 +02:00
Colin Goodheart-Smithe
10a559348b
more fixes for tests
2015-10-06 14:50:48 +01:00
javanna
86be9db7b9
Fix some RequestBuilder#toString that produced broken json
...
Also restored a couple of old tests around search and count request builder that used to get wiped when calling toString.
2015-10-06 15:46:11 +02:00
Colin Goodheart-Smithe
669a5893bb
fixed some NORELEASE comments in tests
2015-10-06 14:36:50 +01:00
javanna
80d236e1a0
Revert "Count api: simplify default handling and toString representation"
...
This reverts commit ef286ce972
.
2015-10-06 14:57:34 +02:00
javanna
ef286ce972
Count api: simplify default handling and toString representation
...
For minScore and terminateAfter we can just rely on defaults set to SearchSourceBuilder. Also simplified toString representation of CountRequestBuilder
2015-10-06 14:41:03 +02:00
javanna
f39e23b40e
pass in QuerySourceBuilder directly to ValidateQueryRequest
2015-10-06 14:39:35 +02:00
javanna
f89de33548
Merge branch 'master' into feature/search-request-refactoring
2015-10-06 14:28:31 +02:00
David Pilato
7b431ecc16
Fix cross links
...
Related to #13602
(cherry picked from commit ff4cdab)
(cherry picked from commit 8b46a4b)
2015-10-06 12:18:32 +02:00
Martijn Laarman
a0fa83e3df
Merge pull request #13678 from elastic/fix/cluster-health-api
...
In cluster health REST spec, {index} can be one or many indices and should be typed to list.
2015-10-06 11:28:47 +02:00
Martijn Laarman
47871eb854
Merge pull request #13711 from elastic/fix/api-delete-search-template
...
id route value is required
2015-10-06 11:28:35 +02:00
Martijn Laarman
c12cb0b60a
Merge pull request #13889 from elastic/fix/indices-get-template-restspec
...
indices get template accepts a list of names
2015-10-06 11:28:13 +02:00
Martijn Laarman
536ee2b5eb
Merge pull request #13900 from elastic/fix/indices-open-restspec
...
indices.open takes a list of indices
2015-10-06 11:27:52 +02:00
Martijn Laarman
fd6652f59f
Merge pull request #13901 from elastic/fix/indices-close-restspec
...
indices.close takes a list of indices
2015-10-06 11:27:12 +02:00
Martijn Laarman
e4049ccd8e
Merge pull request #13902 from elastic/fix/get-field-mapping-restspec
...
Get field mapping documented fields as field
2015-10-06 11:26:46 +02:00
David Pilato
685c1f4a54
[discovery-ec2] network.host must be set
...
With 2.0, we now bind to `localhost` by default instead of binding to the network card and use its IP address.
When the discovery plugin gets from AWS API the list of nodes that should form the cluster, this list is pinged then. But as each node is bound to `localhost`, ping does not get an answer and the node elects itself as the master node.
`network.host` must be set.
Closes #13589 .
2015-10-06 11:18:47 +02:00
Adrien Grand
ea0c35046b
Merge pull request #13958 from jpountz/remove/ScriptEngineService_unwrap
...
Remove ScriptEngineService.unwrap.
2015-10-06 10:40:40 +02:00
Adrien Grand
bc98895d18
Remove ScriptEngineService.unwrap.
...
The ability to unwrap script values is already exposed via ExecutableScript.unwrap.
2015-10-06 10:30:15 +02:00
javanna
d618a602ab
[TEST] Simplify SearchQueryIT#testMinScore
...
This test used indexRandom to index 4 documents. indexRandom introduces also bogus documents which were getting on the way now that we use fieldValueFactor instead of a script to determine the script of the documents. Taken out indexRandom to simplify things and make the tests more predictable.
2015-10-06 10:17:59 +02:00
javanna
2fd1cde35e
[TEST] move back some test from groovy plugin to core
...
Relates to #13837
Closes #13945
2015-10-06 09:19:54 +02:00
Honza Král
f2fa279af1
[test] remove index= from catch: /regex/ in date math tests
...
This breaks on some clients and is not required for the actual test
2015-10-05 20:52:52 +02:00
Simon Willnauer
3ab3938501
Merge pull request #13944 from s1monw/simplify_index_modules
...
Remove unneeded Module abstractions
2015-10-05 17:43:20 +02:00
Simon Willnauer
fce55a15b8
Remove unneeded Module abstractions
...
These abstractions don't really do anything nor can they be extended.
We can just fold them into IndexModule for now. There are more but they
are tricky due to some test dependencies which I need to resolve first.
2015-10-05 17:33:03 +02:00
Robert Muir
4ad1bf0716
Merge pull request #13924 from rmuir/ireallyhatescripts
...
lock down javascript and python script engines better
2015-10-05 11:29:26 -04:00
Colin Goodheart-Smithe
a3a2432ebd
Merge branch 'master' into feature/search-request-refactoring
2015-10-05 14:43:04 +01:00
Colin Goodheart-Smithe
9b1d1b239c
fixes
2015-10-05 14:31:45 +01:00
Colin Goodheart-Smithe
ec93531303
fixes
2015-10-05 14:28:25 +01:00
Colin Goodheart-Smithe
7055a05e6e
test fixes
2015-10-05 14:19:26 +01:00
Colin Goodheart-Smithe
d59e959c80
rename RestActions.parseQuerySource() to RestActions.urlParamsToQueryBuilder()
2015-10-05 14:11:59 +01:00
javanna
e8653f5156
Java api: IdsQueryBuilder to accept only non null ids and types
...
Types are still optional, but if you do provide them, they can't be null. Split the existing constructor that accepted nnull into two, one that accepts no arguments, and another one that accepts the types argument, which must be not null.
Also trimmed down different ways of setting ids, some were misleading as they would always add the ids to the existing ones and not set them, the add prefix makes that clear. Left `addIds` method that accepts a varargs argument. Added check for ids not be null.
2015-10-05 15:10:30 +02:00
Colin Goodheart-Smithe
81491843f1
test fixes
2015-10-05 14:10:16 +01:00
javanna
3a0d1841d9
Query refactoring: simplify IndexQueryParserService parse methods and prepare the field for #13859
...
Relates to #13859
2015-10-05 14:50:15 +02:00
Colin Goodheart-Smithe
e8ef63cc00
compile fix
2015-10-05 13:43:34 +01:00
Colin Goodheart-Smithe
ec51e8e31d
Merge branch 'master' into feature/search-request-refactoring
2015-10-05 13:31:52 +01:00
Colin Goodheart-Smithe
7fbd565c5c
review comment fixes
2015-10-05 13:27:14 +01:00
Simon Willnauer
e8d74bb9d9
Merge pull request #13881 from s1monw/astalavista_baby
...
Remove shard-level injector
2015-10-05 14:26:38 +02:00
Simon Willnauer
efdecfa161
[TEST] Add tests to ensure that Get uses wrapped searcher / reader
2015-10-05 14:23:55 +02:00
Simon Willnauer
4676eb19a4
add tests for IndexSearcherWrapper
2015-10-05 14:07:18 +02:00
Simon Willnauer
623a519988
also wrap searcher when it's used for Get calls
2015-10-05 14:07:18 +02:00
Simon Willnauer
674a9851cf
rename fooSafe into getFoo and getFooOrNull
2015-10-05 14:07:17 +02:00
Simon Willnauer
e94f242456
more index level cleanups
2015-10-05 14:07:17 +02:00
Simon Willnauer
d6b1f4ce6c
Make Percolator a first class citizen in IndexShard and prevent premature index searcher access
2015-10-05 14:07:17 +02:00
Simon Willnauer
a892a35f40
Hide engine entirely in IndexShard and do searcher wrapping only on top of the engine
2015-10-05 14:07:17 +02:00
Simon Willnauer
d2e3e8cc7b
more cleanups
2015-10-05 14:07:17 +02:00
Simon Willnauer
c0eca94a04
Remove shard-level injector
...
Today we use a hirachical injector on the shard level for each shard
created. This commit removes the shard level injetor and replaces
it with good old constructor calls. This also removes all shard level plugin
facilities such that plugins can only have node or index level modules.
For plugins that need to track shard lifecycles they should use the relevant
callback from the lifecycle we already provide.
2015-10-05 14:07:17 +02:00
Simon Willnauer
188aa684ac
Merge pull request #13923 from s1monw/off_by_one
...
Record all bytes of the checksum in VerifyingIndexOutput
2015-10-05 14:03:47 +02:00
Britta Weber
6e29facd0a
Merge pull request #13934 from brwe/log-config-order
...
settings in log config file should not overwrite custom parameters
2015-10-05 13:49:55 +02:00
Britta Weber
ceefb06752
settings in log config file should not overwrite custom parameters
2015-10-05 13:29:35 +02:00