Developer forum

Forum » Swift » Inactive products in spellcheckersuggestion

Inactive products in spellcheckersuggestion

Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Hi,

My customer have noticed, that when searching for 4010 in the generic search box in Swift, they get 40103 as a suggestion, even though the product with this specific number is inactive.

It doesn't show op in the exact product search below, but only in the autosuggestion (the ones with the search icon). Is the autosuggestion based on generic values, so if you enter 4010 as a search term, it automatically adds generic numbers at the end or is it taken from product data, but with disregard of active/inactive status?

My freetext-search summary field consists of product name and product number.

--
Best regards
Kurt Moskjaer Andersen

generic-search.jpg

Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply
This post has been marked as an answer

Hi Kurt,

 

That may happen because the spell check is based on all terms from all documents (aka products) that have been indexed.

 

What you may need to do is to change the Builder settings to not even index inactive products. That will prevent any data from non-active products from ever being indexed.

 

Best Regards,

Nuno Aguiar

Votes for this answer: 1
 
Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Hi Nuno,

Thank you, that makes sense - I didn't think of this as a possibility :)

--
Best regards
Kurt

 

You must be logged in to post in the forum