Skip to content

Instantly share code, notes, and snippets.

@nezaniel
Created September 16, 2014 13:51
Show Gist options
  • Save nezaniel/f55bab879ee0062048aa to your computer and use it in GitHub Desktop.
Save nezaniel/f55bab879ee0062048aa to your computer and use it in GitHub Desktop.
@override.searchResults = ${this.sortedSearchQuery.limit(20).execute()}
@override.zipLocation = ${request.arguments.zipCode ? Location.fromGermanPostalCode(request.arguments.zipCode) : NULL}
zipLocation = ${zipLocation}
searchQuery = ${Search.query(site).nodeType('ACME:ACME')}
sortedSearchQuery = ${this.searchQuery.sortGeoDistanceAsc('location', Location.latitude(this.zipLocation), Location.longitude(this.zipLocation), 'km')}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment