Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,6 @@ tests:
- class: org.elasticsearch.xpack.restart.MLModelDeploymentFullClusterRestartIT
method: testDeploymentSurvivesRestart {cluster=OLD}
issue: https://github.com/elastic/elasticsearch/issues/124160
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
method: test {p0=search/610_function_score/Random}
issue: https://github.com/elastic/elasticsearch/issues/125010
- class: org.elasticsearch.xpack.ilm.history.ILMHistoryItemTests
method: testTruncateLongError
issue: https://github.com/elastic/elasticsearch/issues/125216
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,55 @@
}
},
"random_score": {
"seed": 10
"seed": 10,
"field": "uuid"
}
}

- length: { hits.hits: 2 }
- match: { hits.total.value: 2 }

---
"No field only runs on 9.x":
- requires:
cluster_features: [ "gte_v8.20.0" ]
reason: "empty field works seamlessly (relying on _seqno since 9.x)"
- do:
indices.create:
index: test
body:
mappings:
properties:
text:
type: text

- do:
index:
index: test
id: "1"
body: { text: "foo bar", uuid: 1234 }

- do:
index:
index: test
id: "2"
body: { text: "high bar", uuid: 5678 }

- do:
index:
index: test
id: "3"
body: { text: "raise bar", uuid: 9012 }

- do:
index:
index: test
id: "3"
body: { text: "raise hands", uuid: 3456 }

- do:
indices.refresh:
index: [ test ]
- do:
search:
index: test
Expand All @@ -91,10 +133,8 @@
}
},
"random_score": {
"seed": 10,
"field": "uuid"
"seed": 10
}
}

- length: { hits.hits: 2 }
- match: { hits.total.value: 2 }