Should be roughly like this: { "query": { "custom_score": { "query": { "query_string": { "query": "blah blah", "fields": [ "text^30", "ad", "st", "cn", "co" ], "default_operator": "AND" } }, "script": "_score * (doc['po'].empty ? 1 : doc['po'].value == 0.0 ? 1 : doc['po'].value)" } } }
-- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/07ae02b5-39d9-410d-892e-8ff366de515c%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.