Increase the number of aggr for debug

This commit is contained in:
Damien Alexandre
2014-10-14 19:33:16 +02:00
parent f196155049
commit e88a219cb6

View File

@@ -333,19 +333,19 @@ class ElasticSearchEngine implements SearchEngineInterface
// Debug at the moment. See https://phraseanet.atlassian.net/browse/PHRAS-322 // Debug at the moment. See https://phraseanet.atlassian.net/browse/PHRAS-322
$params['body']['aggs'] = array ( $params['body']['aggs'] = array (
'Keywords' => array ('terms' => 'Keywords' => array ('terms' =>
array ('field' => 'caption.Keywords.raw', 'size' => 10), array ('field' => 'caption.Keywords.raw', 'size' => 20),
), ),
'Photographer' => array ('terms' => 'Photographer' => array ('terms' =>
array ('field' => 'caption.Photographer.raw', 'size' => 10), array ('field' => 'caption.Photographer.raw', 'size' => 20),
), ),
'Headline' => array ('terms' => 'Headline' => array ('terms' =>
array ('field' => 'caption.Headline.raw', 'size' => 10), array ('field' => 'caption.Headline.raw', 'size' => 20),
), ),
'City' => array ('terms' => 'City' => array ('terms' =>
array ('field' => 'caption.City.raw', 'size' => 10), array ('field' => 'caption.City.raw', 'size' => 20),
), ),
'Country' => array ('terms' => 'Country' => array ('terms' =>
array ('field' => 'caption.Country.raw', 'size' => 10), array ('field' => 'caption.Country.raw', 'size' => 20),
), ),
); );