Probably just remove the colon after the question mark (typo?):

((doc['alias'].value == doc['rootTerm'].value) ? 1 : 0))

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/ecc3abb6-8663-4c10-8831-713ea38b4263%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to