from https://github.com/elastic/kibana/issues/167992

the error `_id must be unset or set to [GvMPW29fWPE5Sr2ZAAABivq9G6A] but was [_id] because [.ds-metrics-logstash.monitoring-default-2023.10.04-000001] is in time_series mode`

No `_id` field is sent as part of the request so the error must be internal to the endpoint functionality.

This is preventing the creation of runtime fields against TSDS data views in kibana.

--

Steps to reproduce via kibana - 
1. Install `Kibana Sample Data Logs (TSDB)` sample data
2. run via dev tools console
```
POST /_scripts/painless/_execute
{
  "script": {
    "source": """
      emit(doc['release_date'].value.year < 1972);
    """
  },
  "context": "boolean_field",
  "context_setup": {
    "index": "kibana_sample_data_logstsdb",
    "document": {
      "name": "Dune",
      "author": "Frank Herbert",
      "release_date": "1965-06-01",
      "page_count": 604,
      "@timestamp" : "2023-09-16T20:06:26.264Z",
      "bytes_counter": 79635479,
      "bytes_gauge": 8823,
      "event": {
        "dataset": "sample_web_logs"
       }
    }
  }
}
```
modules/lang-painless/src/main/java/org/elasticsearch/painless/action/PainlessExecuteAction.java
throw new UnsupportedOperationException("unsupported context [" + scriptContext.name + "]");
            }
        }
        private static Response prepareRamIndex(
            Request request,
            CheckedBiFunction<SearchExecutionContext, LeafReaderContext, Response, IOException> handler,
            IndexService indexService
        ) throws IOException {
            Analyzer defaultAnalyzer = indexService.getIndexAnalyzers().getDefaultIndexAnalyzer();
            try (Directory directory = new ByteBuffersDirectory()) {
                try (IndexWriter indexWriter = new IndexWriter(directory, new IndexWriterConfig(defaultAnalyzer))) {
                    BytesReference document = request.contextSetup.document;
                    XContentType xContentType = request.contextSetup.xContentType;
                    SourceToParse sourceToParse = new SourceToParse("_id", document, xContentType);
                    DocumentMapper documentMapper = indexService.mapperService().documentMapper();
                    if (documentMapper == null) {
                        documentMapper = DocumentMapper.createEmpty(indexService.mapperService());
                    }
                    
                    
                    
                    
                    ParsedDocument parsedDocument = documentMapper.parse(sourceToParse);
                    indexWriter.addDocuments(parsedDocument.docs());
                    try (IndexReader indexReader = DirectoryReader.open(indexWriter)) {
                        final IndexSearcher searcher = new IndexSearcher(indexReader);
                        searcher.setQueryCache(null);
                        final long absoluteStartMillis = System.currentTimeMillis();
                        SearchExecutionContext context = indexService.newSearchExecutionContext(
                            0,