CROSS-REFERENCE TO RELATED APPLICATION

This application claims a priority to and benefits of Chinese Patent Application No. 201910127197.8, filed with the China National Intellectual Property Administration on Feb. 20, 2019, the entire content of which is incorporated herein by reference.

FIELD

Embodiments of the present disclosure mainly relate to the search field, and more particularly to a method, a device, and a computer-readable storage medium for providing search suggestions.

BACKGROUND

Search is a way to quickly obtain information of interest. An electronic device, such as a laptop, a mobile phone, and a tablet, may run an application for searching. A user may input a search term in an interface of such application, and request a search server or a search engine to search based on a search keyword. The search server or the search engine may feedback search results associated with the search term. In general, accuracy of the search results and user satisfaction relate to the search keyword. To enable the search more accurate and comprehensive, some search suggestions may be provided to the user, and the user may further restrict execution of the search by selecting from such search suggestions.

SUMMARY

According to exemplary embodiments of the present disclosure, a solution for providing search suggestions is provided.

In a first aspect of embodiments of the present disclosure, there is provided a method for providing search suggestions. The method includes obtaining an input search term in a search box of a search interface; determining a first group of suggested search terms associated with the input search term; displaying the first group of suggested search terms in the search interface; and in response to a selection for one or more first suggested search terms from the first group of suggested search terms, searching by taking the input search term and the one or more first suggested search terms as search keywords.

In a second aspect of embodiments of the present disclosure, there is provided an electronic device. The electronic device includes one or more processors and a storage device. The storage device is configured to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors are configured to implement the method according to the first aspect of embodiments of the present disclosure.

In a third aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having computer programs stored thereon. When the computer programs are executed by a processor, the method according to the first aspect of embodiments of the present disclosure is implemented.

It should be understood that, descriptions in Summary of the present disclosure are not intended to limit essential or important features in embodiments of the present disclosure, and are also not construed to limit the scope of the present disclosure. Other features of the present disclosure will be easily understood by following descriptions.

