Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Group name with space(like: dining chair) make facetoption split into two

Group name with space(like: dining chair) make facetoption split into two

Arker Soe
Arker Soe
Reply

Hi,

I have an issue setting up facet filter. I want to make a filter by group names. but my product group anmes has spaces in them and facet option loop make them different options.

eg: i have a group name "Dining Chairs" for 6 products. when i got facetoption loop> facetoption value, it give me dining and chairs and 6 products under each facet options.

i didn't have that issue on dw8.

any other work around?

Thanks


Replies

 
Arker Soe
Arker Soe
Reply

And I got the following error message when I setup facet for 2 product fields

System.IndexOutOfRangeException: Index was outside the bounds of the array. at Dynamicweb.Ecommerce.Frontend.Frontend.HandleFacetGroupResult(IQuery query, IFacetGroup facetGroup, FacetGroupResult facetGroupResult, IDictionary`2 parameters) at Dynamicweb.Ecommerce.Frontend.Frontend.GetProductsFromIndexQuery()

 
Arker Soe
Arker Soe
Reply
1.JPG 2.JPG 3.JPG
 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Arker

If you mark a field as "Analyzed" when indexing, phrases will be split into terms. So a group named "My products" will be indexed as 2 tersm "my" and "products" - if you add a facet on that, you get 2 facet options as well.

If you want to use the entire phrase as the option, you need to add the field to your index again (the schema extender have analyzed turned on by default) and without analyzing the field.

BR Nicolai

Votes for this answer: 1
 
Arker Soe
Arker Soe
Reply

Thanks Nicolai

it solve the first one. but I am sitll having the error for two facet : I shared the screen. any suggestion? 

 
Nicolai Pedersen
Reply

Hi Arker

We would nee the URL to see what happens with #2.

BR Nicolai

 

You must be logged in to post in the forum