Facet filtering with array attributes returns inconsistent facet results in multi-search #863
                  
                    
                      oscarrBS
                    
                  
                
                  started this conversation in
                Feedback & Feature Proposal
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I’m facing an issue with facets in multi-search when using attributes stored as arrays of strings.
Here’s how I’m currently indexing one of my fields:
The reason I structured it like this is because each product can have multiple attributes under the same header, for example:
To simplify faceting, I decided to transform them into an array of strings using the format
header:value.The problem:
header:valueattributes, the results update correctly but the returned facets include values that don’t match the initial ones.I suspect the issue might be related to how these attributes are being structured, and maybe Meilisearch isn’t handling facets well with this specific format. But I’m not sure if that’s the case or if I’m missing some configuration.
Has anyone faced something similar? Or is there a recommended way to structure this type of
header:valueattribute array for facet filtering to work consistently?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions