@@ -670,9 +670,11 @@ public void testTripleExtractorPerField() {
670670 * [[QueryBuilderAndTags{queryBuilder=[null], tags=[]}]]
671671 */
672672 public void testEvalWithScoreImplicitLimit () {
673+ assumeTrue ("[SCORE] function is only available in snapshot builds" , EsqlCapabilities .Cap .SCORE_FUNCTION .isEnabled ());
674+
673675 var plan = physicalPlan ("""
674- from test
675- | eval s = score(match (first_name, "foo"))
676+ FROM test
677+ | EVAL s = SCORE(MATCH (first_name, "foo"))
676678 """ );
677679
678680 var optimized = optimizedPlan (plan );
@@ -702,10 +704,12 @@ public void testEvalWithScoreImplicitLimit() {
702704 * [[QueryBuilderAndTags{queryBuilder=[null], tags=[]}]]
703705 */
704706 public void testEvalWithScoreExplicitLimit () {
707+ assumeTrue ("[SCORE] function is only available in snapshot builds" , EsqlCapabilities .Cap .SCORE_FUNCTION .isEnabled ());
708+
705709 var plan = physicalPlan ("""
706- from test
707- | eval s = score(match (first_name, "foo"))
708- | limit 42
710+ FROM test
711+ | EVAL s = SCORE(MATCH (first_name, "foo"))
712+ | LIMIT 42
709713 """ );
710714
711715 var optimized = optimizedPlan (plan );
@@ -743,6 +747,8 @@ public void testEvalWithScoreExplicitLimit() {
743747 * }], tags=[]}]]
744748 **/
745749 public void testEvalWithScoreAndFilterOnEval () {
750+ assumeTrue ("[SCORE] function is only available in snapshot builds" , EsqlCapabilities .Cap .SCORE_FUNCTION .isEnabled ());
751+
746752 var plan = physicalPlan ("""
747753 FROM test
748754 | EVAL s = SCORE(MATCH(first_name, "foo"))
@@ -796,6 +802,8 @@ public void testEvalWithScoreAndFilterOnEval() {
796802 * }], tags=[]}]]
797803 **/
798804 public void testEvalWithScoreAndGenericFilter () {
805+ assumeTrue ("[SCORE] function is only available in snapshot builds" , EsqlCapabilities .Cap .SCORE_FUNCTION .isEnabled ());
806+
799807 var plan = physicalPlan ("""
800808 FROM test
801809 | EVAL s = SCORE(MATCH(first_name, "foo"))
@@ -847,6 +855,8 @@ public void testEvalWithScoreAndGenericFilter() {
847855 * }], tags=[]}]]
848856 */
849857 public void testEvalWithScoreForTopN () {
858+ assumeTrue ("[SCORE] function is only available in snapshot builds" , EsqlCapabilities .Cap .SCORE_FUNCTION .isEnabled ());
859+
850860 var plan = physicalPlan ("""
851861 FROM test
852862 | EVAL s = SCORE(MATCH(first_name, "foo"))
0 commit comments