Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.xpack.esql.VerificationException;
import org.elasticsearch.xpack.esql.action.AbstractEsqlIntegTestCase;
import org.elasticsearch.xpack.esql.action.EsqlCapabilities;
import org.junit.Before;

import java.util.List;
Expand Down Expand Up @@ -105,7 +104,6 @@ public void testNotWhereMatch() {
}

public void testWhereMatchWithScoring() {
assumeTrue("'METADATA _score' is disabled", EsqlCapabilities.Cap.METADATA_SCORE.isEnabled());
var query = """
FROM test
METADATA _score
Expand All @@ -122,7 +120,7 @@ public void testWhereMatchWithScoring() {
}

public void testWhereMatchWithScoringDifferentSort() {
assumeTrue("'METADATA _score' is disabled", EsqlCapabilities.Cap.METADATA_SCORE.isEnabled());

var query = """
FROM test
METADATA _score
Expand All @@ -139,7 +137,6 @@ public void testWhereMatchWithScoringDifferentSort() {
}

public void testWhereMatchWithScoringSortScore() {
assumeTrue("'METADATA _score' is disabled", EsqlCapabilities.Cap.METADATA_SCORE.isEnabled());
var query = """
FROM test
METADATA _score
Expand All @@ -156,7 +153,6 @@ public void testWhereMatchWithScoringSortScore() {
}

public void testWhereMatchWithScoringNoSort() {
assumeTrue("'METADATA _score' is disabled", EsqlCapabilities.Cap.METADATA_SCORE.isEnabled());
var query = """
FROM test
METADATA _score
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.xpack.esql.VerificationException;
import org.elasticsearch.xpack.esql.action.AbstractEsqlIntegTestCase;
import org.elasticsearch.xpack.esql.action.EsqlCapabilities;
import org.junit.Before;

import java.util.List;
Expand Down Expand Up @@ -106,7 +105,6 @@ public void testNotWhereMatch() {
}

public void testWhereMatchWithScoring() {
assumeTrue("'METADATA _score' is disabled", EsqlCapabilities.Cap.METADATA_SCORE.isEnabled());
var query = """
FROM test
METADATA _score
Expand All @@ -123,7 +121,6 @@ public void testWhereMatchWithScoring() {
}

public void testWhereMatchWithScoringDifferentSort() {
assumeTrue("'METADATA _score' is disabled", EsqlCapabilities.Cap.METADATA_SCORE.isEnabled());
var query = """
FROM test
METADATA _score
Expand All @@ -140,7 +137,6 @@ public void testWhereMatchWithScoringDifferentSort() {
}

public void testWhereMatchWithScoringNoSort() {
assumeTrue("'METADATA _score' is disabled", EsqlCapabilities.Cap.METADATA_SCORE.isEnabled());
var query = """
FROM test
METADATA _score
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.elasticsearch.index.query.QueryShardException;
import org.elasticsearch.xpack.esql.VerificationException;
import org.elasticsearch.xpack.esql.action.AbstractEsqlIntegTestCase;
import org.elasticsearch.xpack.esql.action.EsqlCapabilities;
import org.junit.Before;

import java.util.List;
Expand Down Expand Up @@ -140,7 +139,6 @@ private void createAndPopulateIndex() {
}

public void testWhereQstrWithScoring() {
assumeTrue("'METADATA _score' is disabled", EsqlCapabilities.Cap.METADATA_SCORE.isEnabled());
var query = """
FROM test
METADATA _score
Expand All @@ -165,7 +163,6 @@ public void testWhereQstrWithScoring() {
}

public void testWhereQstrWithScoringSorted() {
assumeTrue("'METADATA _score' is disabled", EsqlCapabilities.Cap.METADATA_SCORE.isEnabled());
var query = """
FROM test
METADATA _score
Expand All @@ -191,7 +188,6 @@ public void testWhereQstrWithScoringSorted() {
}

public void testWhereQstrWithScoringNoSort() {
assumeTrue("'METADATA _score' is disabled", EsqlCapabilities.Cap.METADATA_SCORE.isEnabled());
var query = """
FROM test
METADATA _score
Expand All @@ -215,7 +211,6 @@ public void testWhereQstrWithScoringNoSort() {
}

public void testWhereQstrWithNonPushableAndScoring() {
assumeTrue("'METADATA _score' is disabled", EsqlCapabilities.Cap.METADATA_SCORE.isEnabled());
var query = """
FROM test
METADATA _score
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7631,7 +7631,6 @@ private List<Set<String>> findFieldNamesInLookupJoinDescription(LocalExecutionPl
}

public void testScore() {
assumeTrue("'METADATA _score' is disabled", EsqlCapabilities.Cap.METADATA_SCORE.isEnabled());
var plan = physicalPlan("""
from test metadata _score
| where match(first_name, "john")
Expand All @@ -7658,7 +7657,6 @@ public void testScore() {
}

public void testScoreTopN() {
assumeTrue("'METADATA _score' is disabled", EsqlCapabilities.Cap.METADATA_SCORE.isEnabled());
var plan = physicalPlan("""
from test metadata _score
| where match(first_name, "john")
Expand Down