You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2022/12/30 01:58:43 UTC
[james-project] branch master updated: JAMES-3754 Fix saveDate OpenSearch upgrade-instructions.md (#1367)
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push:
new d9054830d5 JAMES-3754 Fix saveDate OpenSearch upgrade-instructions.md (#1367)
d9054830d5 is described below
commit d9054830d597f787ed8eb5c6563428070aaf35ff
Author: Trần Hồng Quân <55...@users.noreply.github.com>
AuthorDate: Fri Dec 30 08:58:38 2022 +0700
JAMES-3754 Fix saveDate OpenSearch upgrade-instructions.md (#1367)
"Note how all text within the single quotes is preserved. No interpolation is done, but this means we also can’t, under any circumstances, have a single quote directly within the single quote."
We need to interpolate the single quote in the JSON message.
---
upgrade-instructions.md | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/upgrade-instructions.md b/upgrade-instructions.md
index d9f78c4076..496daad9f2 100644
--- a/upgrade-instructions.md
+++ b/upgrade-instructions.md
@@ -24,6 +24,7 @@ Change list:
- [TLS host name verification is now enabled by default](#tls-host-name-verification-is-now-enabled-by-default)
- [Blob Store AES upgraded to PBKDF2WithHmacSHA512](#blob-store-aes-upgraded-to-pbkdf2withhmacsha512)
- [Adding saveDate column to messageIdTable and imapUidTable](#adding-savedate-column-to-messageidtable-and-imapuidtable)
+- [Adding the saveDate to the OpenSearch index](#adding-the-savedate-to-the-opensearch-index)
### Adding the saveDate to the OpenSearch index
@@ -40,14 +41,14 @@ We already have this field as part of newly created mappings, but we need to exp
curl -X PUT \
http://ip:port/mailbox_v1/_mapping \
-H 'Content-Type: application/json' \
- -d '{
- "properties": {
- "saveDate": {
- "type": "date",
- "format": "uuuu-MM-dd'T'HH:mm:ssX||uuuu-MM-dd'T'HH:mm:ssXXX||uuuu-MM-dd'T'HH:mm:ssXXXXX"
+ -d "{
+ \"properties\": {
+ \"saveDate\": {
+ \"type\": \"date\",
+ \"format\": \"uuuu-MM-dd'T'HH:mm:ssX||uuuu-MM-dd'T'HH:mm:ssXXX||uuuu-MM-dd'T'HH:mm:ssXXXXX\"
}
}
-}'
+}"
```
### Adding saveDate column to messageIdTable and imapUidTable
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org