1. A system, comprising: one or more processors configured to: determine a plurality of sample pairs corresponding to a query word, wherein a sample pair of the plurality of sample pairs is associated with a first product and a second product responsive to the query word, wherein one of the first product and the second product is assigned a higher ranking priority than the other one of the first product and the second product based at least in part on historical user action data associated with the query word; determine a plurality of feature score values corresponding to a set of ranking features associated with the query word for each product associated with each of at least a subset of the plurality of sample pairs; and determine a set of weightings corresponding to the set of ranking features based at least in part on the plurality of feature score values and ranking priority assignments corresponding to the at least subset of the plurality of sample pairs; and one or more memories coupled to the one or more processors and configured to provide instructions to the one or more processors.