开发者问题收集
我尝试通过“created”字段(整数/时间戳)来加速搜索,但总是遇到"{"error":{"root_cause":[{"type":"parsing_exception","reason":"Unknown key for a START_OBJECT in [script].","line":1,"col":181}],"type":"parsing_exception","reason":
我对索引有以下映射{"mappings": {"xxxxx": {"properties": {"ID": {"type": "text"},"pairs": {"type": "nested"},"xxxxx": {"type": "text"}}}}}pairs字段是具有以下结构的对象数组{"id": "","Answer": "","Question": []}我想检索特定的嵌套对象并更新它
我的目标是从 NG2-webapp 内正在运行的本地ElasticSearch 服务器检索示例数据,然后显示这些结果。到目前为止,我已经使用NPM Elasticsearch Typescript 包创建了一个组件test-es-types。这是.ts代码: import { Component, OnInit } from '@angular/core';import * as elastic