我编写了一个客户端服务器应用程序。我已经在服务器上设置了一个弹性搜索服务。客户端(iOS应用程序)从elastic-search服务查询信息。我有两个选择:
1. put the elastic-search behind a nginx server(as proxy server).
2. write an app running on the middle-ware to wrap the elastic-search APIs(only
certain APIs that will be queried by the client).
对于选项1,所有的elastic-sea
使用传统asp中的Rest,在执行以下简单搜索时,我能够从索引中检索数据:
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "GET", "http://elastic:changeme@10.128.128.109:9200/myindex/_search?q='fred blogs',_source='path.real'", False
现在,我想从一个更复杂的查询中检索数据,如果我使用Kibana,则如下所示:
GET newsind
我有一个带有JSON数据的Kafka主题。现在im试图使用新的"Java“()将这些JSON字符串发送到ES主题,但是im遇到解析器异常:
co.elastic.clients.elasticsearch._types.ElasticsearchException: [es/index] failed: [mapper_parsing_exception] failed to parse
at co.elastic.clients.transport.rest_client.RestClientTransport.getHighLevelResponse(RestClientTrans