Représentation logique des colonnes indexées

Plusieurs colonnes indexées peuvent être définies pour chaque attribut de catalogue dans la base de données WebSphere Commerce. En fonction de l'utilisation, vous pouvez effectuer une recherche sur différentes colonnes. Par exemple, pour l'attribut Manufacturer Name, deux zones différentes sont définies, mfName et mfName_ntk_cs. Pour les facettes dans la vitrine, vous pouvez rechercher dans la zone non segmentée, mfName_ntk_cs, mais à des fins de classement, vous pouvez rechercher dans la zone segmentée, mfName.

Pour masquer les noms de colonnes physiques de la logique dans les règles métier et la vitrine, une méthode utilitaire récupère le nom de colonne physique auquel on a donné un nom logique et son usage. Ce mappage est stocké dans les tables SRCHATTR et SRCHATTRPROP, et l'utilitaire pour récupérer ce mappage est défini dans la classe SolrSearchConfigurationRegistry.

L'index prend en charge trois types d'attributs :
  1. Une liste d'attributs prédéfinis est amorcée par défaut. Il s'agit de la même liste d'attributs définis dans le fichier schema.xml après l'indexation du catalogue.
  2. Attributs du dictionnaire d'attributs. Un événement est déclenché lorsqu'un attribut est marqué comme consultable dans le Centre de gestion. Un programme d'écoute est inscrit dans la structure de l'événement pour écouter cet événement. Le programme d'écoute renseigne la table ATTRDICTSRCHCONF et les SRCHATTR et SRCHATTRPROP. Le programme d'écoute préfixe la valeur de la colonne ATTR.IDENTIFIER avec _cat. et utilise le nom préfixé comme nom logique pour l'attribut. En outre, il remplit les mappages d'utilisation de cet attribut à l'aide d'un modèle prédéfini.
  3. Les tables SRCHATTR et SRCHATTRPROP doivent être remplies manuellement pour mettre en facettes ou filtrer les produits en fonction des attributs.
Important : Lorsqu'un attribut du dictionnaire d'attributs est supprimé de la base de données HCL Commerce, vous devez nettoyer les données de configuration des facettes de recherche dans les tables SRCHATTR et SRCHATTRPROP. Sinon, lorsque vous créez à nouveau un attribut du dictionnaire d'attributs avec le même nom, il n'est pas correctement indexé et, par conséquent, aucune facette n'apparaît dans la vitrine.

Attributs par défaut prédéfinis pour l'index de recherche CatalogEntry

La table suivante répertorie les attributs définis par défaut, avec le nom de colonne indexé Solr entre parenthèses pour chaque propriété :
Attributs par défaut prédéfinis pour l'index de recherche CatalogEntry
Nom logique (Identificateur) Trier Facette Rang Rechercher Afficher Filtre catalogFilter
_cat.CatalogEntry

(catentry_id)

_cat.Member

(member_id)

_cat.ManufacturerName

(mfName_ntk_cs)

(mfName_ntk_cs)

(mfName)

(mfName)

(mfName)

(mfName)

(mfName_ntk_cs)

_cat.PartNumber

(partNumber_ntk)

(partNumber_ntk)

(partNumber_ntk)

(partNumber_ntk)

(partNumber_ntk)

_cat.ManufacturerPartNumber

(mfPartNumber_ntk)

(mfPartNumber_ntk)

(mfPartNumber_ntk)

(mfPartNumber_ntk)

(mfPartNumber_ntk)

_cat.CatalogEntryType

(catenttype_id_ntk_cs)

(catenttype_id_ntk_cs)

_cat.Name

(name_ntk)

(nom)

(nom)

(nom)

(nom)

_cat.ShortDescription

(shortDescription)

(shortDescription)

(shortDescription)

_cat.Thumbnail

(thumbnail)

_cat.FullImage

(fullimage)

_cat.Keyword

(keyword)

_cat.OfferPrice_locale

(price_locale)

(price_locale)

(price_locale)

(price_locale)

(price_locale)

_cat.Store

(storeent_id)

_cat.ParentCatalogGroup

(parentCatgroup_id_facet)

(parentCatgroup_id_search)

(parentCatgroup_id_search)

(parentCatgroup_id_search)

_cat. ParentCatalogEntry

