Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "script_score" : {
- "script" : "_score * doc['my_numeric_field'].value"
- }
- "script_score" : {
- "script" : "_score * ("+LANG+" == doc['lang'].value ? 2 : 1)"
- }
- LANG == doc['lang'] ? 2 : 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement