la-haute-societe / craft-elasticsearch

Bring the power of Elasticsearch to your Craft CMS projects
Other
18 stars 14 forks source link

Blacklisted entries types #14

Closed juanjosezg closed 2 years ago

juanjosezg commented 3 years ago

Is it possible to blacklisted entry types from the config file?

I have a craft commerce instalation and i want to use elastic search only to search products, and no indexing asset, entries or pages, only product pages.

But when i select the entry tipe from de config CP, the website throws me a 504 error, I have more than 160k products.

nstCactus commented 2 years ago

Sorry for the late reply. You can disable indexing:

Example:

<?php return [
  'blacklistedEntryTypes' => ['blogEntry', 'contentPage'], // handles of entry types
  'blacklistedAssetVolumes' => ['images', 'documents'], // handles of asset volumes
];