Elasticsearch 6.4: XContentBuilder fails to close when passed to request.mapping()Is Java “pass-by-reference” or “pass-by-value”?When to use LinkedList over ArrayList in Java?Make elasticsearch only return certain fields?Solr vs. ElasticSearchElasticsearch NumberFormatException when sorting by numeric and date fieldsElasticSearch Fields Mapping to String by default when indexingElasticSearch : More indices vs More typesElasticSearch terms aggregation throws exception on keyword inner fieldElasticsearch rejecting document upload as attempt to create a new mapping typeElasticSearch Aggregation of Text or Integer

How to handle many times series?

Does a bard know when a character uses their Bardic Inspiration?

Does the problem of P vs NP come under the category of Operational Research?

What is it exactly about flying a Flyboard across the English channel that made Zapata's thighs burn?

Can an unintentional murderer leave Ir Miklat for Shalosh Regalim?

Declaring a visitor to the UK as my "girlfriend" - effect on getting a Visitor visa?

Different answers of calculations in LuaLaTeX on local computer, lua compiler and on overleaf

Why wasn't interlaced CRT scanning done back and forth?

Is law enforcement responsible for damages made by a search warrant?

Does proof-of-work contribute directly to prevent double-spending?

How to design an effective polearm-bow hybrid?

Reasons for using monsters as bioweapons

Do moonless nights cause dim light to become darkness, and bright light (e.g. from torches) to become dim light?

coding the arrow's path in flowchart

How was the cosmonaut of the Soviet moon mission supposed to get back in the return vehicle?

How to avoid a lengthy conversation with someone from the neighborhood I don't share interests with

Why does the friction act on the inward direction when a car makes a turn on a level road?

What is the most 'environmentally friendly' way to learn to fly?

Can you shove a friendly creature?

Astable 555 circuit not oscillating

What printing process is this?

Want to manipulate and visualize differential equation of a falling object

Can't understand an ACT practice problem: Triangle appears to be isosceles, why isn't the answer 7.3~ here?

Why do my fried eggs start browning very fast?



Elasticsearch 6.4: XContentBuilder fails to close when passed to request.mapping()


Is Java “pass-by-reference” or “pass-by-value”?When to use LinkedList over ArrayList in Java?Make elasticsearch only return certain fields?Solr vs. ElasticSearchElasticsearch NumberFormatException when sorting by numeric and date fieldsElasticSearch Fields Mapping to String by default when indexingElasticSearch : More indices vs More typesElasticSearch terms aggregation throws exception on keyword inner fieldElasticsearch rejecting document upload as attempt to create a new mapping typeElasticSearch Aggregation of Text or Integer






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I've been hitting the same problem with mappings on 6.4 over and over and I wonder what I've been doing wrong.



I'm simply creating a mapping to add to an index when creating it, but it always breaks my test with a java.lang.IllegalStateException: Failed to close the XContentBuilder



This is how I create the XContentBuilder object for my mapping



public XContentBuilder buildIndexMapping() throws IOException
XContentBuilder mapping = XContentFactory.jsonBuilder()
.startObject()
.startObject("_doc")
.startObject("_routing")
.field( "required", true )
.endObject()
.startObject( "properties" )
.startObject( "launchCode" )
.field( "type", "text" )
.endObject()
.startObject( "tenant_id" )
.field("type", "keyword")
.endObject()
.startObject( "environment_id" )
.field( "type", "keyword" )
.endObject()
.startObject("app_id")
.field( "type", "keyword" )
.startObject( "launch_id" )
.field( "type", "keyword" )
.endObject()
.startObject( "timestamp" )
.field( "type", "date" )
.endObject()
.startObject( "data" )
.startObject( "properties" )
.startObject( "changed" )
.field( "type", "boolean" )
.endObject()
.startObject( "census_groups" )
.field( "type", "object" )
.endObject()
.startObject( "local_member_id" )
.field( "type", "keyword" )
.endObject()
.startObject( "last_service_counter" )
.field( "type", "integer" )
.endObject()
.startObject( "last_election_counter" )
.field( "type", "integer" )
.endObject()
.startObject( "last_election_update_counter" )
.field( "type", "integer" )
.endObject()
.startObject( "last_membership_counter" )
.field( "type", "integer" )
.endObject()
.startObject( "last_service_config_counter" )
.field( "type", "integer" )
.endObject()
.startObject( "last_service_file_counter" )
.field( "type", "integer" )
.endObject()
.endObject() //properties
.endObject() //data
.endObject() //properties
.endObject() //doc
.endObject(); //root
return mapping;



