Compilation fix for #29067
This commit is contained in:
parent
c713d62f88
commit
a2d5cf6514
|
@ -603,13 +603,13 @@ public class TextFieldMapperTests extends ESSingleNodeTestCase {
|
||||||
}, null);
|
}, null);
|
||||||
|
|
||||||
{
|
{
|
||||||
String mapping = XContentFactory.jsonBuilder().startObject().startObject("type")
|
String mapping = Strings.toString(XContentFactory.jsonBuilder().startObject().startObject("type")
|
||||||
.startObject("properties").startObject("field")
|
.startObject("properties").startObject("field")
|
||||||
.field("type", "text")
|
.field("type", "text")
|
||||||
.field("analyzer", "english")
|
.field("analyzer", "english")
|
||||||
.startObject("index_prefix").endObject()
|
.startObject("index_prefix").endObject()
|
||||||
.field("index_options", "offsets")
|
.field("index_options", "offsets")
|
||||||
.endObject().endObject().endObject().endObject().string();
|
.endObject().endObject().endObject().endObject());
|
||||||
|
|
||||||
DocumentMapper mapper = parser.parse("type", new CompressedXContent(mapping));
|
DocumentMapper mapper = parser.parse("type", new CompressedXContent(mapping));
|
||||||
|
|
||||||
|
@ -619,13 +619,13 @@ public class TextFieldMapperTests extends ESSingleNodeTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
String mapping = XContentFactory.jsonBuilder().startObject().startObject("type")
|
String mapping = Strings.toString(XContentFactory.jsonBuilder().startObject().startObject("type")
|
||||||
.startObject("properties").startObject("field")
|
.startObject("properties").startObject("field")
|
||||||
.field("type", "text")
|
.field("type", "text")
|
||||||
.field("analyzer", "english")
|
.field("analyzer", "english")
|
||||||
.startObject("index_prefix").endObject()
|
.startObject("index_prefix").endObject()
|
||||||
.field("index_options", "positions")
|
.field("index_options", "positions")
|
||||||
.endObject().endObject().endObject().endObject().string();
|
.endObject().endObject().endObject().endObject());
|
||||||
|
|
||||||
DocumentMapper mapper = parser.parse("type", new CompressedXContent(mapping));
|
DocumentMapper mapper = parser.parse("type", new CompressedXContent(mapping));
|
||||||
|
|
||||||
|
@ -636,13 +636,13 @@ public class TextFieldMapperTests extends ESSingleNodeTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
String mapping = XContentFactory.jsonBuilder().startObject().startObject("type")
|
String mapping = Strings.toString(XContentFactory.jsonBuilder().startObject().startObject("type")
|
||||||
.startObject("properties").startObject("field")
|
.startObject("properties").startObject("field")
|
||||||
.field("type", "text")
|
.field("type", "text")
|
||||||
.field("analyzer", "english")
|
.field("analyzer", "english")
|
||||||
.startObject("index_prefix").endObject()
|
.startObject("index_prefix").endObject()
|
||||||
.field("term_vector", "with_positions_offsets")
|
.field("term_vector", "with_positions_offsets")
|
||||||
.endObject().endObject().endObject().endObject().string();
|
.endObject().endObject().endObject().endObject());
|
||||||
|
|
||||||
DocumentMapper mapper = parser.parse("type", new CompressedXContent(mapping));
|
DocumentMapper mapper = parser.parse("type", new CompressedXContent(mapping));
|
||||||
|
|
||||||
|
@ -653,13 +653,13 @@ public class TextFieldMapperTests extends ESSingleNodeTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
String mapping = XContentFactory.jsonBuilder().startObject().startObject("type")
|
String mapping = Strings.toString(XContentFactory.jsonBuilder().startObject().startObject("type")
|
||||||
.startObject("properties").startObject("field")
|
.startObject("properties").startObject("field")
|
||||||
.field("type", "text")
|
.field("type", "text")
|
||||||
.field("analyzer", "english")
|
.field("analyzer", "english")
|
||||||
.startObject("index_prefix").endObject()
|
.startObject("index_prefix").endObject()
|
||||||
.field("term_vector", "with_positions")
|
.field("term_vector", "with_positions")
|
||||||
.endObject().endObject().endObject().endObject().string();
|
.endObject().endObject().endObject().endObject());
|
||||||
|
|
||||||
DocumentMapper mapper = parser.parse("type", new CompressedXContent(mapping));
|
DocumentMapper mapper = parser.parse("type", new CompressedXContent(mapping));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue