GSH
GSH

Reputation: 249

Elastic search Custom Sort with Nest Library

I have a data structure like:

enter image description here

And I want to do so sorting to the results based on the price but for a specific priceProfileId ex 1292

I am using the nest library for that and my query looks like as below: enter image description here

But its not sorting?

Addition Information: About ItemPrice Mapping

enter image description here

Upvotes: 0

Views: 201

Answers (1)

GSH
GSH

Reputation: 249

One thing is instead of the Price.Value I changed to Price and used .Order(SortOrder.Descending

Correct Code:

enter image description here

Upvotes: 0

Related Questions