And this is how I create the index request.



public CreateIndexRequest buildIndexRequest( String indexType, List<String> tenantList ) throws IOException
SimpleDateFormat format = new SimpleDateFormat( "yyyy-MM-dd" );
String date = format.format( new Date() );
String indexName = date + "-" + indexType;
CreateIndexRequest request = new CreateIndexRequest( indexName );
request.aliases( buildIndexAliases( tenantList, indexType ) );
request.settings( buildIndexSettings() );
request.mapping( "_doc", buildIndexMapping() ); //Test passes when commented out
return request;



And this is how I create the index.



public CreateIndexResponse createIndex( CreateIndexRequest request )
CreateIndexResponse response = null;
try
L.info( "Requesting creation of the index" );
response = client.indices().create( request, RequestOptions.DEFAULT );
if( response.isAcknowledged() )
L.info( "Index created" );

else
L.warn( "Index not created: request not acknowledged" );


catch( IOException e )
L.error( "Could not create Index" );

return response;



And this is my unit test.



@Test
public void createIndexTest()
try
CreateIndexRequest request = client.buildIndexRequest( "census", this.tenantList );
CreateIndexResponse response = client.createIndex( request );
if (!response.isAcknowledged())
fail();


catch( IOException e )
fail();





And this is the body of an index request that successfully creates the index with the mapping when using PUT /index through Postman.




"aliases":
"census-tenant-a":
"filter":
"term":
"_routing": "tenant-a"

,
"index_routing": "tenant-a",
"search_routing": "tenant-a"
,
"census-tenant-b":
"filter":
"term":
"_routing": "tenant-b"

,
"index_routing": "tenant-b",
"search_routing": "tenant-b"
,
"census-tenant-c":
"filter":
"term":
"_routing": "tenant-c"

,
"index_routing": "tenant-c",
"search_routing": "tenant-c"

,
"mappings":
"_doc":
"_routing":
"required": true
,
"properties":
"launch_code":
"type": "text"
,
"tenant_id":
"type": "keyword"
,
"environment_id":
"type": "keyword"
,
"app_id":
"type": "keyword"
,
"launch_id":
"type": "keyword"
,
"timestamp":
"type": "date"
,
"data":
"properties":
"changed":
"type": "boolean"
,
"census_groups":
"type": "object"
,
"local_member_id":
"type": "keyword"
,
"last_service_counter":
"type": "integer"
,
"last_election_counter":
"type": "integer"
,
"last_election_update_counter":
"type": "integer"
,
"last_membership_counter":
"type": "integer"
,
"last_service_config_counter":
"type": "integer"
,
"last_service_file_counter":
"type": "integer"





,
"settings":
"index":
"number_of_shards": "3",
"number_of_replicas": "1"





I really can't understand what is happening. I know the XContentBuilder should be closed after used to avoid memory leaks.



However, I would like to get the index created first and later deal with the resource closure.



I am using the same logic to create aliases and settings, it only doesn't work with the mapping.



Moreover as mentioned, the JSON representation of my XContentBuilder succeeds when I use the Index API with PUT /index.



Thanks!










