我正在将 Elastic Search 与 Spring Data 结合使用。
我在存储库中有一个简单的方法:
findByUserNameContaining("a b");
Run Code Online (Sandbox Code Playgroud)
由于空格,此方法未给出预期结果。
获取错误:
“无法构造查询' “a b” '。请改用表达式或多个子句。” EXCEPTION =“org.springframework.dao.InvalidDataAccessApiUsageException:无法构造查询' “a b” '。请改用表达式或多个子句。
用于因空间问题而停止创建多个令牌。我有映射:
"userName": {
"type": "string",
"index": "not_analyzed"
},
Run Code Online (Sandbox Code Playgroud)
我非常惊讶我"index": "not_analyzed"在映射后遇到了这个问题。
请帮我。提前致谢!
我正在运行一项将所有数据从 postgres 10.4 迁移到 RDS postgres 10.4 的任务。无法迁移具有 jsonb 列的表。出错后,整个表被挂起。表只包含 449 行。
我制定了以下错误政策,仍然整个表暂停。“DataErrorPolicy”:“IGNORE_RECORD”,“DataTruncationErrorPolicy”:“IGNORE_RECORD”,“DataErrorEscalationPolicy”:“SUSPEND_TABLE”,“DataErrorEscalationCount”:1000,
我的期望是应该传输整个表,如果任何json错误,它可以忽略记录。我不知道为什么它会给出这个错误“类型 json 的输入语法无效”,我已经检查了所有 json 并且所有 jsons 都是有效的。
经过多次调试,这个错误已经被认为是TABLE错误,但是为什么呢?这就是为什么表因为 TableErrorPolicy 是“SUSPEND_TABLE”而被挂起的原因。为什么这个错误被认为是表错误而不是记录错误?
DMS 不支持 JSONB 列,这就是为什么我们遇到以下错误?
日志:-
2020-09-01T12:10:04 https://forums.aws.amazon.com/I: Next table to load 'public'.'TEMP_TABLE' ID = 1, order = 0 (tasktablesmanager.c:1817)
2020-09-01T12:10:04 https://forums.aws.amazon.com/I: Start loading table 'public'.'TEMP_TABLE' (Id = 1) by subtask 1.
Start load timestamp 0005AE3F66381F0F (replicationtask_util.c:755)
2020-09-01T12:10:04 https://forums.aws.amazon.com/I: REPLICA IDENTITY information for table 'public'.'TEMP_TABLE': Query status='Success' Type='DEFAULT'
Description='Old values of the Primary Key columns (if any) will …Run Code Online (Sandbox Code Playgroud)