Permalink
Browse files

Comments are not allowed in mapping

checked jackson, there won't be an overhead in enabling comments. Added, with the caveat that when used with mappings, and calling "get mapping", the comments will not be returned
closes #1394
  • Loading branch information...
kimchy committed Jan 7, 2013
1 parent 2c4b9d9 commit 6f7253c5242e7fb94d959ce291c88f93887e3bde
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/main/java/org/elasticsearch/common/xcontent/json/JsonXContent.java
@@ -45,6 +45,7 @@ public static XContentBuilder contentBuilder() throws IOException {
jsonFactory = new JsonFactory();
jsonFactory.configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);
jsonFactory.configure(JsonGenerator.Feature.QUOTE_FIELD_NAMES, true);
jsonFactory.configure(JsonParser.Feature.ALLOW_COMMENTS, true);
jsonXContent = new JsonXContent();
}

0 comments on commit 6f7253c

Please sign in to comment.