A computer device, comprising a memory, a processor, and a computer program that is stored in the memory and is executable on the processor, the processor, when executing the computer program, causing the computer device to implement a search result reordering method including:
- displaying a search result page corresponding to a search session, the search result page including a plurality of media content based on a search keyword corresponding to the search session and the plurality of media content including an ordered sequence of a first target media content, a second target media content and a third target media content based on their relevance to the search keyword;
- obtaining at least one real-time interactive behavior performed by a target object on the first target media content in the search result page, the at least one real-time interactive behavior comprising a sequence of interactions including:
- launching a separate window on top of the search result page;
- browsing the first target media content in the separate window;
- and
- closing the separate window after the browsing of the first target media is finished;
- determining that the third target media content other than the second target media content is more relevant to the search keyword based on the at least one real-time interactive behavior;
- identifying the second target media content and the third target media content as to-be-sorted media content in the search result page;
- and
- updating the ordered sequence in the search result page by reordering locations of the to-be-sorted media content such that the third target media content is ahead of the second target media content within the updated ordered sequence, comprising:
- constructing at least one interactive content sequence based on the first target media content corresponding to different interaction types in the at least one real-time interactive behavior, each interactive content sequence corresponding to one interaction type;
- constructing a to-be-sorted content sequence based on each to-be-sorted media content;
- determining a degree of interest of the target object in each to-be-sorted media content in the to-be-sorted content sequence by using a reordering model based on the search keyword, a trigger condition type corresponding to the at least one real-time interactive behavior, and the at least one interactive content sequence;
- respectively encoding the search keyword, the trigger condition type, a plurality of interactive content sequences, and the to-be-sorted content sequence to obtain corresponding encoding feature vectors;
- respectively performing attention mechanism-based interactive processing on an encoding feature vector of the to-be-sorted content sequence based on encoding feature vectors corresponding to various interactive content sequences, to obtain a plurality of attention feature vectors;
- performing splicing processing on the plurality of attention feature vectors, an encoding feature vector corresponding to the search keyword, and an encoding feature vector corresponding to the trigger condition type to obtain an output feature vector;
- mapping the output feature vector into a plurality of indicator vectors, and determining the degree of interest in each to-be-sorted media content based on values of the plurality of indicator vectors, each indicator vector corresponding to an indicator parameter dimension, and a value of each indicator vector representing the degree of interest of the target object in each to-be-sorted media content in a corresponding indicator parameter dimension;
- and
- obtaining a reordered to-be-sorted media content based on each degree of interest.