Reranking nested field

OS 2.12.0

Hi all,

How to use cross-encoder model to rerank a nested text field?

I tried the below but it seems like rerank does not have any effect!

PUT /_search/pipeline/ms-marco-MiniLM-L-12-v2_rerank
{
“response_processors”: [
{
“rerank”: {
“ml_opensearch”: {
“model_id”: “zyfmI44BdjEy2-xVoJ0V”
},
“context”: {
“document_fields”: [ “content.text”,“text”]
}
}
}
]
}

PUT test_nested
{
“mappings”: {
“properties”: {
“content”: {
“type”: “nested”,
“properties”: {
“text”:{
“type”:“text”
},
“page”:{
“type”:“long”
}
}
}
}
}
}

PUT test_nested/_doc/1
{
“content”:[{“text”:“good morning”,“page”: 1},
{“text”:“good evening”,“page”: 2}
]
}

PUT test_nested/_doc/2
{
“content”:[{“text”:“studying math in my room”,“page”: 1},
{“text”:“playing playstation with my family”,“page”: 2}
]
}

GET test_nested/_search?search_pipeline=ms-marco-MiniLM-L-12-v2_rerank
{
“query”: {
“match_all”: {}
},
“ext”: {
“rerank”: {
“query_context”: {
“query_text”: “math”
}
}
}
}

Thanks