Developer forum

Forum » Development » Lucene doesn't index multi option fields wrong

Lucene doesn't index multi option fields wrong

Martin Nielsen
Reply
Hi DW,

There seems to be a problem with lucene and fields with multi value controls.

I have a field called "Usage" which is type checkbox, and it has 5 possible value. (Moderate, Normal, Heavy, Very heavy, Super duper heavy)
My products have multiple values selected in this field, and on the product in eCom the values are selected correct. But in the frontend on my productlist my selected values aren't shown.

I have about 5000 products in the database, and more or less all products have one or more values selected in "Usage" but i only see this in the filter list:

Moderate (25)
Normal (0)
Heavy (0)
Very heavy (0)
Super duper heavy (0)

I've run both partial and Full index update, but this value doesn't change.

I have other fields where only one value is selecter and these work great.

Is this another bug with filters?

Regards
 Martin

Replies

 
Pavel Volgarev
Reply
Hi Martin,

That's a bug. Category field values (as well as normal product field values) of type "List box" are indexed "as-is" meaning that if you have multiple values selected (checkbox list) then you will end up having the following in the index: "val1,val2,val3" but it should be "val1 val2 val3" (notice spaces instead of commas).

This bug will be fixed as soon as possible (the fix will be out with the upcoming service release).

UPDATE:

Bug number is #6684. I've just sent it for verification by our QA engineers.

-- Pavel

 

You must be logged in to post in the forum