Skip to content

Commit

Permalink
Update command index template
Browse files Browse the repository at this point in the history
Move delivery_timestamp to top-level
  • Loading branch information
QU3B1M committed Nov 28, 2024
1 parent c637619 commit 57cddc9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public class Command implements ToXContentObject {
public static final String TIMEOUT = "timeout";
public static final String USER = "user";
public static final String STATUS = "status";
public static final String TIMESTAMP = "@timestamp";
private final String orderId;
private final String requestId;
private final String source;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
}
}
},
"delivery_timestamp": {
"type": "date"
},
"order_id": {
"ignore_above": 1024,
"type": "keyword"
Expand Down Expand Up @@ -89,6 +86,9 @@
"type": "keyword"
}
}
},
"delivery_timestamp": {
"type": "date"
}
}
},
Expand All @@ -107,4 +107,4 @@
"refresh_interval": "5s"
}
}
}
}
8 changes: 4 additions & 4 deletions plugins/setup/src/main/resources/index-template-commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
}
}
},
"delivery_timestamp": {
"type": "date"
},
"order_id": {
"ignore_above": 1024,
"type": "keyword"
Expand Down Expand Up @@ -89,6 +86,9 @@
"type": "keyword"
}
}
},
"delivery_timestamp": {
"type": "date"
}
}
},
Expand All @@ -107,4 +107,4 @@
"refresh_interval": "5s"
}
}
}
}

0 comments on commit 57cddc9

Please sign in to comment.