Smart search - numbers

Martin Opletal asked on March 12, 2020 11:03

I have custom SKU field. I have two products. First one has value 'GtinNumber1', second one contains '8712163160324'. If I try search it in Search preview first one is found but second one not. Any idea?

Field is in SKU (Modules > E-commerce > SKU) Data type is text. In search tab is selected Content, Searchable.

Smart search settings

General:

  • Index type: Pages
  • Analyzer type: Simple
  • Batch size: 100

Indexed content:

  • (all) /% Allowed
  • CMS.Root / Excluded

Correct Answer

David te Kloese answered on March 12, 2020 11:20

Think it's because the comination of a number and your annalyzer type:

Simple – divides text at non-letter characters, including numbers. The dividing characters and any words that consist of them (for example multi-digit numbers) are not included among the searchable tokens.

Try playing around with the Analyzer type: https://docs.kentico.com/k12sp/configuring-kentico/setting-up-search-on-your-website/using-locally-stored-search-indexes/creating-local-search-indexes#Creatinglocalsearchindexes-Reference-Searchindexproperties

1 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.