Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Search and Promote - How to capture / rank against metadata array values

Avatar

Avatar
Give Back 3
Level 1
jjtr-0U812
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
View profile

Avatar
Give Back 3
Level 1
jjtr-0U812
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
jjtr-0U812
Level 1

04-01-2021

All,

 

We are currently indexing records similar to below into S&P.

"item": "ABC",
"description": "ABC Part",
"sellableregion": [{
"com_region": "us",
"rank": 100,

"type": "featured"
},{
"com_region": "ja",
"rank": 50,

"type": "average"
},{
"com_region": "mx",
"rank": 10,

"type": "average"
}],

"item": "XYZ",
"description": "XYZ Part",
"sellableregion": [{
"com_region": "us",
"rank": 100,

"type": "featured"
},{
"com_region": "ja",
"rank": 500,

"type": "featured"
},{
"com_region": "mx",
"rank": 0,

"type": "discontinue"
}]


So basically individual parts that contain an array of sellable regions.


We're having an issue when trying to ingest these records into Search and Promote - so that we can reference the data by a query that returns only the records within a passed region (ie: us) sorted by the type, then rank of that same region.

Questions:
A) instead of loading 2 records each with 'child' arrays, should we instead be loading in 6 individual records into S&P (basically an individual record per part/region)?
B) if were ok loading as is above - we defined the meta tags for the fields above and allowed lists.  however - how do you reference only the corresponding region values (rank, type) in Ranking Rules?

Thanks!

Array Multiple values Promote search

Accepted Solutions (0)

Answers (0)