我需要你对ElasticSearch字段索引的帮助。
我正在向Js发送Jsons,我只有一个字段可以发送XML而且我从不在这个字段上搜索。
我需要你的帮助才能将此字段排除在索引之外。我想排除的字段是: rawXml
如果您需要我提供更多详细信息,请与我们联系。
这可能吗?
这是我现在发送的Json:
{
"_index": "logstash-2015.05.05",
"_type": "XXXXX",
"_id": "XXXXXX",
"_score": null,
"_source": {
"@version": 1,
"@timestamp": "2015-05-05T00:00:11.489Z",
"host": "XXXXXXXXX",
"application_name": "XXXXXXX",
"logger_name": "XXXXXXXXX",
"level": "DEBUG",
"thread_name": "XXXXXXX",
"name": "XXXXXXXX",
"rawXml": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<XXXXX xmlns=\"http://XXXXXXXX\" Version=\"14.000\">\n <POS>\n <Source DKNumber=\"XXXXXX\"/>\n </POS>\n <Unique>\n <ID PCC=\"XXXXX\" GDS=\"XXXXX\" NAME=\"XXXXXX\" TYPE=\"XXXXXX\"/>\n </Unique>\n</OpenHotelHubSessionCreateRQ>\n",
"type": "XXXXXXXX",
"message": "Event: XXXXXXX",
"requestContext": {
"wml-locale": "en_AU",
"accountId": XXXXXXX,
"agentName": "XXXXXXX",
"deviceType": "XXXXXX",
"cwtTraveller": {
"clientTopGuid": "XXXXX",
"travellerGuid": "XXXXXXX",
"clientTopTravelerTypeGuid": "XXXXXX",
"clientSubGuid": "XXXXXXXX"
},
"providerSessionId": null,
"variantId": X
},
"path": "XXXXXXXXXXX",
"hostname": "XXXXXXXXX"
},
"sort": [
1430784011489
]
}