Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for generating search hints

A technology of search prompt and search box, which is applied in the field of search prompt, can solve the problem of inconvenient use of search prompt and achieve the effect of convenient search

Active Publication Date: 2016-11-23
HUAWEI TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to solve the problem of inconvenient use of search prompts in the prior art, an embodiment of the present invention provides a method and device for generating search prompts

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for generating search hints
  • Method and device for generating search hints
  • Method and device for generating search hints

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] An embodiment of the present invention provides a method for generating a search prompt, see figure 1 , the method includes:

[0051] Step 101: Obtain a cursor movement instruction, which is used to control the position of the cursor in the search box.

[0052] Step 102: Move the cursor according to the cursor movement instruction.

[0053] Step 103: Obtain the keyword before the cursor in the search box.

[0054] Step 104: Obtain a search hint matching the keyword before the cursor, where the search hint is a matching result obtained by performing prefix matching on the keyword before the cursor.

[0055] In the embodiment of the present invention, after obtaining the keyword before the cursor, a search prompt matching the keyword before the cursor is obtained; therefore, when the user moves the cursor, the keyword before the cursor is changed, thereby changing the matching result, That is, the search prompt is changed, which solves the problem in the prior art that...

Embodiment 2

[0057] Taking a search engine as an example, a method for generating a search prompt provided by an embodiment of the present invention is further described below, see figure 2 , the method includes:

[0058] Step 201: Obtain a cursor movement instruction, which is used to control the position of the cursor in the search box.

[0059] Specifically, obtaining the cursor movement instruction includes: obtaining the cursor movement instruction by monitoring the user's mouse click event and keyboard input event.

[0060] Step 202: Move the cursor according to the cursor movement instruction.

[0061] Step 203: Obtain the keyword before the cursor in the search box.

[0062] Specifically, step 203 includes: obtaining the position of the cursor in the search box, and obtaining the keyword before the cursor according to the position of the cursor in the search box.

[0063] Specifically, obtaining the position of the cursor in the search box may be implemented through HTML (Hyper...

Embodiment 3

[0077] An embodiment of the present invention provides a device for generating search hints, see image 3 , the device consists of:

[0078] An instruction acquiring module 301, configured to acquire a cursor movement instruction, the cursor movement instruction is used to control the position of the cursor in the search box;

[0079] The moving module 302 is configured to move the cursor according to the cursor moving instruction acquired by the instruction acquiring module 301;

[0080] Get the word module 303, be used for obtaining the keyword before the cursor in the search box;

[0081] The result acquisition module 304 is configured to acquire a search prompt matching the keyword before the cursor obtained by the word extraction module 303 , and the search prompt is a matching result obtained by performing prefix matching on the keyword before the cursor.

[0082] In the embodiment of the present invention, after obtaining the keyword before the cursor, a search prompt...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a search hint generating method and a search hint generating device, belonging to the technical field of search hints. The method comprises the following steps of: acquiring a cursor moving command, wherein the cursor moving command is used for controlling the position of a cursor in a search frame; moving the cursor according to the cursor moving command; acquiring a keyword positioned in front of the cursor in the search frame; and acquiring a search hint which is matched with the keyword positioned in front of the cursor, wherein the search hint is a matching result obtained by performing prefix match on the keyword positioned in front of the cursor. According to the method, the search hint which is matched with the keyword positioned in front of the cursor is acquired after the keyword positioned in front of the cursor is acquired; and when a user moves the cursor, the keyword positioned in front of the cursor is changed, so that the search hint is changed, the problem of incapability of changing the search hint without deleting or inputting operation in the prior art is solved, and the user can conveniently search..

Description

technical field [0001] The present invention relates to the technical field of search prompts, in particular to a method and device for generating search prompts. Background technique [0002] Search hints refer to hints associated with keywords that appear when users input keywords in the search box, and these hints match the keywords that have been entered. [0003] Search hints are widely used in technologies such as search engines and electronic dictionaries. Take a search engine as an example. For example, when a user enters "Beijing", the search prompt will display "Beijing Subway", "Beijing Map", etc., and the user can directly select "Beijing Subway" or "Beijing Map" by pressing the up and down keys on the keyboard. " as the search keyword. [0004] In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art: [0005] When the user selects a search prompt as a new keyword, the keyword displa...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/0487G06F17/30
Inventor 解伟涛
Owner HUAWEI TECH CO LTD