use of org.frameworkset.elasticsearch.client.ConfigRestClientUtil in project bboss-elastic by bbossgroups.
the class CharEscapeUtilTest method escape.
@Test
public void escape() {
StringWriter writer = new StringWriter();
CharEscapeUtil charEscapeUtil = new CustomCharEscapeUtil(writer, false);
charEscapeUtil.writeString("/+\"\\", true);
System.out.println(writer.toString());
writer = new StringWriter();
charEscapeUtil = new CustomCharEscapeUtil(writer, true);
charEscapeUtil.writeString("&/+\"\\", true);
System.out.println(writer.toString());
ClientInterface util = (ConfigRestClientUtil) ElasticSearchHelper.getConfigRestClientUtil("demo7.xml");
Map params = new HashMap();
params.put("aaa", "_&/+\"\\.");
System.out.println(util.evalConfigDsl("testesencode", params));
}
Aggregations