Mike McCandless
5fffede2b0
Upgrade to Lucene 5.5.0 official release
2016-02-20 17:34:16 -05:00
Martijn van Groningen
3290cfbd31
test: replaced integration tests with unit test
2016-02-15 22:03:55 +01:00
George P. Stathis
b17a92c911
Fixes #16550 (thanks for the pointers @martijnvg!)
2016-02-15 19:58:24 +01:00
Adrien Grand
69e21d4cc3
Fix how analyzers are set in StringFieldMapper.
...
This was changed when adding the text field in an attempt to clean up
how analyzers are set. Unfortunately this change was not safe for the
string field given that it can also represent keywords.
2016-02-15 19:21:54 +01:00
Colin Goodheart-Smithe
8f68c64f68
Fixes serialisation of Ranges
...
Range aggregation tests were failing (e.g. http://build-us-00.elastic.co/job/es_core_master_metal/12385/testReport/junit/org.elasticsearch.messy.tests/IPv4RangeTests/testPartiallyUnmapped/ ) sometimes because both the string and number versions of form and to were being serialised. This meant that the range aggregator builder objects would not serialise and deserialise to the same bytes before and after the builder had been used. This change makes Range object immutable so the builder doesn't need to worry about the range changing under its feet.
2016-02-15 15:14:09 +00:00
Colin Goodheart-Smithe
ebc745211d
Moved AggregatorBuilder implementations into their own class files
...
Also renamed histogram.AbstractBuilcer to AbstractHistogramBuilder, range.AbstractBuilder to AbstractRangeBuilder and org.elasticsearch.search.aggregations.pipeline.having to org.elasticsearch.search.aggregations.pipeline.bucketselector
2016-02-15 14:09:36 +00:00
Colin Goodheart-Smithe
bd2e00d396
review comments
2016-02-15 10:46:24 +00:00
Colin Goodheart-Smithe
1a46628daa
Merge branch 'master' into feature/aggs-refactoring
...
# Conflicts:
# core/src/test/java/org/elasticsearch/search/builder/SearchSourceBuilderTests.java
2016-02-15 10:37:16 +00:00
Adrien Grand
11ce624343
Merge pull request #16637 from jpountz/feature/text
...
Add a text field.
2016-02-15 10:45:53 +01:00
Adrien Grand
4f8895eae3
Add a text field.
...
This new field is intended to replace analyzed string fields.
2016-02-15 10:43:44 +01:00
Boaz Leskes
0305628c6b
Add some debug logs to testPendingUpdateTask
...
It times out rarely. Hopefully these will help.
2016-02-15 10:15:00 +01:00
Jason Tedor
d313cdd7d0
Assertion handling timestamp in index request
...
This commit adds an assertion that the mapping metadata is not null when
handling a non-default timestamp when no timestamp is provided.
Closes #16596
2016-02-14 14:41:30 -05:00
Jason Tedor
3bbd1c129e
Remove host from cat nodes API
...
As the host and ip fields are always equal by design, the host field in
the cat nodes API is redundant and should be removed.
Closes #16656
2016-02-14 09:21:32 -05:00
Simon Willnauer
8c1fe37e92
Remove in-place rewriting of SearchSourceBuilder
...
SearchSourceBuilder should be cloned when rewriting, the in-place rewrite
is failing with local transport assertions.
2016-02-13 08:57:32 +01:00
Simon Willnauer
25d6a143d4
Merge branch 'master' into add_rewrite_infra
2016-02-12 22:13:34 +01:00
Zachary Tong
2ebd2ba616
[TEST] Temporarily silence failing test
...
Failure ticket at #16645
2016-02-12 15:36:37 -05:00
Martijn van Groningen
299179e704
logging: exception is first argument
2016-02-12 18:23:22 +01:00
Luca Cavanna
f589fa8013
Merge pull request #16617 from javanna/enhancement/function_score_strict_parsing
...
Function Score Query: make parsing stricter
2016-02-12 17:45:10 +01:00
Luca Cavanna
ca23ee6104
Merge pull request #16640 from javanna/enhancement/remove_copy_constructors
...
Remove copy constructors from request classes and TransportMessage type
2016-02-12 17:21:55 +01:00
javanna
cb1ca92618
move function score to ParseField
2016-02-12 17:15:04 +01:00
javanna
320f356030
use assertNull rather than assertTrue(object == null)
2016-02-12 17:15:04 +01:00
javanna
507b868692
[TEST] make SearchSourceBuilderTests pickier, check that the search source has been read completely
...
Same check is already performed in AbstractQueryTestCase, makes sense to have it here too.
2016-02-12 17:15:04 +01:00
javanna
a624410450
Function Score Query: make parsing stricter
...
Function Score Query now checks the type of token that we are parsing, which makes parsing stricter and allows to throw useful errors in case the json is malformed. It also makes code more readable as in what gets parsed when.
Closes #16583
2016-02-12 17:15:03 +01:00
Nicholas Knize
a3d425573c
Upgrade GeoPointIndexFieldData to support new PREFIX Encoding
...
This commit updates the OrdinalsBuilder and GeoPoint FieldData loader to work with the new PREFIX_ENCODING introduced in lucene-5.5.0. Backcompat is included to support legacy encoding types.
closes #16634
2016-02-12 10:13:17 -06:00
javanna
8d0089c8d8
Remove unused generics type from TransportMessage
...
followup of #15776 , the type is not needed anymore.
2016-02-12 16:31:35 +01:00
Colin Goodheart-Smithe
83885423a0
[TEST] mute DuelFieldDataTests.testDuelGeoPoints()
...
Bug URL = https://github.com/elastic/elasticsearch/issues/16634
2016-02-12 15:20:13 +00:00
javanna
5849646baa
Java api: remove needless copy constructors from request classes
...
After #15776 got in, we don't need these copy constructors anymore. When we used to copy requests it was to make sure that headers and context were copied from the parent requests (e.g. index/delete as part of update). This is not a problem anymore.
2016-02-12 16:16:39 +01:00
Simon Willnauer
6c6ed135c5
wrap lines
2016-02-12 15:37:25 +01:00
Simon Willnauer
84d91c87a1
fix test
2016-02-12 15:34:50 +01:00
Simon Willnauer
9e0ceaa63e
[TEST] fix test to be env agnostic
2016-02-12 15:25:00 +01:00
Simon Willnauer
8d568ce3e1
Move optimization out of BoolQueryBuilder into tests
2016-02-12 15:14:28 +01:00
Simon Willnauer
387a55d5f9
wrap lines
2016-02-12 13:03:21 +01:00
Simon Willnauer
b906c8a389
apply fixes after review
2016-02-12 12:53:12 +01:00
Colin Goodheart-Smithe
86b0777392
removes a lot of warnings form the aggregations
2016-02-12 10:47:08 +00:00
Colin Goodheart-Smithe
d9c1e88ba9
PipelineAggregatorBuilder.setMetaData is now chain able
2016-02-12 10:06:51 +00:00
Colin Goodheart-Smithe
ed3f7903f4
Merge branch 'master' into feature/aggs-refactoring
2016-02-12 09:48:59 +00:00
Simon Willnauer
685bee3081
Merge branch 'master' into add_rewrite_infra
2016-02-12 09:46:01 +01:00
Simon Willnauer
b5aee2075f
Merge pull request #16610 from s1monw/test_indices_request_cache
...
Refactor IndicesRequestCache to make it testable.
2016-02-12 09:27:20 +01:00
Simon Willnauer
691c5c49ed
Fix registerSettingsFilterIfMissing and add unittest for settings filter registration
2016-02-12 09:25:24 +01:00
Boaz Leskes
8bc2332d9a
Decouple recovery source/target logic and transport piping
...
The current logic for doing recovery from a source to a target shourd is tightly coupled with the underlying network pipes. This changes decouple the two, making it easier to add unit tests for shard recovery that doesn't involve the node and network environment.
On top that, RecoveryTarget is renamed to RecoveryTargetService leaving space to renaming RecoveryStatus to RecoveryTarget (and thus avoid the confusion we have today with RecoveryState).
Correspondingly RecoverySource is renamed to RecoverySourceService.
Closes #16605
2016-02-11 21:36:48 +01:00
Nicholas Knize
52ee4c7027
upgrade to lucene 5.5.0-snapshot-850c6c2
2016-02-11 14:28:50 -06:00
David Pilato
df50371c34
Merge branch 'pr/16477-aws-settings'
2016-02-11 19:47:43 +01:00
gmarz
4a96f4f310
Fix failing stylecheck
2016-02-11 13:09:08 -05:00
javanna
37ff6af759
environemnt -> environment
2016-02-11 18:31:21 +01:00
javanna
8045e51ff3
Corrected typos and removed unused import
2016-02-11 18:31:20 +01:00
Greg Marzouka
2304952647
Merge pull request #16516 from gmarz/fix/pipeline-aggs-meta
...
Set meta data for pipeline aggregations
2016-02-11 12:27:46 -05:00
Adrien Grand
70f19b2c64
Merge pull request #16589 from jpountz/feature/keyword
...
Add a new `keyword` field.
2016-02-11 18:23:32 +01:00
Adrien Grand
bc47c577d2
Add a new `keyword` field.
...
The `keyword` field is intended to replace `not_analyzed` string fields. It is
indexed and has doc values by default, and doesn't support enabling term
vectors.
Although it doesn't support setting an analyzer for now, there are plans for
it to support basic normalization in the future such as case folding.
2016-02-11 18:19:53 +01:00
Simon Willnauer
d04ec6eb2c
Merge pull request #16176 from s1monw/make_security_non_optional
...
Make security non-optional
2016-02-11 17:37:48 +01:00
Adrien Grand
a1e251af20
Remove the MapperBuilders utility class.
...
We can just call constructors directly.
2016-02-11 17:32:58 +01:00