Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ subprojects {
if (project.path == ':server') {
target 'src/*/java/org/elasticsearch/action/admin/cluster/repositories/**/*.java',
'src/*/java/org/elasticsearch/action/admin/cluster/snapshots/**/*.java',
'src/test/java/org/elasticsearch/common/xcontent/support/AbstractFilteringTestCase.java',
'src/test/java/org/elasticsearch/common/xcontent/support/XContentMapValuesTests.java',
'src/*/java/org/elasticsearch/index/snapshots/**/*.java',
'src/*/java/org/elasticsearch/repositories/**/*.java',
'src/*/java/org/elasticsearch/search/aggregations/**/*.java',
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ protected final void testFilter(Builder expected, Builder actual, Set<String> in

protected abstract XContentType getXContentType();

@Override
protected boolean removesEmptyArrays() {
return true;
}

private XContentBuilder createBuilder() throws IOException {
return XContentBuilder.builder(getXContentType().xContent());
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"title" : "My awesome book",
"pages" : 456,
"price" : 27.99,
"timestamp" : 1428582942867,
"default" : null,
"tags" : [
"elasticsearch",
"java"
],
"authors" : [
{
"name" : "John Doe",
"lastname" : "John",
"firstname" : "Doe"
},
{
"name" : "William Smith",
"lastname" : "William",
"firstname" : "Smith"
}
],
"properties" : {
"weight" : 0.8,
"language" : {
"en" : {
"lang" : "English",
"available" : true,
"distributors" : [
{
"name" : "The Book Shop",
"addresses" : [
{
"name" : "address #1",
"street" : "Hampton St",
"city" : "London"
},
{
"name" : "address #2",
"street" : "Queen St",
"city" : "Stornoway"
}
]
},
{
"name" : "Sussex Books House"
}
]
},
"fr" : {
"lang" : "French",
"available" : false,
"distributors" : [
{
"name" : "La Maison du Livre",
"addresses" : [
{
"name" : "address #1",
"street" : "Rue Mouffetard",
"city" : "Paris"
}
]
},
{
"name" : "Thetra"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"authors" : [
{
"name" : "John Doe",
"lastname" : "John",
"firstname" : "Doe"
},
{
"name" : "William Smith",
"lastname" : "William",
"firstname" : "Smith"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"authors" : [
{
"lastname" : "John"
},
{
"lastname" : "William"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"authors" : [
{
"name" : "John Doe"
},
{
"name" : "William Smith"
}
],
"properties" : {
"language" : {
"en" : {
"distributors" : [
{
"name" : "The Book Shop",
"addresses" : [
{
"name" : "address #1"
},
{
"name" : "address #2"
}
]
},
{
"name" : "Sussex Books House"
}
]
},
"fr" : {
"distributors" : [
{
"name" : "La Maison du Livre",
"addresses" : [
{
"name" : "address #1"
}
]
},
{
"name" : "Thetra"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"price" : 27.99,
"properties" : {
"weight" : 0.8,
"language" : {
"en" : {
"lang" : "English",
"available" : true,
"distributors" : [
{
"name" : "The Book Shop",
"addresses" : [
{
"name" : "address #1",
"street" : "Hampton St",
"city" : "London"
},
{
"name" : "address #2",
"street" : "Queen St",
"city" : "Stornoway"
}
]
},
{
"name" : "Sussex Books House"
}
]
},
"fr" : {
"lang" : "French",
"available" : false,
"distributors" : [
{
"name" : "La Maison du Livre",
"addresses" : [
{
"name" : "address #1",
"street" : "Rue Mouffetard",
"city" : "Paris"
}
]
},
{
"name" : "Thetra"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"properties" : {
"language" : {
"en" : {
"distributors" : [
{
"name" : "The Book Shop"
},
{
"name" : "Sussex Books House"
}
]
},
"fr" : {
"distributors" : [
{
"name" : "La Maison du Livre"
},
{
"name" : "Thetra"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"properties" : {
"language" : {
"en" : {
"distributors" : [
{
"name" : "The Book Shop",
"addresses" : [
{
"name" : "address #1"
},
{
"name" : "address #2"
}
]
},
{
"name" : "Sussex Books House"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"properties" : {
"language" : {
"en" : {
"lang" : "English",
"available" : true,
"distributors" : [
{
"name" : "The Book Shop",
"addresses" : [
{
"city" : "London"
},
{
"city" : "Stornoway"
}
]
},
{
"name" : "Sussex Books House"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"properties" : {
"language" : {
"en" : {
"distributors" : [
{
"name" : "The Book Shop",
"addresses" : [
{
"name" : "address #1"
},
{
"name" : "address #2"
}
]
},
{
"name" : "Sussex Books House"
}
]
},
"fr" : {
"distributors" : [
{
"name" : "La Maison du Livre",
"addresses" : [
{
"name" : "address #1"
}
]
},
{
"name" : "Thetra"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"properties" : {
"weight" : 0.8,
"language" : {
"en" : {
"lang" : "English",
"available" : true
},
"fr" : {
"lang" : "French",
"available" : false
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"tags" : [
"elasticsearch",
"java"
],
"authors" : [
{
"lastname" : "John",
"firstname" : "Doe"
},
{
"lastname" : "William",
"firstname" : "Smith"
}
]
}
Loading