Skip to content

Commit

Permalink
Update server/src/main/java/org/elasticsearch/index/mapper/IdFieldMap…
Browse files Browse the repository at this point in the history
…per.java


Rewording

Co-Authored-By: Adrien Grand <jpountz@gmail.com>
  • Loading branch information
jimczi and jpountz committed Nov 22, 2019
1 parent 537db09 commit edd4cb6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public class IdFieldMapper extends MetadataFieldMapper {
private static final DeprecationLogger deprecationLogger = new DeprecationLogger(LogManager.getLogger(IdFieldMapper.class));
static final String ID_FIELD_DATA_DEPRECATION_MESSAGE =
"Loading the fielddata on the _id field is deprecated and will be removed in future versions. "
+ "If you require sorting or aggregating on this field you should use concrete copy field with docvalues enabled.";
+ "If you require sorting or aggregating on this field you should also include the id in the "
+ "body of your documents, and map this field as a keyword field that has [doc_values] enabled";

public static final String NAME = "_id";

Expand Down

0 comments on commit edd4cb6

Please sign in to comment.