Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "test_nested": {
- "mappings": {
- "my_type": {
- "properties": {
- "group": {
- "type": "text",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 256
- }
- }
- },
- "user": {
- "type": "nested",
- "properties": {
- "name": {
- "type": "text",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 256
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- {
- "took": 2,
- "timed_out": false,
- "_shards": {
- "total": 5,
- "successful": 5,
- "failed": 0
- },
- "hits": {
- "total": 4,
- "max_score": 1,
- "hits": [
- {
- "_index": "test_nested",
- "_type": "my_type",
- "_id": "AWG5iVBz4bQsVnslc9gL",
- "_score": 1,
- "_source": {
- "group": "fans",
- "user": [
- {
- "name": "Linux"
- },
- {
- "name": "Android (operating system)"
- },
- {
- "name": "Widows 10"
- }
- ]
- }
- },
- {
- "_index": "test_nested",
- "_type": "my_type",
- "_id": "AWG5ieKW4bQsVnslc9gM",
- "_score": 1,
- "_source": {
- "group": "fans",
- "user": [
- {
- "name": "Bitcoin"
- },
- {
- "name": "PHP"
- },
- {
- "name": "Microsoft Windows"
- }
- ]
- }
- },
- {
- "_index": "test_nested",
- "_type": "my_type",
- "_id": "AWG5irrV4bQsVnslc9gN",
- "_score": 1,
- "_source": {
- "group": "fans",
- "user": [
- {
- "name": "Windows XP"
- }
- ]
- }
- },
- {
- "_index": "test_nested",
- "_type": "my_type",
- "_id": "1",
- "_score": 1,
- "_source": {
- "group": "fans",
- "user": [
- {
- "name": "iOS"
- },
- {
- "name": "Android (operating system)"
- },
- {
- "name": "Widows 10"
- },
- {
- "name": "Widows XP"
- }
- ]
- }
- }
- ]
- }
- }
Add Comment
Please, Sign In to add comment