Closed
Description
NeuralQueryEnricher search processor is not working with NestedQueries
how to reproduce:
PUT /_search/pipeline/test_pipeline
{
"request_processors": [
{
"neural_query_enricher" : {
"default_model_id": "u5j0qYoBMtvQlfhaxOsa",
"neural_field_default_id": {
"embedding_field.knn": "uZj0qYoBMtvQlfhaYeud"
}
}
}
]
}
GET testindex/_search?search_pipeline=test_pipeline
{
"query": {
"nested": {
"score_mode": "max",
"path": "passage_chunk_embedding",
"query": {
"neural": {
"embedding_field.knn": {
"query_text": "document"
}
}
}
}
}
}
This should work but instead throws:
{
"error": {
"root_cause": [
{
"type": "null_pointer_exception",
"reason": "modelId is marked non-null but is null"
}
],
"type": "null_pointer_exception",
"reason": "modelId is marked non-null but is null"
},
"status": 500
}