'fielddata_fields' to 'docvalue_fields' in 6.x problems

As per log of breaking changes in elasticsearch 6.x, fielddata_fields is now deprecated.
I'm trying to change my NEST DSL query to run it in newer version but I can not find docvalue_fields in the place of fielddata_fields. Can anyone help please!!!

Here is my NEST DSL Query:

lESResponse = lESClient.Search<indexMapping>(s => s
                                            .Query(desQuery1 => desQuery1
                                                .Bool(b => b
                                                    .Must(m => m
                                                            .Terms(t => t
                                                            m => m
                                                            .Nested(n => n
                                                                .InnerHits(ih => ih
                                                                    .FielddataFields("bookData.data.keyWords", "bookData.isCellData", "bookData.rOffset", "bookData.cOffset", "bookData.address")
                                                                .Query(q => q
                                                                    .Bool(b1 => b1
                                                                        .Must(m1 => m1
                                                                            .QueryString(qs => qs

You can find FielddataFields under Nested query. I want docvalue_fields there to execute this query in elasticsearch 6.x.

Thanks in advance.

What is the version of NEST that you are using?

Thanks for the reply @thiago!

I'm using NEST rc version. Which I have downloaded form https://www.nuget.org/packages/NEST/6.0.0-rc1.

Hey there. Thanks for for reporting this. The fielddata_fields indeed has been renamed in Elasticsearch since 5.0 but NEST didn't follow up. Apparently, it has been removed from master but docvalue_fields has not been added.

I opened an issue https://github.com/elastic/elasticsearch-net/issues/3017

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.