Multiple Facet Selections

  • cbarwin
    Participant
    2 years, 2 months ago #28971

    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?

    wpsolr
    Keymaster
    2 years, 2 months ago #28973

    You could override the indexed string property with an array of strings, just before it is sent to Elasticsearch.
    Check out this code example: https://www.wpsolr.com/forums/reply/6840/

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

You must be logged in to reply to this topic.