2017-08-24 100 views
0

我有一个数据结构,如:弹性搜索自定义排序与鸟巢图书馆

enter image description here

而且我想这样做排序的基础上价格的结果,但对于特定priceProfileId EX 1292

我使用该巢库和我的查询看起来如下: enter image description here

但它不是排序?

附加信息:关于ITEMPRICE映射

enter image description here

+0

映射是什么样子?itemPrices被映射为嵌套类型吗? –

+0

是它的嵌套,如我添加的图像中所示。 – GSH

回答

0

一件事是不是Price.Value的我改价格和使用.Order(SortOrder.Descending

正确的代码:

enter image description here