Skip to content

Instantly share code, notes, and snippets.

View vireshku's full-sized avatar

viresh kumar vireshku

  • Apple Inc
  • Banglore
View GitHub Profile
{
"metadata": {
"schemaVersion": "v1"
},
"resources": {
"FIELD": [
{
"model": {
"dateFormat": "",
"description": "",
require('isomorphic-fetch'); // polyfill (needed for fetch) for NodeJs
require('abortcontroller-polyfill'); // polyfill (needed for fetch) for NodeJs
const { PlatformClient, SourceVisibility, SourceType, } = require('@coveord/platform-client');
const fs = require('fs');
const { OAuth } = require('@coveo/cli/lib/lib/oauth/oauth');
let CONFIG = null;
{
"model": {
"condition": {},
"description": "Empty Pipeline for PDP",
"isDefault": false,
"name": "PDP",
"splitTestEnabled": false
},
"parents": {},
"resourceName": "PDP_a9yZwh"
@vireshku
vireshku / snapshot.json
Created June 27, 2024 03:03
ML_MODEL_ASSOCIATION
"ML_MODEL_ASSOCIATION": [
{
"model": {
"cacheMaximumAge": "PT10S",
"enableWordCompletion": false,
"exclusive": false,
"intelligentTermDetection": false,
"matchAdvancedExpression": true,
"matchBasicExpression": true,
"maxRecommendations": 25,
"ML_MODEL": [
{
"model": {
"commandLineParameters": [
"--conf",
"coveo.drill.filterOutEmptyQueries=false"
],
"commonFilter": "",
"customEventFilter": "",
"engineId": "topclicks",
@vireshku
vireshku / snapshot.json
Created June 27, 2024 03:01
QUERY_PIPELINE_CONDITION
"QUERY_PIPELINE_CONDITION": [
{
"model": {
"definition": "when $recommendation isPopulated"
},
"parents": {},
"resourceName": "when_recommendation_isPopulated_IhAIQt"
},
{
"model": {
@vireshku
vireshku / snapshot.json
Created June 27, 2024 03:00
Query Pipeline
"QUERY_PIPELINE": [
{
"model": {
"condition": {},
"description": "Empty Pipeline for PDP",
"isDefault": false,
"name": "PDP",
"splitTestEnabled": false
},
"parents": {},
@vireshku
vireshku / snapshot.json
Created June 26, 2024 03:48
FIELDS snapshot
{
"metadata": {
"schemaVersion": "v1"
},
"resources": {
"FIELD": [
{
"model": {
"dateFormat": "",
"description": "",
This file has been truncated, but you can view the full file.
[
{
"DocumentId": "store://US/CA/393",
"FileExtension": ".html",
"ObjectType": "Store",
"address": "1015 N La Brea Ave",
"address2": "",
"availableskus": [
"026787101_PO_L",
"026787101_PO_M",
@vireshku
vireshku / variants.json
Created June 26, 2024 02:19
commerce variant data
This file has been truncated, but you can view the full file.
[
{
"DocumentId": "https://fashion.coveodemo.com/pdp/887056_35F?sku=887056_35F_24",
"DocumentType": "Variant",
"FileExtension": ".txt",
"ObjectType": "Variant",
"availableskus": [
"887056_35F_24"
],
"cat_size": "24",