{
took: 2,
timed_out: false,
_shards: { total: 5, successful: 5, failed: 0 },
hits:
{ total: 4,
max_score: 4.3100996,
hits: [ [Object], [Object], [Object], [Object] ] } }
took:耗時(shí)暇检,單位毫秒
timed_out:是否超時(shí)
—shards:shards代表索引分片,es可以把一個(gè)完整的索引分成多個(gè)分片,這樣的好處是可以把一個(gè)大的索引拆分成多個(gè),分布到不同的節(jié)點(diǎn)上枪汪。構(gòu)成分布式搜索。
hits:結(jié)果集
total:命中結(jié)果數(shù)
max_sore:評(píng)分
hits:結(jié)果集具體數(shù)據(jù)
結(jié)果集具體數(shù)據(jù)
{ _index: 'bank',
_type: 'account',
_id: '472',
_score: 4.3100996,
_source:
{ account_number: 472,
balance: 25571,
firstname: 'Lee',
lastname: 'Long',
age: 32,
gender: 'F',
address: '288 Mill Street',
employer: 'Comverges',
email: 'leelong@comverges.com',
city: 'Movico',
state: 'MT' } }
_index:索引
_type:類(lèi)型
_id:id
_score:評(píng)分
_source:具體數(shù)據(jù)