{
  "id" : "APPName_items_for_user_bpr_boost",
  "stages" : [ {
    "id" : "7ab9ea46-a8cc-4959-a0c2-f6898c3513aa",
    "numRecommendations" : 10,
    "modelID" : "*",
    "collection" : "",
    "userIdParam" : "id",
    "resultsLocation" : "As Boosts",
    "userIdField" : "userId",
    "itemIdField" : "itemId",
    "weightField" : "weight",
    "modelIdField" : "jobRunName",
    "scaleRange" : {
      "scaleMin" : 5.0,
      "scaleMax" : 15.0
    },
    "foldInUpdates" : false,
    "rawSignalsCollection" : "",
    "modelCollection" : "",
    "boostingMethod" : "query-param",
    "boostingParam" : "boost",
    "boostFieldName" : "id",
    "routingParams" : [ ],
    "type" : "user-recommendation",
    "skip" : false,
    "secretSourceStageId" : "7ab9ea46-a8cc-4959-a0c2-f6898c3513aa"
  }, {
    "id" : "ed486255-91d0-451b-bbc1-1db5ea80df3c",
    "paramToTag" : "q",
    "spell_corrections_enabled" : true,
    "phrase_boosting_enabled" : true,
    "tail_rewrites_enabled" : true,
    "phraseBoost" : 2.0,
    "phraseSlop" : 10,
    "synonymExpansionBoost" : 2.0,
    "synonym_expansion_enabled" : true,
    "remove_words_enabled" : true,
    "overlaps" : "LONGEST_DOMINANT_RIGHT",
    "params" : [ ],
    "maxWaitMs" : 500,
    "type" : "text-tagger",
    "skip" : false,
    "secretSourceStageId" : "ed486255-91d0-451b-bbc1-1db5ea80df3c"
  }, {
    "id" : "78e168e9-5a9a-4a47-be19-b16d4b24665b",
    "numRecommendations" : 10,
    "numSignals" : 100,
    "aggrType" : "click@doc_id,filters,query",
    "boostId" : "id",
    "boostingMethod" : "query-param",
    "boostingParam" : "boost",
    "scaleRange" : {
      "scaleMin" : 1.1,
      "scaleMax" : 5.0
    },
    "queryParams" : [ {
      "key" : "qf",
      "value" : "query_t"
    }, {
      "key" : "pf",
      "value" : "query_t^50"
    }, {
      "key" : "pf",
      "value" : "query_t~3^20"
    }, {
      "key" : "pf2",
      "value" : "query_t^20"
    }, {
      "key" : "pf2",
      "value" : "query_t~3^10"
    }, {
      "key" : "pf3",
      "value" : "query_t^10"
    }, {
      "key" : "pf3",
      "value" : "query_t~3^5"
    }, {
      "key" : "boost",
      "value" : "map(query({!field f=query_s v=$q}),0,0,1,20)"
    }, {
      "key" : "mm",
      "value" : "50%"
    }, {
      "key" : "defType",
      "value" : "edismax"
    }, {
      "key" : "sort",
      "value" : "score desc, weight_d desc"
    }, {
      "key" : "fq",
      "value" : "weight_d:[* TO *]"
    } ],
    "rollupField" : "doc_id_s",
    "rollupWeightField" : "weight_d",
    "weightExpression" : "math:log(weight_d + 1) + 10 * math:log(score+1)",
    "rollupWeightStrategy" : "max",
    "queryParamToBoost" : "q",
    "includeEnrichedQuery" : false,
    "type" : "recommendation",
    "skip" : false,
    "secretSourceStageId" : "78e168e9-5a9a-4a47-be19-b16d4b24665b"
  }, {
    "id" : "84ee7ca4-0204-4434-bedd-19f01cea4e7b",
    "rows" : 10,
    "start" : 0,
    "sortOrder" : [ ],
    "queryFields" : [ ],
    "returnFields" : [ ],
    "returnScore" : false,
    "type" : "search-fields",
    "skip" : false,
    "secretSourceStageId" : "84ee7ca4-0204-4434-bedd-19f01cea4e7b"
  }, {
    "id" : "9fc57226-4a60-48a0-86bb-89a9e9f41153",
    "fieldFacets" : [ ],
    "rangeFacets" : [ ],
    "type" : "facet",
    "skip" : false,
    "secretSourceStageId" : "9fc57226-4a60-48a0-86bb-89a9e9f41153"
  }, {
    "id" : "e96f71c8-9e21-4454-bca2-74f404546f0a",
    "useOriginalQueryIfNoRulesMatch" : true,
    "matchPartialFilterQueries" : true,
    "handler" : "select",
    "method" : "POST",
    "ruleLimit" : "100",
    "params" : [ ],
    "hierarchicalFilter" : [ ],
    "headers" : [ ],
    "maxWaitMs" : 500,
    "type" : "query-rules",
    "skip" : false,
    "secretSourceStageId" : "e96f71c8-9e21-4454-bca2-74f404546f0a"
  }, {
    "id" : "4bd13dcc-4f75-41c0-9940-a5d79f94a3c4",
    "httpMethod" : "POST",
    "allowFederatedSearch" : false,
    "preferredReplicaType" : "pull",
    "type" : "solr-query",
    "skip" : false,
    "responseSignalsEnabled" : true,
    "secretSourceStageId" : "4bd13dcc-4f75-41c0-9940-a5d79f94a3c4"
  }, {
    "id" : "c8935d14-2cad-443f-9c3c-52bd420dbc45",
    "facetLabelParseDelimiter" : "||",
    "type" : "query-rules-augment-response",
    "skip" : false,
    "secretSourceStageId" : "c8935d14-2cad-443f-9c3c-52bd420dbc45"
  } ]
}
