Skip to content

Commit

Permalink
additional cleanup and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
billmurrin committed Jan 17, 2018
1 parent 49baac2 commit 956825b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public List<String> evaluate(FunctionArgs functionArgs, EvaluationContext evalua

if (!dstField.equals("timestamp")) {
this.query = dstField + ":" + srcFieldValue.replaceAll(escapeChars, "\\\\$0");
LOG.info("Query: {}", this.query.toString());
LOG.debug("SLookup Query: {}", this.query.toString());
}

this.filter = "streams:" + stream;
Expand Down Expand Up @@ -125,14 +125,14 @@ public List<String> evaluate(FunctionArgs functionArgs, EvaluationContext evalua
SearchResult response = this.searches.search(searchesConfig);
LOG.debug("Search config - field: {}, order: {}", searchesConfig.sorting().getField().toString(), searchesConfig.sorting().asElastic().toString());
if (response.getResults().size() == 0) {
LOG.info("No Search Results observed.");
LOG.debug("No Search Results observed.");
return blankList;
}
else
{

if (response.getResults().size() >= 1) {
LOG.info("There are results");
LOG.debug("There are results");
List<ResultMessage> resultMessages = response.getResults();
try {
//Map<String, Object> resultFields = resultMessages.get(0).getMessage().getFields();
Expand Down

0 comments on commit 956825b

Please sign in to comment.