Contrary to the docs, radial search seems to work on nested fields for the Lucene engine

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): 2.19

Describe the issue:

The documentation for radial search includes a table that indicates that nested field radial search is not supported for the Lucene engine.

And yet it does seem to work. Is this a mistake in the docs, or is the behaviour undefined and shouldn’t be relied on?

Configuration:

Relevant Logs or Screenshots:

The mapping looks like this:

        "my_embeddings": {
          "type": "nested",
          "properties": {
            "embedding": {
              "type": "knn_vector",
              "dimension": 1024,
              "method": {
                "engine": "lucene",
                "space_type": "cosinesimil",
                "name": "hnsw",
                "parameters": {}
              }
            }
          }
        },

And the query looks like this…

        {
          "nested": {
            "path": "my_embeddings",
            "query": {
              "neural": {
                "my_embeddings.embedding": {
                  "query_text": "apples and bananas",
                  "min_score": 0.7,
                }
              }
            },
            "score_mode": "max"
          }
        }
 

Hey @davidbkemp ,

If you could report the changes that should be made as an issue here - GitHub · Where software is built .

They will then be reviewed and the docs updated to reflect the changes.

Leeroy.