Skip to content

Instantly share code, notes, and snippets.

@nik9000
Created April 25, 2014 16:06
Show Gist options
  • Save nik9000/11294678 to your computer and use it in GitHub Desktop.
Save nik9000/11294678 to your computer and use it in GitHub Desktop.
diff --git a/src/main/java/org/elasticsearch/index/analysis/StandardAnalyzerProvider.java b/src/main/java/org/elasticsearch
@@ -60,4 +63,8 @@ public class StandardAnalyzerProvider extends AbstractIndexAnalyzerProvider<Stan
public StandardAnalyzer get() {
return this.standardAnalyzer;
}
+
+ public static void buildAsDefault(XContentBuilder builder) throws IOException {
+ AnalyzerXContentUtil.buildAnalyzer(builder, "standard", "standard", "standard", "lowercase");
+ }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment