弹性搜索以从字段中获取值

时间:2014-09-29 14:04:38

标签: json

我需要从特定字段获取值并使用弹性搜索显示它而不显示任何其他细节。以下是一些示例数据:

hits: { total: 1160 max_score: 1 hits: [ { _index: restaurants _type: restaurant _id: beijing-express-dafna _score: 1 _source: { key: beijing-express-dafna misc: { latLong: 25.3258600000,51.5308300000 closedOrOpen: payement: openTime: 10 AM to 10 PM cost: QR 80 for two people (approx.) address: Food Court, Doha City Center Mall, Dafna, DohaQatar rating: 3.3 } name: Beijing Express Restaurant, Dafna features: [ Bar Not Available Serves Non Veg Dine-In Available No Home Delivery ] cuisines: [ Chinese ] __v: 0 } } }

我只需要键值,这样我该怎么办?

0 个答案:

没有答案
相关问题