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
.Size(10000)
.Query(desQuery1 => desQuery1
.Bool(b => b
.Must(m => m
.Terms(t => t
.Field("_uid")
.Terms(pUIDArray)),
m => m
.Nested(n => n
.Path("bookData")
.InnerHits(ih => ih
.Source(false)
.FielddataFields("bookData.data.keyWords", "bookData.isCellData", "bookData.rOffset", "bookData.cOffset", "bookData.address")
.Size(pInnerHitSize)
.From(pStartFrom))
.Query(q => q
.Bool(b1 => b1
.Must(m1 => m1
.QueryString(qs => qs
.DefaultOperator(lOperator)
.Query(pSearchTerm)
.DefaultField("bookData.data"))))))))));
You can find FielddataFields
under Nested query. I want docvalue_fields
there to execute this query in elasticsearch 6.x.
Thanks in advance.