Skip to Content
0
Jul 24, 2017 at 12:00 PM

Impex for SOLRSORTFIELD SORTPOS attribute

66 Views

Hi All,

I am trying to create impex for SORTPOS attribute in SOLRSORTFIELD type but it is not reflecting the position of sortfields in HMC,Please let me know whats wrong with the below impex. I know we can change the position from HMC but how to do the changes through HMC?

$solrIndexedType=electronicsProductType

INSERT_UPDATE SolrSortField;sort(indexedType(identifier),code)[unique=true];fieldName[unique=true];ascending[unique=true];sortPOS ;$solrIndexedType:name-asc;name;true;1 ;$solrIndexedType:relevance;score;false;2 ;$solrIndexedType:name-desc;name;false;3 ;$solrIndexedType:price-asc;priceValue;true;4 ;$solrIndexedType:price-desc;priceValue;false;5

And also not sure what values need to pass in the SORTPOS field (0-4 or 1-5) .

Thanks.