22727 Commits

Author SHA1 Message Date
Adrien Grand
7d63f4b8db Fix doc build. 2016-06-22 09:34:49 +02:00
Adrien Grand
db9af54ec0 Remove _timestamp and _ttl on 5.x indices.
This removes the ability to use `_timestamp` and `_ttl` on indices created on
or after 5.0.

Closes 
2016-06-22 08:35:54 +02:00
Martijn van Groningen
5dc88ffd26 docs: added note the inner hits migrate section 2016-06-22 08:29:50 +02:00
Nik Everett
8925400f67 Remove guice from ScriptService
Makes ScriptModule just a plain class that manages building the
ScriptSettings and ScriptService from plugins. When we *need*
to bind ScriptService with guice we bind it in a lambda.
2016-06-21 16:45:45 -04:00
Tal Levy
28fd684eef Fix ignore_failure behavior in _simulate?verbose ()
- fix it so that processors with the `ignore_failure` option do not
record their exception in the response
- add more tests to make empty `on_failure`. This now throws an
  exception
2016-06-21 13:29:53 -07:00
Jack Conradson
ea206237e3 Merge pull request from jdconrad/init2
Painless Initializers
2016-06-21 13:08:53 -07:00
Jack Conradson
0b4fc85367 Added some brief docs. 2016-06-21 12:56:54 -07:00
Jack Conradson
346b1802ee Quick fixes for using built in method writes. 2016-06-21 12:53:04 -07:00
Jack Conradson
553214d771 Merge branch 'master' into init2 2016-06-21 12:33:42 -07:00
Jack Conradson
d2c823e4cc Add initializers to Painless for arrays, lists, and maps. 2016-06-21 12:32:10 -07:00
Simon Willnauer
c80e837606 Beef up Translog testing with random channel exceptions ()
Today we only throw random exceptions on the translog writer. This commit
extends it to also throw exceptions during checkpoint writing etc to test
if the correct flags are provided to open method etc.
2016-06-21 21:25:01 +02:00
Martijn van Groningen
c7710daed0 Merge pull request from martijnvg/inner_hits/index_type_id_serialization1
Also do not serialize `_index` key in search response for parent/child inner hits
2016-06-21 21:24:39 +02:00
Ryan Ernst
21fff51b28 Merge pull request from rjernst/gradle_req
Build: Require exactly gradle 2.13
2016-06-21 12:24:20 -07:00
Boaz Leskes
e9230dd889 RejectedExecutionException != EdRejectedExecutionException 2016-06-21 21:08:43 +02:00
Nik Everett
5f0292cb81 Fetch result when wait_for_completion
This makes this sequence:
```
curl -XDELETE localhost:9200/source,dest?pretty
for i in $( seq 1 100 ); do
  curl -XPOST localhost:9200/source/test -d'{"test": "test"}'; echo
done
curl localhost:9200/_refresh?pretty

curl -XPOST 'localhost:9200/_reindex?pretty&wait_for_completion=false' -d'{
  "source": {
    "index": "source"
  },
  "dest": {
    "index": "dest"
  }
}'

curl 'localhost:9200/_tasks/Jsyd6d9wSRW-O-NiiKbPcQ:237?wait_for_completion&pretty'
```

Return task *AND* the response to the user.

This also renames "result" to "response" in the persisted task info
to line it up with how we name the objects in Elasticsearch.
2016-06-21 14:18:53 -04:00
Adrien Grand
8078c205f9 Revert "Remove _timestamp and _ttl on 5.x indices. "
This reverts commit 969e953645a4b1a28aaa834ca0c4826ba5ea19a2.
Docs are failing because of the removed functionality. I will
fix the docs before pushing it again.
2016-06-21 19:19:49 +02:00
Robert Muir
f70211dedb Merge pull request from rmuir/augmentation
painless: add augmentation
2016-06-21 13:15:41 -04:00
Martijn van Groningen
b32d9a71e4 inner_hits: Also never serialize _index key for parent/child inner hits as the _index is always the same of the parent search hit 2016-06-21 18:23:40 +02:00
Robert Muir
1b9695a9aa beef up tests so we ensure you still get good errors in these cases 2016-06-21 12:15:59 -04:00
Robert Muir
f78ef232dc fix bogus comment 2016-06-21 12:05:10 -04:00
Adrien Grand
969e953645 Remove _timestamp and _ttl on 5.x indices.
This removes the ability to use `_timestamp` and `_ttl` on indices created on
or after 5.0.

