Skip to content

Add custom meta #2018

@infospherebv

Description

@infospherebv

We are checking out the Elasticpress plugin to add fast filters to a customer's webshop. The filters are stored in custom tables as the use of the standard taxonomies in a large amount has a high impact on the performance of a Woo webshop.

The customer has around 900 different custom meta item. Mainly becouse this contains a huge amount of different product types which all have their own meta. We tried adding this meta to the Elastics index however this exceeds the maximum amount of 5000. We this this is because all meta use sub meta values for value, raw, boolean, date, datetime and time. Which makes the custom meta items to become 900 x 6 = 5400 in total and that really blows up the index.

We currently use the filter 'ep_prepare_meta_data' to add the custom meta items to the index. I am however wondering if it is possible to also add an extra tree of meta to the index next to "terms" and "meta" such as "filters" in which we could then only store one single value in stead of the 6 that are currently in meta. We would like to know if and how this could be done or if there is an alternative. Also if it is possible to add the extra tree of data, what would we have to define in the config mapping using the "ep_config_mapping" filter. I hope that someone can help us with this.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions