solr - How to make a classfication attribute as searchble in hybris? -


i have created classification class , classification attribute , linked products in features. added attribute solrindexedproperty. ootb solr search not providing results attribute. how make classification attribute searchable using solr.

please use commerceclassificationpropertyvalueprovider. here example impex snippet.

# define macros needed select proper classification system $classificationcatalog=trainingclassification $classsystemversion=systemversion(catalog(id[default='$classificationcatalog']),version[default='1.0']) $classcatalogversion=catalogversion(catalog(id[default='$classificationcatalog']),version[default='1.0']) $classattribute=classificationattribute(code,$classsystemversion) $classclass=classificationclass(code,$classcatalogversion) $classattributeassignment=classattributeassignment($classclass,$classattribute,$classsystemversion)  insert_update solrindexedproperty;solrindexedtype(identifier)[unique=true];name[unique=true];type(code);sortabletype(code);currency[default=false];localized[default=false];multivalue[default=false];facet[default=false];facettype(code);facetsort(code);priority;fieldvalueprovider;customfacetsortprovider;rangesets(name);$classattributeassignment #;$solrindexedtype;classification_attribute_code;solr_indexed_property_type;;;;;true;facet_type;facet_sort;priority;commerceclassificationpropertyvalueprovider;;solr_range;classification_class_code:::classification_attribute_code:::: ;$solrindexedtype;puzzlepieces;string;;;;;true;refine;alpha;1000;commerceclassificationpropertyvalueprovider;;;puzzles:::puzzlepieces:::: ;$solrindexedtype;puzzlepiecesize;string;;;;;true;refine;alpha;900;commerceclassificationpropertyvalueprovider;;;puzzles:::puzzlepiecesize:::: 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -