Skip to content

Instantly share code, notes, and snippets.

@altfatterz
Last active December 22, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save altfatterz/6484878 to your computer and use it in GitHub Desktop.
Save altfatterz/6484878 to your computer and use it in GitHub Desktop.
notifyuser
GetResponse matchedQuery = client.prepareGet("households","_percolator", "myQuery")
.setFetchSource("user_id", "query")
.execute().actionGet();
assertThat(((String) matchedQuery.getSource().get("user_id")), is("123"));
assertThat(matchedQuery.getSource().get("query"), is(nullValue()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment