Skip to content

Instantly share code, notes, and snippets.

@akshaymaniyar
Created February 1, 2017 09:13
Show Gist options
  • Save akshaymaniyar/288a2208ec396acbaabc42704f27620b to your computer and use it in GitHub Desktop.
Save akshaymaniyar/288a2208ec396acbaabc42704f27620b to your computer and use it in GitHub Desktop.
{
"viewDefinition": {
"viewName": "services_fulfilment",
"entityType": "listing",
"viewType": "GROOVY_DSL",
"dslTextMap": {
"product": "['vertical':product._derefs.get(0).catalog.vertical,'url':getProductUrl(product._derefs.get(0).catalog.viewsAsJson.title,product._derefs.get(0).catalog.itemID,product._derefs.get(0).catalog.productId),'product_id':product._derefs.get(0).catalog.productId,'image_url':preferredImageS3Path(product._derefs.get(0).catalog.staticContentInfo,100,100,-1,'NEAREST_DIMENSIONS'),'brand':product._derefs.get(0).catalog.productAttributes.brand.valuesList.get(0).value,'model_id':product._derefs.get(0).catalog.productAttributes.model_id.valuesList.get(0).value,'model_name':product._derefs.get(0).catalog.productAttributes.model_name.valuesList.get(0).value, 'warranty_period':product._derefs.get(0).catalog.productAttributes.warranty_period.valuesList.get(0),'type':product._derefs.get(0).catalog.productAttributes.type.valuesList.get(0).value,'warranty_summary':product._derefs.get(0).catalog.productAttributes.warranty_summary.valuesList.get(0).value]",
"listing": "['dropship_by_seller':parseBoolean(listing.listingAttributes.dropship_by_seller.valuesList.get(0).value, false),'services_fulfilled_by':listing.listingAttributes.services_fulfilled_by.valuesList.get(0).value]"
},
"createdBy": "akshay.maniyar",
"viewGroup": "NON_SEARCHABLE",
"notificationTags": null,
"indexName": "services_fulfilment_28",
"entitySubTypes": [
"all"
],
"referredViewMap": null,
"materializedView": true
},
"entitySubTypes":["kalash"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment