Developer forum

Forum » Ecommerce - Standard features » Setting up index with assortments

Setting up index with assortments

Anders Ebdrup
Anders Ebdrup
Reply

Hello,

I have some issues setting up the index with assortment active as an item should be shown if the item is in a user's assortment or the item is in no assortment at all.

But I cannot get this to work. Right now I have a query string like this:

+Active:True +(+SearchField:drill* +SearchField:extender*) +LanguageID:LANG6 +((-(+AssortmentIDs:[* TO *]) +*:*) (+(AssortmentIDs:LANG_JP)))

And this is my index: https://www.screencast.com/t/LzvQUfRUaiKv

 

Any help will be appriciated!

Best regards, Anders

 


Replies

 
Nicolai Pedersen
Reply

Hi Anders

The Negate checkbox is not working as you (and I) would always expect. Lucene has its way of searching which can be difficult to understand. Lucene will by definition not search fields for empty values, so that very well be the case here. You need to index a "Doesnotexist" value in the field, or add an additional field with a value when a product is not in an index.

BR Nicolai

 
Anders Ebdrup
Anders Ebdrup
Reply

Hi Nicolai,

 

Thanks for quick reply - I will look into a fix but I will appriciate if this also can be indexed by standard in Dynamicweb as this is the standard way of using assortments?

 

Best regards, Anders

 
Nicolai Pedersen
Reply

In 9.3 it will be possible to set a setting that empty fields on the doc should be set to a value, i.e. "EMPTY" so you can search for that to find empty values.

That should help.

 

You must be logged in to post in the forum