Skip to content

Instantly share code, notes, and snippets.

@altfatterz
Last active December 22, 2015 14:09
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/6483875 to your computer and use it in GitHub Desktop.
Save altfatterz/6483875 to your computer and use it in GitHub Desktop.
filterBuilder
private FilterBuilder filterBuilder() {
return boolFilter()
.must(rangeFilter("price").from("250000").to("300000"))
.must(geoDistanceFilter("location")
.point(52.09, 5.11)
.distance(5, DistanceUnit.KILOMETERS)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment