ElasticSearch Facets查询

$index = "test";
$type = "test_facets";
$result = \ElasticSearch::get($index,$type,array (
  'facets' => 
  array (
    'tag_id' => 
    array (
      'terms' => 
      array (
        'field' => 'tag_id',
      ),
    ),
  ),
  'from' => 0,
  'size' => 10
));
去打赏

您的支持将鼓励我们继续创作!

[微信] 扫描二维码打赏

发表评论

电子邮件地址不会被公开。