Class SearchKeywordsImpl

java.lang.Object
com.commercetools.importapi.models.products.SearchKeywordsImpl
All Implemented Interfaces:
SearchKeywords, io.vrap.rmf.base.client.ModelBase

public class SearchKeywordsImpl extends Object implements SearchKeywords, io.vrap.rmf.base.client.ModelBase

Search keywords are primarily used by the suggester but are also considered for the full-text search. SearchKeywords is a JSON object where the keys are of IETF language tag. The value to a language tag key is an array of SearchKeyword for the specific language.

{
    "en": [
      { "text": "Multi tool" },
      { "text": "Swiss Army Knife", "suggestTokenizer": { "type": "whitespace" } }
    ],
    "de": [
      {
        "text": "Schweizer Messer",
        "suggestTokenizer": {
          "type": "custom",
          "inputs": ["schweizer messer", "offiziersmesser", "sackmesser"]
        }
      }
    ]
  }