Skip to main content

Score Search Results

Scores and filters search results based on progressive partial/exact matching. Can return dictionaries or a parallel list of formatted strings.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputList of 3 to 5 columns -> [results, suppliers, part_codes, mpns (optional), descriptions (optional)].array—Yes
outputOutput column for the dictionaries. If a list of 2 is provided, outputs [dicts_column, pretty_strings_column].string, array—Yes
Options
must_match_part_codeIf true, filters out results that don't satisfy the allowed match types.booleantrueNo
allow_mpn_exactTreat exact MPN matches as valid part code matches.booleantrueNo
allow_mpn_partialTreat partial MPN matches as valid part code matches.booleantrueNo
allow_other_exactTreat exact other part code matches as valid part code matches.booleantrueNo
allow_other_partialTreat partial other part code matches as valid part code matches.booleantrueNo
blacklist_keywordsComma-separated list or array of keywords to filter out URLs containing them.string""No
mpn_exact_scoreMpn Exact Score value accepted by the runtime.number8No
mpn_partial_baseMpn Partial Base value accepted by the runtime.number4No
part_code_exact_scorePart Code Exact Score value accepted by the runtime.number6No
part_code_partial_basePart Code Partial Base value accepted by the runtime.number2No
supplier_exact_scoreSupplier Exact Score value accepted by the runtime.number3No
supplier_partial_baseSupplier Partial Base value accepted by the runtime.number1No
context_match_baseContext Match Base value accepted by the runtime.number2No
fuzzy_match_thresholdFuzzy Match Threshold value accepted by the runtime.number0.8No
Conditions
ifCondition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}.string—No
whereFilter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'.string—No
where_paramsValues used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name.array, object—No

Examples​

This template scores search results using supplier and part-code context. The fields added to each result dictionary depend on the scoring configuration.

wrangles:
- compute.score_search_results:
input:
- Search Results
- Suppliers
- Part Codes
output:
- Scored Results
allow_other_exact: true
must_match_part_code: true
Search ResultsSuppliersPart Codes
[{"title": "SKF 6202 bearing", "link": "https://example.com/6202"}]["SKF"]["6202"]
Scored Results
Ranked result dictionaries

Template based on the documented parameters; no published source example is currently available.

Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID4
Catalog keycompute.score_search_results
Recipe keycompute.score_search_results
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespacecompute
Documentation groupcompute
AliasesNone
Runtime symbolwrangles.recipe_wrangles.compute.score_search_results
Legacy UUID313a8ec0-cf13-4956-8d3b-5362b8641d0f

Sources