Fix AnomalyRecord.Type and remove setParent call
Original commit: elastic/x-pack-elasticsearch@3ffe114ac2
This commit is contained in:
parent
4562ec9d6c
commit
02c755bfbe
|
@ -149,8 +149,7 @@ public class ElasticsearchPersister implements JobResultsPersister, JobRenormali
|
|||
" to index " + indexName + " with auto-generated ID, for bucket "
|
||||
+ bucket.getId());
|
||||
addRecordsRequest.add(client.prepareIndex(indexName, AnomalyRecord.TYPE.getPreferredName())
|
||||
.setSource(content)
|
||||
.setParent(bucket.getId()));
|
||||
.setSource(content));
|
||||
}
|
||||
|
||||
LOGGER.trace("ES API CALL: bulk request with " + addRecordsRequest.numberOfActions() + " actions");
|
||||
|
|
|
@ -32,7 +32,7 @@ public class AnomalyRecord extends ToXContentToBytes implements Writeable {
|
|||
/**
|
||||
* Serialisation fields
|
||||
*/
|
||||
public static final ParseField TYPE = new ParseField("results");
|
||||
public static final ParseField TYPE = new ParseField("record");
|
||||
|
||||
/**
|
||||
* Result fields (all detector types)
|
||||
|
|
Loading…
Reference in New Issue