What are the Slack Archives?

Itโ€™s a history of our time together in the Slack Community! Thereโ€™s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you wonโ€™t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi all, I have a general question, what would be the best way to add concrete products to the catalo

UL93DTXT2
UL93DTXT2 Posts: 4 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

Hi all, I have a general question, what would be the best way to add concrete products to the catalog search. We would like to display the concrete products grouped with the abstract products in the list view. Has anybody ever implemneted this? I thought of using a parent/child relationship in elasticsearch, but I would have to create a new index because multiple types exist.

Comments

  • Well, you could add whatever data you need directly in the abstract document. That, however, will increase the index size.

  • Or you could also enrich the data from redis data that is already present. That would come with a request-time performance penalty. A trade-off that might be acceptable in your situation?

  • These would be some naive, but rather manageable approaches. Any of this an option for you?

  • You could use a top-hits aggregation to group concrete products

    https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-top-hits-aggregation.html

    This scales and performs quite okay

  • Andriy Netseplyayev
    Andriy Netseplyayev Domain Lead Solution Architecture Sprykee Posts: 519 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    @U01229ARYNL just to clarify: in your case youโ€™re interested in Glue api solution, which can be solved by inclusions , you donโ€™t necessarily need to extend ES index for that

  • Andriy Netseplyayev
    Andriy Netseplyayev Domain Lead Solution Architecture Sprykee Posts: 519 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    Thereโ€™s been some issues with GlueAPI related resources in the demoshop - the Glue Resource plugin was not missing in dependency provider. The team (Vitalii) is aware of that.

  • U01229ARYNL
    U01229ARYNL Posts: 12 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    @UKJSE6T47: Don't know what's meant with inclusions, but we can discuss this in refinement ;)