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/bc45f154-a0b3-4847-83e2-3acb404a73d2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