(parentCatentry_id)

(parentCatentry_id)

_cat.ProductSet

(productset_id)

Où :
  • Les propriétés suivantes peuvent exister pour chaque attribut :
    Trier
    Utilisé par les critères de tri dans l'action Recommander l'entrée de catalogue.
    Facette
    Utilisé par la vitrine pour générer la facette.
    Rang
    Utilisé par les filtres de recherche dans les règles de recherche pour influencer le score de pertinence.
    Rechercher
    Utilisé par la vitrine.
    Afficher
    Utilisé par la vitrine.
    Filtre
    Utilisé par le filtre de recherche dans l'action Recommander l'entrée de catalogue et par le filtre de catalogue.
    catalogFilter
    Utilisé par le filtre de catalogue.
  • Le prix de vente locale représente l'une des valeurs suivantes :
    • EUR
    • EUR
    • JPY
    • KRW
    • BRL
    • CNY
    • TWD
    • CAD
    • PLN
    • RON
    • RUB
    • EGP
    • GBP

Attributs par défaut prédéfinis pour l'index de recherche CatalogGroup

La table suivante répertorie les attributs définis par défaut :
Attributs par défaut prédéfinis pour l'index de recherche CatalogGroup
Identificateur Nom de la propriété Valeur de propriété
_cat.EndDate recherche enddate
_cat.EndDate filtrer enddate
_cat.StartDate recherche startdate
_cat.StartDate filter startdate
_cat.CategoryPathName recherche categoryname
_cat.ParentCatalogGroup facet parentCatgroup_id_facet
_cat.ParentCatalogGroup display parentCatgroup_id_facet
_cat.Store id_entmagasin id_entmagasin
_cat.Keyword mot clé mot clé
_cat.FullImage display fullimage
_cat.Thumbnail display thumbnail
_cat.LongDescription recherche longDescription
_cat.LongDescription display longDescription
_cat.LongDescription filter longDescription
_cat.ShortDescription recherche shortDescription
_cat.ShortDescription display shortDescription
_cat.ShortDescription filter shortDescription
_cat.Name sort nom
_cat.Name classement nom
_cat.Name recherche nom
_cat.Name display nom
_cat.Name filter nom
_cat.Identifier classement identifier_ntk
_cat.Identifier recherche ​identifier_ntk
_cat.Identifier display ​identifier_ntk
_cat.Identifier filter ​identifier_ntk
_cat.Identifier catalogFilter ​identifier_ntk
_cat.Member display member_id
_cat.CatalogGroup display catgroup_id
_cat.OfferPrice_GBP facet price_GBP:{* 50} 50; {50 100} 100; {100 150} 150; {150 200} 200; {200 250} 250; {250 *}
_cat.OfferPrice_EGP facet price_EGP:{* 500} 500; {500 1000} 1000; {1000 1500} 1500; {1500 2000} 2000; {2000 2500} 2500; {2500 *}
_cat.OfferPrice_RUB facet price_RUB:{* 3000} 3000; {3000 6000} 6000; {6000 9000} 9000; {9000 12000} 12000; {12000 15000} 15000; {15000 *}
_cat.OfferPrice_RON facet price_RON:{* 300} 300; {300 600} 600; {600 900} 900; {900 1200} 1200; {1200 1500} 1500; {1500 *}
_cat.OfferPrice_PLN facet price_PLN:{* 300} 300; {300 600} 600; {600 900} 900; {900 1200} 1200; {1200 1500} 1500; {1500 *}
_cat.OfferPrice_CAD facet price_CAD:{* 100} 100; {100 200} 200; {200 300} 300; {300 400} 400; {400 500} 500; {500 *}
_cat.OfferPrice_TWD facet price_TWD:{* 3000} 3000; {3000 6000} 6000; {6000 9000} 9000; {9000 12000} 12000; {12000 15000} 15000; {15000 *}
_cat.OfferPrice_CNY facet price_CNY:{* 1000} 1000; {1000 2000} 2000; {2000 3000} 3000; {3000 4000} 4000; {4000 5000} 5000; {5000 *}
_cat.OfferPrice_BRL facet price_BRL:{* 200} 200; {200 400} 400; {400 600} 600; {600 800} 800; {800 1000} 1000; {1000 *}
_cat.OfferPrice_KRW facet price_KRW:{* 100000} 100000; {100000 200000} 200000; {200000 300000} 300000; {300000 400000} 400000; {400000 500000} 500000; {500000 *}
_cat.OfferPrice_JPY facet price_JPY:{* 10000} 10000; {10000 20000} 20000; {20000 30000} 30000; {30000 40000} 40000; {40000 50000} 50000; {50000 *}
_cat.OfferPrice_EUR facet price_EUR:{* 100} 100; {100 200} 200; {200 300} 300; {300 400} 400; {400 500} 500; {500 *}
_cat.OfferPrice_USD facet price_USD:{* 100} 100; {100 200} 200; {200 300} 300; {300 400} 400; {400 500} 500; {500 *}
_cat.ProductSet recherche productset_id
_cat. ParentCatalogEntry recherche parentCatentry_id
_cat. ParentCatalogEntry display parentCatentry_id​
_cat.ParentCatalogGroup facet ​parentCatgroup_id_search
_cat.ParentCatalogGroup classement ​parentCatgroup_id_search
_cat.ParentCatalogGroup recherche ​parentCatgroup_id_search
_cat.ParentCatalogGroup filter ​parentCatgroup_id_search
_cat.Store recherche id_entmagasin
_cat.OfferPrice sort price_USD
_cat.OfferPrice classement price_USD
_cat.OfferPrice display price_USD
_cat.OfferPrice filter price_USD
_cat.OfferPrice catalogFilter price_USD
_cat.OfferPrice merchandising-Sort-Numeric price_USD
_cat.OfferPrice merchandising-FacetExclusion price_USD
_cat.Keyword recherche mot clé
_cat.FullImage display fullimage
_cat.Thumbnail display thumbnail
_cat.ShortDescription recherche shortDescription
_cat.ShortDescription display shortDescription
_cat.ShortDescription filter shortDescription
_cat.ShortDescription merchandising-Filter-AnyText shortDescription
_cat.ShortDescription merchandising-Rank-AnyText shortDescription
_cat.Name sort name_ntk
_cat.Name classement nom
_cat.Name recherche nom
_cat.Name display nom
_cat.Name filter nom
_cat.Name merchandising-Filter-AnyText nom
_cat.Name merchandising-Rank-AnyText nom
_cat.Name merchandising-Sort-Text ​name_ntk
_cat.CatalogEntryType recherche catenttype_id_ntk_cs
_cat.CatalogEntryType filter ​catenttype_id_ntk_cs
_cat.ManufacturerPartNumber classement mfPartNumber_ntk
_cat.ManufacturerPartNumber recherche mfPartNumber_ntk
_cat.ManufacturerPartNumber display mfPartNumber_ntk
_cat.ManufacturerPartNumber filter mfPartNumber_ntk
_cat.ManufacturerPartNumber catalogFilter mfPartNumber_ntk
_cat.ManufacturerPartNumber merchandising-Filter-ExactText mfPartNumber_ntk
_cat.ManufacturerPartNumber merchandising-Rank-ExactText mfPartNumber_ntk
_cat.PartNumber classement partNumber_ntk
_cat.PartNumber recherche partNumber_ntk
_cat.PartNumber display partNumber_ntk
_cat.PartNumber filter partNumber_ntk
_cat.PartNumber catalogFilter partNumber_ntk
_cat.PartNumber merchandising-Filter-ExactText partNumber_ntk
_cat.PartNumber merchandising-Rank-ExactText partNumber_ntk
_cat.ManufacturerName sort mfName_ntk_cs
_cat.ManufacturerName facet ​mfName_ntk_cs
_cat.ManufacturerName classement mfName
_cat.ManufacturerName recherche mfName
_cat.ManufacturerName display mfName
_cat.ManufacturerName filter mfName_ntk
_cat.ManufacturerName catalogFilter ​mfName_ntk_cs
_cat.ManufacturerName merchandising-Filter-ExactText mfName​_ntk
_cat.ManufacturerName merchandising-Rank-ExactText mfName​_ntk
_cat.ManufacturerName merchandising-Facet-ExactText mfName​_ntk
_cat.ManufacturerName merchandising-Sort-Text mfName​_ntk
_cat.Member display ​member_id
_cat.CatalogEntry display ​catentry_id