Improves disabled fielddata error message (#23841)

Closes #22768
This commit is contained in:
Colin Goodheart-Smithe 2017-03-31 10:01:07 +01:00 committed by GitHub
parent 5badf68bd9
commit 9f66b8cd38
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ public class TextFieldMapper extends FieldMapper {
if (fielddata == false) {
throw new IllegalArgumentException("Fielddata is disabled on text fields by default. Set fielddata=true on [" + name()
+ "] in order to load fielddata in memory by uninverting the inverted index. Note that this can however "
+ "use significant memory.");
+ "use significant memory. Alternatively use a keyword field instead.");
}
return new PagedBytesIndexFieldData.Builder(fielddataMinFrequency, fielddataMaxFrequency, fielddataMinSegmentSize);
}