Multiple Facet Selections

  • cbarwin
    # 5 months, 4 weeks ago

    I have some data attributes with several values separated by a comma. For example, I have a filter called “Design Style”

    Most products have a single design style (i.e. Traditional). However, some of my products have several design styles (i.e. Traditional, Rustic). My filters are interpreting that as a single filter, literally spelled out as “Traditional, Rustic”. Is there any way to parse that so that that product could be filtered by Traditional OR Rustic?

    # 5 months, 4 weeks ago

    You could override the indexed string property with an array of strings, just before it is sent to Elasticsearch.
    Check out this code example:

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.