Skip to content

Instantly share code, notes, and snippets.

@vlado
Created April 22, 2015 07:47
Show Gist options
  • Save vlado/feac204a88bc6443e486 to your computer and use it in GitHub Desktop.
Save vlado/feac204a88bc6443e486 to your computer and use it in GitHub Desktop.
[BD] Groovy script to calculate custom scoring when recommending physician
if (doc['primary_specialization_name'].value == specialization_name) {
_score + 1000
} else {
_score
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment