@Override
  public boolean write(SimpleSearchEvent event) {
    HttpGet httpGet = new HttpGet(esBaseUrl
        + ES_QUERY_TEMPLATE.replace("${INDEX_NAME}", indexName).replace("${QUERY_STRING}",
            event.getQueryString().replace(" ", "+")));
    LOG.info("Sending ES search event " + httpGet.getRequestLine());
    return execute(httpGet);
  }
@ Override public boolean write ( SimpleSearchEvent event ) { HttpGet httpGet = new HttpGet ( esBaseUrl + ES_QUERY_TEMPLATE . replace ( "${INDEX_NAME}" , indexName ) . replace ( "${QUERY_STRING}" , event . getQueryString ( ) . replace ( " " , "+" ) ) ) ; LOG . info ( "Sending ES search event " + httpGet . getRequestLine ( ) ) ; return execute ( httpGet ) ; }
(non-Javadoc)

@see com.sematext.ag.sink.Sink#write(com.sematext.ag.Event)