share|improve this question
































    0















    I've been hitting the same problem with mappings on 6.4 over and over and I wonder what I've been doing wrong.



    I'm simply creating a mapping to add to an index when creating it, but it always breaks my test with a java.lang.IllegalStateException: Failed to close the XContentBuilder



    This is how I create the XContentBuilder object for my mapping



    public XContentBuilder buildIndexMapping() throws IOException
    XContentBuilder mapping = XContentFactory.jsonBuilder()
    .startObject()
    .startObject("_doc")
    .startObject("_routing")
    .field( "required", true )
    .endObject()
    .startObject( "properties" )
    .startObject( "launchCode" )
    .field( "type", "text" )
    .endObject()
    .startObject( "tenant_id" )
    .field("type", "keyword")
    .endObject()
    .startObject( "environment_id" )
    .field( "type", "keyword" )
    .endObject()
    .startObject("app_id")
    .field( "type", "keyword" )
    .startObject( "launch_id" )
    .field( "type", "keyword" )
    .endObject()
    .startObject( "timestamp" )
    .field( "type", "date" )
    .endObject()
    .startObject( "data" )
    .startObject( "properties" )
    .startObject( "changed" )
    .field( "type", "boolean" )
    .endObject()
    .startObject( "census_groups" )
    .field( "type", "object" )
    .endObject()
    .startObject( "local_member_id" )
    .field( "type", "keyword" )
    .endObject()
    .startObject( "last_service_counter" )
    .field( "type", "integer" )
    .endObject()
    .startObject( "last_election_counter" )
    .field( "type", "integer" )
    .endObject()
    .startObject( "last_election_update_counter" )
    .field( "type", "integer" )
    .endObject()
    .startObject( "last_membership_counter" )
    .field( "type", "integer" )
    .endObject()
    .startObject( "last_service_config_counter" )
    .field( "type", "integer" )
    .endObject()
    .startObject( "last_service_file_counter" )
    .field( "type", "integer" )
    .endObject()
    .endObject() //properties
    .endObject() //data
    .endObject() //properties
    .endObject() //doc
    .endObject(); //root
    return mapping;



    And this is how I create the index request.



    public CreateIndexRequest buildIndexRequest( String indexType, List<String> tenantList ) throws IOException
    SimpleDateFormat format = new SimpleDateFormat( "yyyy-MM-dd" );
    String date = format.format( new Date() );
    String indexName = date + "-" + indexType;
    CreateIndexRequest request = new CreateIndexRequest( indexName );
    request.aliases( buildIndexAliases( tenantList, indexType ) );
    request.settings( buildIndexSettings() );
    request.mapping( "_doc", buildIndexMapping() ); //Test passes when commented out
    return request;



    And this is how I create the index.



    public CreateIndexResponse createIndex( CreateIndexRequest request )
    CreateIndexResponse response = null;
    try
    L.info( "Requesting creation of the index" );
    response = client.indices().create( request, RequestOptions.DEFAULT );
    if( response.isAcknowledged() )
    L.info( "Index created" );

    else
    L.warn( "Index not created: request not acknowledged" );


    catch( IOException e )
    L.error( "Could not create Index" );

    return response;



    And this is my unit test.



    @Test
    public void createIndexTest()
    try
    CreateIndexRequest request = client.buildIndexRequest( "census", this.tenantList );
    CreateIndexResponse response = client.createIndex( request );
    if (!response.isAcknowledged())
    fail();


    catch( IOException e )
    fail();





    And this is the body of an index request that successfully creates the index with the mapping when using PUT /index through Postman.




    "aliases":
    "census-tenant-a":
    "filter":
    "term":
    "_routing": "tenant-a"

    ,
    "index_routing": "tenant-a",
    "search_routing": "tenant-a"
    ,
    "census-tenant-b":
    "filter":
    "term":
    "_routing": "tenant-b"

    ,
    "index_routing": "tenant-b",
    "search_routing": "tenant-b"
    ,
    "census-tenant-c":
    "filter":
    "term":
    "_routing": "tenant-c"

    ,
    "index_routing": "tenant-c",
    "search_routing": "tenant-c"

    ,
    "mappings":
    "_doc":
    "_routing":
    "required": true
    ,
    "properties":
    "launch_code":
    "type": "text"
    ,
    "tenant_id":
    "type": "keyword"
    ,
    "environment_id":
    "type": "keyword"
    ,
    "app_id":
    "type": "keyword"
    ,
    "launch_id":
    "type": "keyword"
    ,
    "timestamp":
    "type": "date"
    ,
    "data":
    "properties":
    "changed":
    "type": "boolean"
    ,
    "census_groups":
    "type": "object"
    ,
    "local_member_id":
    "type": "keyword"
    ,
    "last_service_counter":
    "type": "integer"
    ,
    "last_election_counter":
    "type": "integer"
    ,
    "last_election_update_counter":
    "type": "integer"
    ,
    "last_membership_counter":
    "type": "integer"
    ,
    "last_service_config_counter":
    "type": "integer"
    ,
    "last_service_file_counter":
    "type": "integer"





    ,
    "settings":
    "index":
    "number_of_shards": "3",
    "number_of_replicas": "1"





    I really can't understand what is happening. I know the XContentBuilder should be closed after used to avoid memory leaks.



    However, I would like to get the index created first and later deal with the resource closure.



    I am using the same logic to create aliases and settings, it only doesn't work with the mapping.



    Moreover as mentioned, the JSON representation of my XContentBuilder succeeds when I use the Index API with PUT /index.



    Thanks!










    share|improve this question




























      0












      0








      0








      I've been hitting the same problem with mappings on 6.4 over and over and I wonder what I've been doing wrong.



      I'm simply creating a mapping to add to an index when creating it, but it always breaks my test with a java.lang.IllegalStateException: Failed to close the XContentBuilder



      This is how I create the XContentBuilder object for my mapping



      public XContentBuilder buildIndexMapping() throws IOException
      XContentBuilder mapping = XContentFactory.jsonBuilder()
      .startObject()
      .startObject("_doc")
      .startObject("_routing")
      .field( "required", true )
      .endObject()
      .startObject( "properties" )
      .startObject( "launchCode" )
      .field( "type", "text" )
      .endObject()
      .startObject( "tenant_id" )
      .field("type", "keyword")
      .endObject()
      .startObject( "environment_id" )
      .field( "type", "keyword" )
      .endObject()
      .startObject("app_id")
      .field( "type", "keyword" )
      .startObject( "launch_id" )
      .field( "type", "keyword" )
      .endObject()
      .startObject( "timestamp" )
      .field( "type", "date" )
      .endObject()
      .startObject( "data" )
      .startObject( "properties" )
      .startObject( "changed" )
      .field( "type", "boolean" )
      .endObject()
      .startObject( "census_groups" )
      .field( "type", "object" )
      .endObject()
      .startObject( "local_member_id" )
      .field( "type", "keyword" )
      .endObject()
      .startObject( "last_service_counter" )
      .field( "type", "integer" )
      .endObject()
      .startObject( "last_election_counter" )
      .field( "type", "integer" )
      .endObject()
      .startObject( "last_election_update_counter" )
      .field( "type", "integer" )
      .endObject()
      .startObject( "last_membership_counter" )
      .field( "type", "integer" )
      .endObject()
      .startObject( "last_service_config_counter" )
      .field( "type", "integer" )
      .endObject()
      .startObject( "last_service_file_counter" )
      .field( "type", "integer" )
      .endObject()
      .endObject() //properties
      .endObject() //data
      .endObject() //properties
      .endObject() //doc
      .endObject(); //root
      return mapping;



      And this is how I create the index request.



      public CreateIndexRequest buildIndexRequest( String indexType, List<String> tenantList ) throws IOException
      SimpleDateFormat format = new SimpleDateFormat( "yyyy-MM-dd" );
      String date = format.format( new Date() );
      String indexName = date + "-" + indexType;
      CreateIndexRequest request = new CreateIndexRequest( indexName );
      request.aliases( buildIndexAliases( tenantList, indexType ) );
      request.settings( buildIndexSettings() );
      request.mapping( "_doc", buildIndexMapping() ); //Test passes when commented out
      return request;



      And this is how I create the index.



      public CreateIndexResponse createIndex( CreateIndexRequest request )
      CreateIndexResponse response = null;
      try
      L.info( "Requesting creation of the index" );
      response = client.indices().create( request, RequestOptions.DEFAULT );
      if( response.isAcknowledged() )
      L.info( "Index created" );

      else
      L.warn( "Index not created: request not acknowledged" );


      catch( IOException e )
      L.error( "Could not create Index" );

      return response;



      And this is my unit test.



      @Test
      public void createIndexTest()
      try
      CreateIndexRequest request = client.buildIndexRequest( "census", this.tenantList );
      CreateIndexResponse response = client.createIndex( request );
      if (!response.isAcknowledged())
      fail();


      catch( IOException e )
      fail();





      And this is the body of an index request that successfully creates the index with the mapping when using PUT /index through Postman.




      "aliases":
      "census-tenant-a":
      "filter":
      "term":
      "_routing": "tenant-a"

      ,
      "index_routing": "tenant-a",
      "search_routing": "tenant-a"
      ,
      "census-tenant-b":
      "filter":
      "term":
      "_routing": "tenant-b"

      ,
      "index_routing": "tenant-b",
      "search_routing": "tenant-b"
      ,
      "census-tenant-c":
      "filter":
      "term":
      "_routing": "tenant-c"

      ,
      "index_routing": "tenant-c",
      "search_routing": "tenant-c"

      ,
      "mappings":
      "_doc":
      "_routing":
      "required": true
      ,
      "properties":
      "launch_code":
      "type": "text"
      ,
      "tenant_id":
      "type": "keyword"
      ,
      "environment_id":
      "type": "keyword"
      ,
      "app_id":
      "type": "keyword"
      ,
      "launch_id":
      "type": "keyword"
      ,
      "timestamp":
      "type": "date"
      ,
      "data":
      "properties":
      "changed":
      "type": "boolean"
      ,
      "census_groups":
      "type": "object"
      ,
      "local_member_id":
      "type": "keyword"
      ,
      "last_service_counter":
      "type": "integer"
      ,
      "last_election_counter":
      "type": "integer"
      ,
      "last_election_update_counter":
      "type": "integer"
      ,
      "last_membership_counter":
      "type": "integer"
      ,
      "last_service_config_counter":
      "type": "integer"
      ,
      "last_service_file_counter":
      "type": "integer"





      ,
      "settings":
      "index":
      "number_of_shards": "3",
      "number_of_replicas": "1"





      I really can't understand what is happening. I know the XContentBuilder should be closed after used to avoid memory leaks.



      However, I would like to get the index created first and later deal with the resource closure.



      I am using the same logic to create aliases and settings, it only doesn't work with the mapping.



      Moreover as mentioned, the JSON representation of my XContentBuilder succeeds when I use the Index API with PUT /index.



      Thanks!










      share|improve this question
















      I've been hitting the same problem with mappings on 6.4 over and over and I wonder what I've been doing wrong.



      I'm simply creating a mapping to add to an index when creating it, but it always breaks my test with a java.lang.IllegalStateException: Failed to close the XContentBuilder



      This is how I create the XContentBuilder object for my mapping



      public XContentBuilder buildIndexMapping() throws IOException
      XContentBuilder mapping = XContentFactory.jsonBuilder()
      .startObject()
      .startObject("_doc")
      .startObject("_routing")
      .field( "required", true )
      .endObject()
      .startObject( "properties" )
      .startObject( "launchCode" )
      .field( "type", "text" )
      .endObject()
      .startObject( "tenant_id" )
      .field("type", "keyword")
      .endObject()
      .startObject( "environment_id" )
      .field( "type", "keyword" )
      .endObject()
      .startObject("app_id")
      .field( "type", "keyword" )
      .startObject( "launch_id" )
      .field( "type", "keyword" )
      .endObject()
      .startObject( "timestamp" )
      .field( "type", "date" )
      .endObject()
      .startObject( "data" )
      .startObject( "properties" )
      .startObject( "changed" )
      .field( "type", "boolean" )
      .endObject()
      .startObject( "census_groups" )
      .field( "type", "object" )
      .endObject()
      .startObject( "local_member_id" )
      .field( "type", "keyword" )
      .endObject()
      .startObject( "last_service_counter" )
      .field( "type", "integer" )
      .endObject()
      .startObject( "last_election_counter" )
      .field( "type", "integer" )
      .endObject()
      .startObject( "last_election_update_counter" )
      .field( "type", "integer" )
      .endObject()
      .startObject( "last_membership_counter" )
      .field( "type", "integer" )
      .endObject()
      .startObject( "last_service_config_counter" )
      .field( "type", "integer" )
      .endObject()
      .startObject( "last_service_file_counter" )
      .field( "type", "integer" )
      .endObject()
      .endObject() //properties
      .endObject() //data
      .endObject() //properties
      .endObject() //doc
      .endObject(); //root
      return mapping;



      And this is how I create the index request.



      public CreateIndexRequest buildIndexRequest( String indexType, List<String> tenantList ) throws IOException
      SimpleDateFormat format = new SimpleDateFormat( "yyyy-MM-dd" );
      String date = format.format( new Date() );
      String indexName = date + "-" + indexType;
      CreateIndexRequest request = new CreateIndexRequest( indexName );
      request.aliases( buildIndexAliases( tenantList, indexType ) );
      request.settings( buildIndexSettings() );
      request.mapping( "_doc", buildIndexMapping() ); //Test passes when commented out
      return request;



      And this is how I create the index.



      public CreateIndexResponse createIndex( CreateIndexRequest request )
      CreateIndexResponse response = null;
      try
      L.info( "Requesting creation of the index" );
      response = client.indices().create( request, RequestOptions.DEFAULT );
      if( response.isAcknowledged() )
      L.info( "Index created" );

      else
      L.warn( "Index not created: request not acknowledged" );


      catch( IOException e )
      L.error( "Could not create Index" );

      return response;



      And this is my unit test.



      @Test
      public void createIndexTest()
      try
      CreateIndexRequest request = client.buildIndexRequest( "census", this.tenantList );
      CreateIndexResponse response = client.createIndex( request );
      if (!response.isAcknowledged())
      fail();


      catch( IOException e )
      fail();





      And this is the body of an index request that successfully creates the index with the mapping when using PUT /index through Postman.




      "aliases":
      "census-tenant-a":
      "filter":
      "term":
      "_routing": "tenant-a"

      ,
      "index_routing": "tenant-a",
      "search_routing": "tenant-a"
      ,
      "census-tenant-b":
      "filter":
      "term":
      "_routing": "tenant-b"

      ,
      "index_routing": "tenant-b",
      "search_routing": "tenant-b"
      ,
      "census-tenant-c":
      "filter":
      "term":
      "_routing": "tenant-c"

      ,
      "index_routing": "tenant-c",
      "search_routing": "tenant-c"

      ,
      "mappings":
      "_doc":
      "_routing":
      "required": true
      ,
      "properties":
      "launch_code":
      "type": "text"
      ,
      "tenant_id":
      "type": "keyword"
      ,
      "environment_id":
      "type": "keyword"
      ,
      "app_id":
      "type": "keyword"
      ,
      "launch_id":
      "type": "keyword"
      ,
      "timestamp":
      "type": "date"
      ,
      "data":
      "properties":
      "changed":
      "type": "boolean"
      ,
      "census_groups":
      "type": "object"
      ,
      "local_member_id":
      "type": "keyword"
      ,
      "last_service_counter":
      "type": "integer"
      ,
      "last_election_counter":
      "type": "integer"
      ,
      "last_election_update_counter":
      "type": "integer"
      ,
      "last_membership_counter":
      "type": "integer"
      ,
      "last_service_config_counter":
      "type": "integer"
      ,
      "last_service_file_counter":
      "type": "integer"





      ,
      "settings":
      "index":
      "number_of_shards": "3",
      "number_of_replicas": "1"





      I really can't understand what is happening. I know the XContentBuilder should be closed after used to avoid memory leaks.



      However, I would like to get the index created first and later deal with the resource closure.



      I am using the same logic to create aliases and settings, it only doesn't work with the mapping.



      Moreover as mentioned, the JSON representation of my XContentBuilder succeeds when I use the Index API with PUT /index.



      Thanks!







      java elasticsearch






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 27 at 1:37







      rafaelbattesti

















      asked Mar 27 at 1:01









      rafaelbattestirafaelbattesti

      5134 silver badges12 bronze badges




      5134 silver badges12 bronze badges

























          0






          active

          oldest

          votes










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55368302%2felasticsearch-6-4-xcontentbuilder-fails-to-close-when-passed-to-request-mapping%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55368302%2felasticsearch-6-4-xcontentbuilder-fails-to-close-when-passed-to-request-mapping%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript