Skip to content

Commit

Permalink
Fix #81
Browse files Browse the repository at this point in the history
(cherry picked from commit f3e56b9)

(cherry picked from commit 2f6c544)

(cherry picked from commit 317111c)

(cherry picked from commit 59f38b1)
  • Loading branch information
Pierre Padovani committed Jul 28, 2018
1 parent ef8e0d5 commit f17bace
Show file tree
Hide file tree
Showing 2 changed files with 292 additions and 1 deletion.
1 change: 0 additions & 1 deletion public/nested_support/parse_query/lib/query_adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ scope.Term.prototype = {
+ ',"include_lower":true,"include_upper":true}}}';
break;
case '~=':
jsonString += '{"wildcard":{"' + this.field + '":' + this.value + '}}';
if (/[\*?]/.test(this.value)) {
jsonString += '{"wildcard":{"';
} else {
Expand Down
292 changes: 292 additions & 0 deletions scripts/nested-support/deepNested.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,292 @@
{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0
},
"mappings": {
"deep": {
"properties": {
"name": {
"type":"keyword"
},
"discoveryObjects": {
"type": "nested",
"properties": {
"entries": {
"properties": {
"cidrBlock": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"egress": {
"type": "boolean"
},
"ipv6CidrBlock": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"portRange": {
"properties": {
"from": {
"type": "text"
},
"to": {
"type": "text"
}
}
},
"protocol": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"networkInterfaces": {
"properties": {
"association": {
"properties": {
"ipOwnerId": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"publicDnsName": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"publicIp": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"attachment": {
"properties": {
"attachTime": {
"type": "text"
},
"attachmentId": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"deleteOnTermination": {
"type": "boolean"
},
"deviceIndex": {
"type": "text"
},
"status": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"description": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"groups": {
"properties": {
"groupId": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"groupName": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"macAddress": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"networkInterfaceId": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"ownerId": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"privateDnsName": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"privateIpAddress": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"privateIpAddresses": {
"properties": {
"association": {
"properties": {
"ipOwnerId": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"publicDnsName": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"publicIp": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"primary": {
"type": "boolean"
},
"privateDnsName": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"privateIpAddress": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"sourceDestCheck": {
"type": "boolean"
},
"status": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"subnetId": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"vpcId": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
}
}
}
}
}

0 comments on commit f17bace

Please sign in to comment.