[FEATURE] Source, SourceIncludes & SourceExcludes to support lambda targeting types & list
See original GitHub issueIs your feature request related to a problem? Please describe. I’m frustrated upgrading from 7 to 8 because in the include/exclude & general source filtering in NEST, we could work with lambda pointing to properties of a specific document (mydoc => mydoc.MyField), in the new ES8 client, we can only work with list of strings and the mapping is not easy.
NEST:
gd => gd.SourceIncludes(doc=> doc.Id, doc=> doc.CreationDate)
Describe the solution you’d like Handling of the list (in addition of array etc) on the Fields class
var esIncludeFields = new List<string> { "id", "type" };
new SearchRequestDescriptor<TDoc>()
.SourceIncludes(esIncludeFields)
Handling of the .NET lambda targeting type properties
new SearchRequestDescriptor<TDoc>()
.SourceIncludes(doc => doc.Id, doc => doc.CreationDate)
Describe alternatives you’ve considered Right now I’m using workaround of course 😃
Issue Analytics
- State:
- Created 2 months ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Issues · elastic/elasticsearch-net
[INFO] List of supported/unsupported APIs for current 8.x client ... [FEATURE] Source, SourceIncludes & SourceExcludes to support lambda targeting types ...
Read more >Lambda event source mappings
Configure a Lambda event source mapping to invoke your function from queue and stream event sources, such as Amazon SQS, Kinesis, and DynamoDB....
Read more >Using Lambda with self-managed Apache Kafka
Learn how to use a self-managed Apache Kafka cluster as an event source for Lambda.
Read more >Lambda Expressions (The Java™ Tutorials > Learning ...
Lambda expressions enable you to do this, to treat functionality as method argument, or code as data. ... Target Types and Method Arguments....
Read more >Lambda expressions and anonymous functions
You use a lambda expression to create an anonymous function. Use the lambda declaration operator => to separate the lambda's parameter list ......
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
Thanks a lot!
Just want to mention the “official” way of achieving this:
However, I agree that a direct overload might be a good idea and therefore leaving this issue open as a reminder.