Closes 
2016-06-21 18:04:58 +02:00
Clinton Gormley
2f2ea0c280 Improved docs explaining the index upgrade process in breaking changes 2016-06-21 18:03:19 +02:00
Adrien Grand
6177c0a900 Upgrade string fields to text/keyword even if include_in_all is set.
Closes 
2016-06-21 17:59:16 +02:00
Robert Muir
42d60f9f28 maps n lists 2016-06-21 11:25:43 -04:00
Jason Tedor
7b68d44ddf Read Elasticsearch manifest via URL
This commit modifies reading the Elasticsearch jar manifest via the URL
instead of converting the URL to an NIO path for increased portability.

Relates 
2016-06-21 11:14:48 -04:00
Clinton Gormley
70482d1e39 Update java.asciidoc
Fixed asciidoc
2016-06-21 16:02:25 +02:00
Martijn van Groningen
0488372c20 removed unused imports 2016-06-21 15:51:20 +02:00
Jim Ferenczi
881afcba60 Fixed tests that failed now that BM25 is the default similarity. 2016-06-21 15:42:42 +02:00
Clinton Gormley
0160d91c2c Removed docs for precision_step - no longer used 2016-06-21 15:19:12 +02:00
Robert Muir
80734c75b5 get things started 2016-06-21 08:35:12 -04:00
Nik Everett
ba1d6907ab Quiet the logging of the docs tests
Significantly quiets the logging of the docs tests by:
1. Switching two log statements to debug level.
2. Only calling ESTestCase#afterIfFailed if the test failure wasn't
just assumptions being violated.
2016-06-21 08:31:09 -04:00
Martijn van Groningen
5ad2fdaa8e inner_hits: Don't include _id, _type and _index keys in search response for inner hits
Closes 
2016-06-21 14:13:38 +02:00
Jason Tedor
3748abfd7a Clarify building from sources docs in README
This commit clarifies a few issues with the building from sources docs
in the README:
 - modifies Gradle link to use https
 - version 2.13 of Gradle is required
 - the command "gradle assemble" is the preferred way to only create a
   distribution
 - fixes the specified location of the built distributions

Closes 
2016-06-21 07:41:15 -04:00
Sakthipriyan Vairamani
8d5a5e500a file is -> file name () 2016-06-21 13:20:56 +02:00
Jim Ferenczi
9d685f6876 Fix ut: remap default to classic similarity for indices created before 5.0. 2016-06-21 12:05:44 +02:00
Jim Ferenczi
cc91014dee Merge pull request from jimferenczi/bm25
Change default similarity to BM25
2016-06-21 11:30:30 +02:00
Jim Ferenczi
423291b6bc Change default similarity to BM25
The default similarity was set to `classic` which refers to TFIDF and has not been moved after the upgrade to Lucene 6.

Though moving to BM25 could have some downside for queries that relies on coordination factor (match_query, multi_match_query) ?

