@@ -16,7 +16,7 @@ define('BX_ELASTICSEARCH_LOG', 1);
*/
class BxElsApi extends BxDol
{
- static $TYPE = 'doc';
+ static $TYPE = '_doc';
protected $_oModule;
@@ -44,7 +44,7 @@ class BxElsModule extends BxBaseModGeneralModule
$sIndex = $this->_oConfig->getIndex();
// search all
- $mixed = $this->_oApi->api('/' . $sIndex . '@bx_posts/doc/_search?q=*');
+ $mixed = $this->_oApi->api('/' . $sIndex . '@bx_posts/_search?q=*');
// $mixed = $this->_oApi->api('/testdata/_search', ['query' => ['match_all' => (object)[]]]);
// search for the term