|
@@ -43,7 +43,7 @@ public class EqlSearchRequest extends ActionRequest implements IndicesRequest.Re
|
|
|
|
|
|
private QueryBuilder filter = null;
|
|
|
private String timestampField = FIELD_TIMESTAMP;
|
|
|
- private String tieBreakerField = null;
|
|
|
+ private String tiebreakerField = null;
|
|
|
private String eventCategoryField = FIELD_EVENT_CATEGORY;
|
|
|
private String implicitJoinKeyField = FIELD_IMPLICIT_JOIN_KEY;
|
|
|
private int fetchSize = FETCH_SIZE;
|
|
@@ -53,7 +53,7 @@ public class EqlSearchRequest extends ActionRequest implements IndicesRequest.Re
|
|
|
|
|
|
static final String KEY_FILTER = "filter";
|
|
|
static final String KEY_TIMESTAMP_FIELD = "timestamp_field";
|
|
|
- static final String KEY_TIE_BREAKER_FIELD = "tie_breaker_field";
|
|
|
+ static final String KEY_TIEBREAKER_FIELD = "tiebreaker_field";
|
|
|
static final String KEY_EVENT_CATEGORY_FIELD = "event_category_field";
|
|
|
static final String KEY_IMPLICIT_JOIN_KEY_FIELD = "implicit_join_key_field";
|
|
|
static final String KEY_SIZE = "size";
|
|
@@ -63,7 +63,7 @@ public class EqlSearchRequest extends ActionRequest implements IndicesRequest.Re
|
|
|
|
|
|
static final ParseField FILTER = new ParseField(KEY_FILTER);
|
|
|
static final ParseField TIMESTAMP_FIELD = new ParseField(KEY_TIMESTAMP_FIELD);
|
|
|
- static final ParseField TIE_BREAKER_FIELD = new ParseField(KEY_TIE_BREAKER_FIELD);
|
|
|
+ static final ParseField TIEBREAKER_FIELD = new ParseField(KEY_TIEBREAKER_FIELD);
|
|
|
static final ParseField EVENT_CATEGORY_FIELD = new ParseField(KEY_EVENT_CATEGORY_FIELD);
|
|
|
static final ParseField IMPLICIT_JOIN_KEY_FIELD = new ParseField(KEY_IMPLICIT_JOIN_KEY_FIELD);
|
|
|
static final ParseField SIZE = new ParseField(KEY_SIZE);
|
|
@@ -83,7 +83,7 @@ public class EqlSearchRequest extends ActionRequest implements IndicesRequest.Re
|
|
|
indicesOptions = IndicesOptions.readIndicesOptions(in);
|
|
|
filter = in.readOptionalNamedWriteable(QueryBuilder.class);
|
|
|
timestampField = in.readString();
|
|
|
- tieBreakerField = in.readOptionalString();
|
|
|
+ tiebreakerField = in.readOptionalString();
|
|
|
eventCategoryField = in.readString();
|
|
|
implicitJoinKeyField = in.readString();
|
|
|
fetchSize = in.readVInt();
|
|
@@ -140,8 +140,8 @@ public class EqlSearchRequest extends ActionRequest implements IndicesRequest.Re
|
|
|
builder.field(KEY_FILTER, filter);
|
|
|
}
|
|
|
builder.field(KEY_TIMESTAMP_FIELD, timestampField());
|
|
|
- if (tieBreakerField != null) {
|
|
|
- builder.field(KEY_TIE_BREAKER_FIELD, tieBreakerField());
|
|
|
+ if (tiebreakerField != null) {
|
|
|
+ builder.field(KEY_TIEBREAKER_FIELD, tiebreakerField());
|
|
|
}
|
|
|
builder.field(KEY_EVENT_CATEGORY_FIELD, eventCategoryField());
|
|
|
if (implicitJoinKeyField != null) {
|
|
@@ -168,7 +168,7 @@ public class EqlSearchRequest extends ActionRequest implements IndicesRequest.Re
|
|
|
parser.declareObject(EqlSearchRequest::filter,
|
|
|
(p, c) -> AbstractQueryBuilder.parseInnerQueryBuilder(p), FILTER);
|
|
|
parser.declareString(EqlSearchRequest::timestampField, TIMESTAMP_FIELD);
|
|
|
- parser.declareString(EqlSearchRequest::tieBreakerField, TIE_BREAKER_FIELD);
|
|
|
+ parser.declareString(EqlSearchRequest::tiebreakerField, TIEBREAKER_FIELD);
|
|
|
parser.declareString(EqlSearchRequest::eventCategoryField, EVENT_CATEGORY_FIELD);
|
|
|
parser.declareString(EqlSearchRequest::implicitJoinKeyField, IMPLICIT_JOIN_KEY_FIELD);
|
|
|
parser.declareInt(EqlSearchRequest::fetchSize, SIZE);
|
|
@@ -199,10 +199,10 @@ public class EqlSearchRequest extends ActionRequest implements IndicesRequest.Re
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
- public String tieBreakerField() { return this.tieBreakerField; }
|
|
|
+ public String tiebreakerField() { return this.tiebreakerField; }
|
|
|
|
|
|
- public EqlSearchRequest tieBreakerField(String tieBreakerField) {
|
|
|
- this.tieBreakerField = tieBreakerField;
|
|
|
+ public EqlSearchRequest tiebreakerField(String tiebreakerField) {
|
|
|
+ this.tiebreakerField = tiebreakerField;
|
|
|
return this;
|
|
|
}
|
|
|
|
|
@@ -265,7 +265,7 @@ public class EqlSearchRequest extends ActionRequest implements IndicesRequest.Re
|
|
|
indicesOptions.writeIndicesOptions(out);
|
|
|
out.writeOptionalNamedWriteable(filter);
|
|
|
out.writeString(timestampField);
|
|
|
- out.writeOptionalString(tieBreakerField);
|
|
|
+ out.writeOptionalString(tiebreakerField);
|
|
|
out.writeString(eventCategoryField);
|
|
|
out.writeString(implicitJoinKeyField);
|
|
|
out.writeVInt(fetchSize);
|
|
@@ -288,7 +288,7 @@ public class EqlSearchRequest extends ActionRequest implements IndicesRequest.Re
|
|
|
Objects.equals(indicesOptions, that.indicesOptions) &&
|
|
|
Objects.equals(filter, that.filter) &&
|
|
|
Objects.equals(timestampField, that.timestampField) &&
|
|
|
- Objects.equals(tieBreakerField, that.tieBreakerField) &&
|
|
|
+ Objects.equals(tiebreakerField, that.tiebreakerField) &&
|
|
|
Objects.equals(eventCategoryField, that.eventCategoryField) &&
|
|
|
Objects.equals(implicitJoinKeyField, that.implicitJoinKeyField) &&
|
|
|
Objects.equals(searchAfterBuilder, that.searchAfterBuilder) &&
|
|
@@ -304,7 +304,7 @@ public class EqlSearchRequest extends ActionRequest implements IndicesRequest.Re
|
|
|
filter,
|
|
|
fetchSize,
|
|
|
timestampField,
|
|
|
- tieBreakerField,
|
|
|
+ tiebreakerField,
|
|
|
eventCategoryField,
|
|
|
implicitJoinKeyField,
|
|
|
searchAfterBuilder,
|