selectExpr(<span class="lit">"explode(arrays_zip(keywords.result, keywords.metadata)) as resultTuples"</span>)
  .select($<span class="lit">"resultTuples.0"</span> as <span class="lit">"keyword"</span>, $<span class="lit">"resultTuples.1.score"</span>)

<span class="cmt">// Order ascending, as lower scores means higher importance</span>
scores.orderBy(<span class="lit">"score"</span>).show(<span class="num">5</span>, truncate = <span class="kw">false</span>)
+---------------------+-------------------+
|keyw