Missing runtime_mappings support for async search requests
See original GitHub issueNEST/Elasticsearch.Net version: 7.14.1
Elasticsearch version: 7.14.1
.NET runtime version: 5.0
Description of the problem including expected versus actual behavior:
Support for defining runtime mappings is missing from IAsyncSearchSubmitRequest
and AsyncSearchSubmitDescriptor
When I did a diff between ISearchRequest
and IAsyncSearchSubmitRequest
I found that they were the same except ISearchRequest
had these additional fields:
IRuntimeFields RuntimeFields
ISlicedScroll Slice
IPointInTime PointInTime
Fields Fields
I know async search doesn’t support snapshot and maybe some other things so not sure if any of these are missing on purpose, but generally it seems that async search is supposed to be pretty much the same as a regular search.
https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Define runtime fields in a search request | Elasticsearch ...
You can specify a runtime_mappings section in a search request to create runtime fields that exist only as part of the query. You...
Read more >Add support for runtime fields · Issue #59332
Runtime fields. We would like to increase the flexibility of the search API by introducing support for runtime fields.
Read more >Async search | Elasticsearch Guide [8.9]
The async search API let you asynchronously execute a search request, monitor its progress, and retrieve partial results as they become available.
Read more >Using Asyncio with Elasticsearch
Async functionality is a new feature of this library in v7.8.0+ so please open an issue if you find an issue or have...
Read more >Using Asyncio with Elasticsearch
runtime_mappings – Defines ad-hoc runtime fields in the request similar to the way it is done in search requests. These fields exist only...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ejsmith - The
7.15.0
release is now available https://github.com/elastic/elasticsearch-net/releases/tag/7.15.0Was just going to mention that, but we should have the shortcut property there as well.
PointInTimeId
would be needed too as it may represent a newer ID for the PIT if that was used on the search. Will get a PR in now.I think there are historical reasons it’s been problematic to do so but I can see why it would be useful. I’ll flag that as something I can look at once code-gen is in place as that may dictate some of the design.