Developer forum

Forum » Ecommerce - Standard features » Repositories using queries with Match All field expression doesn't affect calculated facet count for field

Repositories using queries with Match All field expression doesn't affect calculated facet count for field

Allan Iversen
Allan Iversen
Reply

Hi!

I have found out that if we use queries with Match All field expression for specific fields, the calculated facet count for these fields are incorrect. The facet count for other facets used at same time are correct - only facet count for Match All fields are incorrect.

Example:
I have an ecommerce setup with a product list in which I want to enable facet search for "industry" and "product features". A product item could be available for 1 or more industries and could have various produkt features (eg. approvals). We want to search products matching all of selected product features (and matching any "industries") - eg. products that holds different approvals and so on.

Any ideas how to handle this?

query.png

Replies

 
Nicolai Pedersen
Reply

Hi Allan

I do not think that is the case.

Can we boil it down to a precise example?

  • Product 1 (Industry 1, Feature 1, Feature 2)
  • Product 2 (Industry 1, Industry 2, Feature 2, Feature 3)
  • Product 3 (Industry 3, Feature 3, Feature 4)

This will give me a product list of 3 before adding selections. Facets will show

  • Industry
    • Industry 1 (2)
    • Industry 2 (1)
    • Industry 3 (1)
  • Feature
    • Feature 1 (1)
    • Feature 2 (2)
    • Feature 3 (2)
    • Feature 4 (1)

And that would be correct - even though the totals of Industry and Feature will be above 3 products.

Now Industry 1 is selected, resulting in this (Changing counts for Feature 3+4) - now showing 2 products:

  • Industry
    • Industry 1 (2) X
    • Industry 2 (1)
    • Industry 3 (1)
  • Feature
    • Feature 1 (1)
    • Feature 2 (2)
    • Feature 3 (1)
    • Feature 4 (0)

Now Industry 3 is also selected, resulting in this (Changing counts again for Feature 3+4) - now showing 3 products:

  • Industry
    • Industry 1 (2) X
    • Industry 2 (1)
    • Industry 3 (1) X
  • Feature
    • Feature 1 (1)
    • Feature 2 (2)
    • Feature 3 (2)
    • Feature 4 (1)

Adding Feature 1 - now showing 1 products

  • Industry
    • Industry 1 (1) X
    • Industry 2 (0)
    • Industry 3 (0) X
  • Feature
    • Feature 1 (1) X
    • Feature 2 (0)
    • Feature 3 (0)
    • Feature 4 (0)

 

You must be logged in to post in the forum