Use double quotes \” to define string literals; not single quotes ‘” – How to solve this Elasticsearch error

Opster Team

, Version: 1.7-8.0

Log Context

Log “Use double quotes [\”] to define string literals; not single quotes [‘]””classname  is AbstractBuilder.java We extracted the following from Elasticsearch source code for those seeking an in-depth context :

}
 } 
 private static void checkForSingleQuotedString(Source source; String text; int i) {
 if (text.charAt(i) == '\'') {
 throw new ParsingException(source; "Use double quotes [\"] to define string literals; not single quotes [']"");

 

Watch product tour

Try AutoOps to find & fix Elasticsearch problems

Analyze Your Cluster
Skip to content