relates 
2016-06-21 11:29:36 +02:00
Martijn van Groningen
82f7bfad98 ingest: merged o.e.ingest.core with o.e.ingest and in ingest-common module added o.e.ingest.common package
and moved all code to that package.
2016-06-21 09:24:00 +02:00
Boaz Leskes
4401517b85 Revert as it causes file leaks
```
   > Throwable : java.lang.RuntimeException: file handle leaks: [SeekableByteChannel(/var/lib/jenkins/workspace/elastic+elasticsearch+master+g1gc/core/build/testrun/integTest/J0/temp/org.elasticsearch.search.suggest.CompletionSuggestSearch2xIT_518545A20D129C8C-001/tempDir-001/data/nodes/1/indices/4sTECv6WSJOJsw9L4CGamg/0/index/segments_1), SeekableByteChannel(/var/lib/jenkins/workspace/elastic+elasticsearch+master+g1gc/core/build/testrun/integTest/J0/temp/org.elasticsearch.search.suggest.CompletionSuggestSearch2xIT_518545A20D129C8C-001/tempDir-001/data/nodes/1/indices/4sTECv6WSJOJsw9L4CGamg/0/index/segments_1)]
   > 	at __randomizedtesting.SeedInfo.seed([518545A20D129C8C]:0)
   > 	at org.apache.lucene.mockfile.LeakFS.onClose(LeakFS.java:63)
   > 	at org.apache.lucene.mockfile.FilterFileSystem.close(FilterFileSystem.java:77)
   > 	at org.apache.lucene.mockfile.FilterFileSystem.close(FilterFileSystem.java:78)
   > 	at java.lang.Thread.run(Thread.java:745)
   > Caused by: java.lang.Exception
   > 	at org.apache.lucene.mockfile.LeakFS.onOpen(LeakFS.java:46)
   > 	at org.apache.lucene.mockfile.HandleTrackingFS.callOpenHook(HandleTrackingFS.java:81)
   > 	at org.apache.lucene.mockfile.HandleTrackingFS.newByteChannel(HandleTrackingFS.java:271)
   > 	at org.apache.lucene.mockfile.FilterFileSystemProvider.newByteChannel(FilterFileSystemProvider.java:212)
   > 	at org.apache.lucene.mockfile.HandleTrackingFS.newByteChannel(HandleTrackingFS.java:240)
   > 	at java.nio.file.Files.newByteChannel(Files.java:361)
   > 	at java.nio.file.Files.newByteChannel(Files.java:407)
   > 	at org.apache.lucene.store.SimpleFSDirectory.openInput(SimpleFSDirectory.java:77)
   > 	at org.apache.lucene.store.FilterDirectory.openInput(FilterDirectory.java:94)
   > 	at org.apache.lucene.util.LuceneTestCase.slowFileExists(LuceneTestCase.java:2695)
   > 	at org.apache.lucene.store.MockDirectoryWrapper.openInput(MockDirectoryWrapper.java:737)
   > 	at org.apache.lucene.store.FilterDirectory.openInput(FilterDirectory.java:94)
   > 	at org.elasticsearch.common.lucene.Lucene$1.doBody(Lucene.java:237)
   > 	at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:685)
   > 	at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:637)
   > 	at org.elasticsearch.common.lucene.Lucene.checkSegmentInfoIntegrity(Lucene.java:242)
   > 	at org.elasticsearch.index.store.Store$MetadataSnapshot.loadMetadata(Store.java:847)
   > 	at org.elasticsearch.index.store.Store$MetadataSnapshot.<init>(Store.java:740)
   > 	at org.elasticsearch.index.store.Store.getMetadata(Store.java:260)
   > 	at org.elasticsearch.index.store.Store.getMetadata(Store.java:240)
   > 	at org.elasticsearch.index.shard.IndexShard.doCheckIndex(IndexShard.java:1310)
   > 	at org.elasticsearch.common.util.CancellableThreads.executeIO(CancellableThreads.java:102)
   > 	at org.elasticsearch.index.shard.IndexShard.checkIndex(IndexShard.java:1288)
   > 	at org.elasticsearch.index.shard.IndexShard.internalPerformTranslogRecovery(IndexShard.java:921)
   > 	at org.elasticsearch.index.shard.IndexShard.skipTranslogRecovery(IndexShard.java:964)
   > 	at org.elasticsearch.indices.recovery.RecoveryTarget.prepareForTranslogOperations(RecoveryTarget.java:297)
   > 	at
   ```
2016-06-21 08:45:46 +02:00
Jason Tedor
b15bada2c8 Fix newlines in README 2016-06-20 22:14:53 -04:00
Jason Tedor
a3e5aeea95 Add link to Discourse and IRC to 2016-06-20 22:11:18 -04:00
Robert Muir
1b7d35e4a7 Merge pull request from rmuir/lambda_types
Infer lambda arguments/return type
2016-06-20 17:22:04 -04:00
Robert Muir
1cc0264827 Infer lambda arguments/return type 2016-06-20 14:54:45 -04:00
Robert Muir
e0a8213deb Merge pull request from rmuir/explicit_casts
Fix explicit casts and improve tests.
2016-06-20 13:40:11 -04:00
Robert Muir
fea120b073 Merge branch 'master' into explicit_casts 2016-06-20 13:39:13 -04:00
Robert Muir
006829e89b add simple arguments test 2016-06-20 13:33:51 -04:00
Robert Muir
09305a0f98 Merge pull request from rmuir/lambda_captures
Painless: add lambda captures
2016-06-20 13:05:55 -04:00
Robert Muir
26a73c39bf throw error if the tree is totally malformed 2016-06-20 13:01:59 -04:00
Nik Everett
6569d35094 Fail doc tests when any shard fails
ES only sends a non-200 response all shards fail but we should
fail the tests generated by docs if any of them fail.

Depending on the outcome of  this might be a temporary
workaround.
2016-06-20 12:49:30 -04:00
Simon Willnauer
9196ff255e Add extra ctor to FilterClient to support Guice proxies
just don't ask it's bad but some plugins are so involved they need this.

Closes #the_issue_that_never_existed
2016-06-20 16:47:24 +02:00