CN104699836A - Multi-keyword search prompting method and multi-keyword search prompting device - Google Patents
Multi-keyword search prompting method and multi-keyword search prompting device Download PDFInfo
- Publication number
- CN104699836A CN104699836A CN201510149146.7A CN201510149146A CN104699836A CN 104699836 A CN104699836 A CN 104699836A CN 201510149146 A CN201510149146 A CN 201510149146A CN 104699836 A CN104699836 A CN 104699836A
- Authority
- CN
- China
- Prior art keywords
- search
- cursor position
- response data
- input frame
- word
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- User Interface Of Digital Computer (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明公开了一种多关键字的搜索提示方法和装置,其中,方法包括:监听搜索输入框以获取搜索输入框中的光标位置;根据光标位置和搜索输入框中的分隔符确定搜索关键字;向搜索服务器发送搜索提示请求,搜索提示请求中包含搜索关键字;接收搜索服务器根据搜索提示请求返回的包含与搜索关键字相对应的搜索提示词的响应数据;从响应数据中获取搜索提示词并显示搜索提示词。通过本方案,搜索提示词并不仅依赖于整体输入内容,根据分隔符和光标位置变化反映出用户当前的搜索意图,给出更加准确、适合用户所需的搜索提示。
The invention discloses a multi-keyword search prompt method and device, wherein the method includes: monitoring the search input box to obtain the cursor position in the search input box; determining the search keyword according to the cursor position and the separator in the search input box ; Send a search prompt request to the search server, the search prompt request contains the search keyword; receive the response data that contains the search prompt word corresponding to the search keyword returned by the search server according to the search prompt request; obtain the search prompt word from the response data And display the search prompt words. Through this solution, the search prompt word does not only depend on the overall input content, but reflects the user's current search intention according to the change of the separator and cursor position, and provides more accurate search prompts suitable for the user's needs.
Description
技术领域technical field
本发明涉及互联网搜索技术领域,具体涉及一种多关键字的搜索提示方法和装置。The invention relates to the technical field of Internet search, in particular to a multi-keyword search prompt method and device.
背景技术Background technique
现有的搜索页面中,出于方便用户操作,引导用户搜索行为,向用户推送消息等目的,一般都提供有搜索提示的功能。In the existing search pages, for the purpose of facilitating user operations, guiding users' search behavior, and pushing messages to users, etc., the function of search prompts is generally provided.
在当前的搜索页面中,用户在搜索输入框中输入关键字,搜索页面将用户当前输入内容提供给搜索引擎,搜索引擎对当前输入进行联想,给出搜索提示词。其中,搜索提示包括多种情况,可以是对用户已输入的部分关键词进行补全,例如,用户输入了“新浪”,显示出搜索提示“新浪微博”、“新浪邮箱”等,这时,用户可直接点击给出的“新浪微博”提示,页面直接跳转至以“新浪微博”为关键字的搜索结果页;或者,对用户输入进行修正,例如用户输入了“xin”,给出“新浪”、“新加坡”的搜索提示;以及关联提示,例如,用户输入“匆匆那年”,给出“匆匆那年王菲”的搜索提示。On the current search page, the user inputs keywords in the search input box, the search page provides the user's current input content to the search engine, and the search engine associates the current input and gives search prompt words. Among them, the search prompt includes various situations, which may be to complete some of the keywords that the user has entered. For example, the user enters "Sina", and the search prompt "Sina Weibo", "Sina Mailbox", etc. is displayed. , the user can directly click the given "Sina Weibo" prompt, and the page will directly jump to the search result page with "Sina Weibo" as the keyword; or, modify the user input, for example, if the user enters "xin", Give search prompts for "Sina" and "Singapore"; and related prompts, for example, if the user inputs "Hurry That Year", give a search prompt for "Hurry That Year Faye Wong".
然而,上述的搜索提示方式仍然十分单一,当用户输入复杂时,例如,包括标点符号,空格时,难以给出合适的搜索提示。However, the above-mentioned search prompt method is still very simple, and it is difficult to give a suitable search prompt when the user input is complex, for example, including punctuation marks and spaces.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的多关键字的搜索提示方法和装置。In view of the above problems, the present invention is proposed to provide a multi-keyword search prompt method and device that overcomes the above problems or at least partially solves the above problems.
根据本发明的一个方面,提供了一种多关键字的搜索提示方法,包括:According to one aspect of the present invention, a multi-keyword search prompt method is provided, including:
监听搜索输入框以获取搜索输入框中的光标位置;Listen to the search input box to get the cursor position in the search input box;
根据光标位置和搜索输入框中的分隔符确定搜索关键字;Determine the search keyword according to the cursor position and the separator in the search input box;
向搜索服务器发送搜索提示请求,搜索提示请求中包含搜索关键字;Send a search prompt request to the search server, where the search prompt request contains search keywords;
接收搜索服务器根据搜索提示请求返回的包含与搜索关键字相对应的搜索提示词的响应数据;Receiving response data containing search prompt words corresponding to search keywords returned by the search server according to the search prompt request;
从响应数据中获取搜索提示词并显示搜索提示词。Get the search hint from the response data and display the search hint.
可选地,所述监听搜索输入框以获取搜索输入框中的光标位置进一步包括:监听搜索输入框中的输入事件以获取当前输入位置作为所述光标位置;Optionally, the monitoring the search input box to obtain the cursor position in the search input box further includes: monitoring the input event in the search input box to obtain the current input position as the cursor position;
所述根据所述光标位置和所述搜索输入框中的分隔符确定搜索关键字进一步包括:将搜索输入框中光标位置与最末分隔符之间的输入内容确定为搜索关键字。The determining the search keyword according to the cursor position and the separator in the search input box further includes: determining the input content between the cursor position and the last separator in the search input box as the search keyword.
可选地,所述监听搜索输入框以获取搜索输入框中的光标位置进一步包括:监听搜索输入框中的光标位置变化事件以获取光标位置;Optionally, the monitoring the search input box to obtain the cursor position in the search input box further includes: monitoring the cursor position change event in the search input box to obtain the cursor position;
所述根据所述光标位置和所述搜索输入框中的分隔符确定搜索关键字进一步包括:将所述光标位置与所述光标位置之前的最后一个分隔符之间的输入内容确定为搜索关键字。The determining the search keyword according to the cursor position and the separator in the search input box further includes: determining the input content between the cursor position and the last separator before the cursor position as the search keyword .
可选地,在所述接收搜索服务器根据所述搜索提示请求返回的包含与所述搜索关键字相对应的搜索提示词的响应数据之后,所述方法进一步包括:将所述包含搜索提示词的响应数据保存在本地缓存;Optionally, after receiving the response data containing the search prompt word corresponding to the search keyword returned by the search server according to the search prompt request, the method further includes: The response data is saved in the local cache;
可选地,所述获取并显示所述搜索提示词进一步包括:Optionally, the obtaining and displaying the search prompt further includes:
从本地缓存中读取所述响应数据;Read the response data from the local cache;
从所述响应数据中提取所述搜索提示词。The search prompt is extracted from the response data.
可选地,所述获取并显示所述搜索提示词进一步包括:Optionally, the obtaining and displaying the search prompt further includes:
在搜索下拉框中显示所述搜索提示词。The search prompt word is displayed in the search drop-down box.
根据本发明的另一方面,提供了一种多关键字的搜索提示装置,包括:According to another aspect of the present invention, a multi-keyword search prompt device is provided, including:
监听模块,适于监听搜索输入框以获取搜索输入框中的光标位置;A monitoring module, adapted to monitor the search input box to obtain the cursor position in the search input box;
选定模块,适于根据光标位置和搜索输入框中的分隔符确定搜索关键字;Selected modules adapted to determine search keywords based on cursor position and separators in the search input box;
发送接口,适于向搜索服务器发送搜索提示请求,搜索提示请求中包含搜索关键字;A sending interface, adapted to send a search prompt request to the search server, where the search prompt request contains search keywords;
接收接口,适于接收搜索服务器根据搜索提示请求返回的包含与搜索关键字相对应的搜索提示词的响应数据;The receiving interface is adapted to receive the response data containing the search prompt word corresponding to the search keyword returned by the search server according to the search prompt request;
获取模块,适于从响应数据中获取搜索提示词;An acquisition module adapted to acquire search prompt words from the response data;
显示模块,适于显示搜索提示词。The display module is suitable for displaying search prompt words.
可选地,所述监听模块进一步适于:监听搜索输入框中的输入事件以获取当前输入位置作为所述光标位置;Optionally, the monitoring module is further adapted to: monitor input events in the search input box to obtain the current input position as the cursor position;
所述选定模块进一步适于:将搜索输入框中光标位置与最末分隔符之间的输入内容确定为搜索关键字。The selection module is further adapted to: determine the input content between the cursor position and the last delimiter in the search input box as the search keyword.
可选地,所述监听模块进一步适于:监听搜索输入框中的光标位置变化事件以获取光标位置;Optionally, the monitoring module is further adapted to: monitor a cursor position change event in the search input box to obtain the cursor position;
所述选定模块进一步适于:将所述光标位置与所述光标位置之前的最后一个分隔符之间的输入内容确定为搜索关键字。The selection module is further adapted to: determine the input content between the cursor position and the last delimiter before the cursor position as a search keyword.
可选地,所述装置还包括:Optionally, the device also includes:
缓存模块,适于将所述包含搜索提示词的响应数据保存在本地缓存;A caching module, adapted to save the response data containing the search prompt in a local cache;
所述获取模块进一步适于:从本地缓存中读取所述响应数据,并从所述响应数据中提取所述搜索提示词。The acquisition module is further adapted to: read the response data from a local cache, and extract the search prompt words from the response data.
可选地,所述显示模块进一步适于:在搜索下拉框中显示所述搜索提示词。Optionally, the display module is further adapted to: display the search prompt words in a search drop-down box.
根据本发明的多关键字的搜索提示方法和装置,监听搜索输入框,根据搜索输入框中的光标位置和分隔符,选择搜索关键字,供搜索引擎根据选择的搜索关键字给出搜索提示词。通过上述方案,搜索提示词并不仅依赖于整体输入内容,根据分隔符和光标位置变化反映出用户当前的搜索意图,给出更加准确、适合用户所需的搜索提示。According to the multi-keyword search prompt method and device of the present invention, the search input box is monitored, and the search keyword is selected according to the cursor position and separator in the search input box, so that the search engine can provide search prompt words according to the selected search keyword . Through the above solution, the search prompt word does not only depend on the overall input content, but reflects the user's current search intention according to the change of the delimiter and the cursor position, and provides more accurate search prompts suitable for the user's needs.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1示出了根据本发明一个实施例的多关键字搜索提示方法的流程图;FIG. 1 shows a flowchart of a multi-keyword search prompt method according to an embodiment of the present invention;
图2a示出了现有技术中对多关键字的搜索提示结果的示意图;Fig. 2a shows a schematic diagram of search prompt results for multiple keywords in the prior art;
图2b示出了本发明实施例提供的搜索提示结果的示意图;Fig. 2b shows a schematic diagram of search prompt results provided by an embodiment of the present invention;
图3示出了根据本发明另一个实施例的多关键字的搜索提示方法的流程图;FIG. 3 shows a flowchart of a multi-keyword search prompt method according to another embodiment of the present invention;
图4示出了本发明实施例提供的一种搜索提示结果展示的示意图;Fig. 4 shows a schematic diagram of a display of search prompt results provided by an embodiment of the present invention;
图5示出了根据本发明另一个实施例的多关键字的搜索提示方法的流程图;FIG. 5 shows a flowchart of a multi-keyword search prompt method according to another embodiment of the present invention;
图6示出了本发明实施例提供的一种搜索提示结果展示的示意图;Fig. 6 shows a schematic diagram of a display of search prompt results provided by an embodiment of the present invention;
图7示出了根据本发明一个实施例的多关键字的搜索提示装置的结构示意图;FIG. 7 shows a schematic structural diagram of a multi-keyword search prompt device according to an embodiment of the present invention;
图8示出了根据本发明另一个实施例的多关键字的搜索提示装置的结构示意图。Fig. 8 shows a schematic structural diagram of a multi-keyword search prompting device according to another embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
图1示出了根据本发明一个实施例的多关键字搜索提示方法的流程图,如图1所示,方法包括如下步骤:Fig. 1 shows a flowchart of a multi-keyword search prompt method according to an embodiment of the present invention. As shown in Fig. 1, the method includes the following steps:
步骤S110,监听搜索输入框以获取搜索输入框中的光标位置。Step S110, monitor the search input box to obtain the cursor position in the search input box.
本发明实施例的多关键字搜索提示方法可用于各种搜索场景中,包括:搜索服务商提供的搜索页面,导航页面的搜索条,以及智能手机、平板电脑等移动终端的具有搜索功能的客户端程序中。The multi-keyword search prompt method of the embodiment of the present invention can be used in various search scenarios, including: search pages provided by search service providers, search bars on navigation pages, and mobile terminals such as smartphones and tablet computers that have search functions. in the terminal program.
该步骤中,监听光标位置由相应的客户端程序完成,例如,在搜索页面中,对搜索输入框的监听通过页面中的Javascript代码完成。In this step, monitoring the position of the cursor is completed by a corresponding client program, for example, in the search page, the monitoring of the search input box is completed through Javascript code in the page.
光标位置的变化可能是由于用户的输入导致,也可能由于用户移动、点击光标导致。因此,监听搜索输入框可以包括:监听搜索输入框中的输入事件以获取当前输入位置作为光标位置,或监听搜索输入框中的光标位置变化事件以获取光标位置。The change of the cursor position may be caused by the user's input, or may be caused by the user moving or clicking the cursor. Therefore, listening to the search input box may include: listening to an input event in the search input box to obtain the current input position as the cursor position, or listening to a cursor position change event in the search input box to obtain the cursor position.
步骤S120,根据光标位置和搜索输入框中的分隔符确定搜索关键字。Step S120, determine the search keyword according to the position of the cursor and the delimiter in the search input box.
图2a示出了现有技术中对多关键字的搜索提示结果的示意图,如图2a所示,当用户在搜索框中输入“匆匆”时,给出多个搜索提示,包括“匆匆那年”、“匆匆那年电影”等;而当用户输入了“匆匆那年,后会”后,给出的搜索提示只有“匆匆那年后会无期”。显然,在这种输入条件下,现有技术中给出的搜索提示没有实际的意义。Figure 2a shows a schematic diagram of the search prompt results for multiple keywords in the prior art. As shown in Figure 2a, when the user enters "hurried" in the search box, multiple search prompts are given, including "hurried that year" ", "Movies in that year in a hurry" and so on; and when the user enters "that year in a hurry, we will meet later", the search prompt given is only "There will be no date in that year in a hurry". Obviously, under such input conditions, the search hints given in the prior art have no practical meaning.
在现有的搜索提示方式中,页面获取搜索输入框中的输入内容时,实际上忽略了分隔符以及分隔符与光标的位置关系。而只获取全部的文字内容作为一个用于匹配的前缀,由搜索引擎根据该前缀进行匹配,得到搜索提示词。而当用户输入内容过长时,也越来越难以匹配。In the existing search prompt method, when the page obtains the input content in the search input box, the delimiter and the positional relationship between the delimiter and the cursor are actually ignored. Instead, only the entire text content is obtained as a prefix for matching, and the search engine performs matching according to the prefix to obtain search prompt words. And when the user input is too long, it becomes more and more difficult to match.
与本发明有关的一种场景是,用户在搜索输入框中输入了“北京,地铁”,这时,按照现有的搜索提示方式,给出的搜索提示是“北京地铁规划图”、“北京地铁3号线”等以“北京地铁”为前缀的匹配词。而实际上,用户输入“北京,地铁”,其中不仅包含上述的搜索可能性,还可能包含与“北京”或“地铁”有关的意图。例如,如果用户又想要得到与“北京”有关的搜索提示,则需要删除部分内容或重新输入。A scenario related to the present invention is that the user enters "Beijing, subway" in the search input box. At this time, according to the existing search prompt method, the search prompt given is "Beijing Metro Planning Map", "Beijing Subway Line 3" and other matching words prefixed with "Beijing Subway". In fact, the user enters "Beijing, subway", which not only contains the above-mentioned search possibilities, but may also contain intents related to "Beijing" or "subway". For example, if the user wants to get a search prompt related to "Beijing", he needs to delete part of the content or re-enter.
本发明实施例提供的搜索提示方法中,对搜索输入框中的分隔符采用了一种不同的处理方式。具体地,按照预定的搜索关键字选取规则,通过分隔符和光标之间的位置关系选定搜索关键字,作为搜索引擎提供搜索提示的搜索关键字。In the search prompt method provided by the embodiment of the present invention, a different processing method is adopted for the delimiter in the search input box. Specifically, according to predetermined search keyword selection rules, the search keyword is selected through the positional relationship between the delimiter and the cursor, and is used as a search keyword for the search engine to provide search prompts.
也就是说,本发明中,光标和分隔符不仅用于分隔关键字、标识文字关系。更进一步地,通过光标的位置和分隔符来判断用户的可能的意图,而为用户提供更合适的搜索提示。That is to say, in the present invention, the cursor and the delimiter are not only used for separating keywords and identifying textual relations. Furthermore, the possible intention of the user is judged by the position of the cursor and the delimiter, so as to provide the user with more suitable search prompts.
其中,分隔符可以使逗号、下划线、空格等。进一步地,分隔符还可由用户根据需要进行自定义,本发明对此不做限定。Among them, the delimiter can be comma, underscore, space, etc. Further, the separator can also be customized by the user according to needs, which is not limited in the present invention.
具体地,根据光标位置和搜索输入框中的分隔符确定搜索关键字包括了多种方式,例如,以光标位置和光标位置之前的最后一个分隔符之间的输入内容作为搜索关键字,或者光标和距离光标最近的分隔符之间的输入内容,或者是以光标位置所在的由光标两侧的分隔符界定的输入内容作为关键字等,不一一列举。Specifically, determining the search key according to the cursor position and the delimiter in the search input box includes various methods, for example, using the input content between the cursor position and the last delimiter before the cursor position as the search key, or using the cursor The input content between the delimiter closest to the cursor, or the input content delimited by the delimiters on both sides of the cursor at the cursor position as the keyword, etc., are not listed one by one.
图2b中给出了根据本实施例方法提供的一种搜索提示的示意图。如图2b所示,当用户输入了“匆匆那年,后会无期,触不”时,通过步骤S110中对搜索框的监控,获取光标位置在文字末尾,这时,由光标和搜索输入框中最末分隔符界定的内容是“触不”,从而得到的搜索关键字为“触不”。Fig. 2b shows a schematic diagram of a search prompt provided by the method of this embodiment. As shown in Figure 2b, when the user has input "that year in a hurry, there will be no future, no touch", through the monitoring of the search box in step S110, the position of the cursor is obtained at the end of the text. At this time, the cursor and the search input box The content delimited by the last delimiter in is "touch not", so that the obtained search keyword is "touch not".
步骤S130,向搜索服务器发送搜索提示请求。Step S130, sending a search prompt request to the search server.
将“触不”作为搜索关键字,生成搜索提示请求,并将“触不”添加在搜索提示请求中。搜索引擎将对该搜索关键字进行匹配,得到搜索提示词。Use "touch not" as a search keyword to generate a search prompt request, and add "touch not" to the search prompt request. The search engine will match the search keywords to obtain search prompt words.
步骤S140,接收搜索服务器根据搜索提示请求返回的包含与搜索关键字相对应的搜索提示词的响应数据。Step S140, receiving the response data including the search prompt word corresponding to the search keyword returned by the search server according to the search prompt request.
作为示例,搜索引擎服务端返回的响应数据为:jQuery18305032303205225617_1418895223595({″query″:″触不可及″,″result″:[{″word″:″触不可及电影″},{″word″:″触不可及西瓜影音″},{″word″:″触不可及迅雷下载″},{″word″:″触不可及2014电影″},{″word″:″触不可及孙红雷″},{″word″:″触不可及音乐″},{″word″:″触不可及影评″},{″word″:″触不可及主题曲″},{″word″:″触不可及票房″},{″word″:″触不可及2014″}],″version″:″3.01″})。As an example, the response data returned by the search engine server is: jQuery18305032303205225617_1418895223595 ({"query": "Untouchable", "result": [{"word": "Untouchable Movie"}, {"word":" Untouchable Watermelon Video "}, {"word": "Untouchable Thunder Download"}, {"word": "Untouchable 2014 Movie"}, {"word": "Untouchable Sun Honglei"}, { "word": "Untouchable music"}, {"word": "Untouchable movie review"}, {"word": "Untouchable theme song"}, {"word": "Untouchable box office" }, {"word": "Untouchable 2014"}], "version": "3.01"}).
当然,返回的响应数据中还可以带有其他内容,例如,与触不可及有关的图片等,电影观看地址等。Of course, the returned response data may also contain other content, for example, pictures related to untouchables, movie viewing addresses, etc.
步骤S150,从响应数据中获取搜索提示词并显示搜索提示词。Step S150, obtaining the search prompt words from the response data and displaying the search prompt words.
具体地,如图2b所示,在搜索输入框下方显示搜索下拉框,将提取出的搜索提示词按顺序显示在搜索下拉框中。并为每个搜索提示词设置可点击事件,与对应的搜索结果页绑定,用户点击搜索提示词后,直接跳转到以该搜索提示词为搜索关键字的搜索结果页上。Specifically, as shown in FIG. 2 b , a search drop-down box is displayed below the search input box, and the extracted search prompt words are displayed in the search drop-down box in order. And set a clickable event for each search prompt word, which is bound to the corresponding search result page. After the user clicks the search prompt word, it will directly jump to the search result page with the search prompt word as the search keyword.
根据本发明上述实施例提供的方法,监控搜索输入框获取光标位置,通过光标位置与分隔符之间的关系,确定搜索关键字,将搜索提示请求发送给搜索引擎,根据搜索引擎返回的响应数据展示搜索关键字。通过本方案,搜索提示并不仅依赖于整体输入内容,而是根据分隔符和光标位置变化判断出用户当前的搜索意图,给出更加准确、适合用户所需的搜索提示。同时也增加了搜索提示的灵活性,用户无需删除或重新输入等操作,就可以得到不同的搜索提示。According to the method provided by the above-mentioned embodiments of the present invention, monitor the search input box to obtain the cursor position, determine the search keyword through the relationship between the cursor position and the delimiter, send the search prompt request to the search engine, and according to the response data returned by the search engine Show search keywords. Through this solution, the search prompt does not only depend on the overall input content, but judges the user's current search intention according to the change of the delimiter and the cursor position, and provides more accurate and suitable search prompts for the user. At the same time, the flexibility of the search prompt is also increased, and the user can obtain different search prompts without operations such as deletion or re-input.
图3示出了根据本发明另一个实施例的多关键字的搜索提示方法,如图3所示,方法包括如下步骤:Fig. 3 shows a multi-keyword search prompt method according to another embodiment of the present invention. As shown in Fig. 3, the method includes the following steps:
步骤S310,监听搜索输入框中的输入事件以获取当前输入位置作为光标位置。Step S310, monitor the input event in the search input box to obtain the current input position as the cursor position.
本发明实施例以用户输入过程为例,介绍本发明方法的一种具体实现方式。The embodiment of the present invention takes the user input process as an example to introduce a specific implementation manner of the method of the present invention.
当用户正在搜索输入框中输入内容时,光标位置随用户输入向后移动。这时,可以实时监控搜索输入变化获取光标位置。具体地,对于搜索页面,这可以通过在页面中添加Javascript脚本,实时监控输入值的变化实现,例如监控oninput、onpropertychange事件等。When the user is typing in the search input box, the cursor position moves backwards with the user input. At this time, the change of the search input can be monitored in real time to obtain the position of the cursor. Specifically, for a search page, this can be achieved by adding Javascript scripts to the page to monitor changes in input values in real time, such as monitoring oninput and onpropertychange events.
步骤S320,将搜索输入框中光标位置与最末分隔符之间的输入内容确定为搜索关键字。Step S320, determine the input content between the cursor position and the last delimiter in the search input box as the search keyword.
用户输入过程中,显示的搜索提示随着用户输入不断变化,如图4所示,用户在搜索输入框中输入了“匆匆那年,后会无”时,按照光标位置与最末的分隔符“,”之前的输入内容是“后会无”。这时,认为用户的搜索意图是“后会无”有关的内容而不包括分隔符之前的内容,将此部分内容作为搜索关键字。而当用户继续输入至“匆匆那年,后会无期,触不”,判断用户的搜索意图是与“触不”有关的内容,对应地,搜索关键字为“触不”。During the user's input process, the displayed search prompt changes continuously with the user's input. As shown in Figure 4, when the user enters "the year in a hurry, there will be no later" in the search input box, according to the position of the cursor and the last delimiter The input content before "," is "nothing after". At this time, it is considered that the user's search intention is the content related to "there will be nothing after" and does not include the content before the delimiter, and this part of the content is used as the search keyword. And when the user continues to enter "the year in a hurry, there will be no future, touch not", it is judged that the user's search intention is related to "touch not", and correspondingly, the search keyword is "touch not".
步骤S330,向搜索服务器发送搜索提示请求。Step S330, sending a search prompt request to the search server.
搜索提示请求中包含搜索关键字,具体地,对于图4中的两个示例,搜索提示请求中包含的搜索关键字分别是“后会无”和“触不”。The search prompt request contains search keywords. Specifically, for the two examples in FIG. 4 , the search keywords contained in the search prompt request are "houhuiwu" and "touchbu".
步骤S340,接收搜索服务器根据搜索提示请求返回的包含与搜索关键字相对应的搜索提示词的响应数据。Step S340, receiving the response data including the search prompt word corresponding to the search keyword returned by the search server according to the search prompt request.
以搜索关键字为“触不”为例,可以返回如下响应数据:Taking the search keyword as "touch not" as an example, the following response data can be returned:
jQuery18305032303205225617_1418895223595({″query″:″触不可及″,″result″:[{″word″:″触不可及电影″},{″word″:″触不可及西瓜影音″},{″word″:″触不可及迅雷下载″},{″word″:″触不可及2014电影″},{″word″:″触不可及孙红雷″},{″word″:″触不可及音乐″},{″word″:″触不可及影评″},{″word″:″触不可及主题曲″},{″word″:″触不可及票房″},{″word″:″触不可及2014″}],″version″:″3.01″})。jQuery18305032303205225617_1418895223595({"query": "Untouchable", "result": [{"word": "Untouchable movie"}, {"word": "Untouchable watermelon video"}, {"word": "Untouchable Thunder Download"}, {"word": "Untouchable 2014 Movie"}, {"word": "Untouchable Sun Honglei"}, {"word": "Untouchable Music"}, { ″word″: ″Untouchable movie review”}, {″word″: ″Untouchable theme song″}, {″word″: ″Untouchable box office”}, {″word″: ″Untouchable 2014″ }], "version": "3.01"}).
当然,除搜索提示外,响应数据中还可以包含其他内容。例如,对其中一个搜索提示词“触不可及电影”,搜索引擎获得该搜索关键字后,搜索结果页面中第一项为触不可及电影的在线观看网址,并带有一张电影海报的图片,则返回的响应数据中还可以包含该图片文件。另外,还可以包含URL地址等。Of course, other content may be included in the response data besides the search prompt. For example, for one of the search prompt words "The Untouchable Movie", after the search engine obtains the search keyword, the first item on the search result page is the online viewing URL of the Untouchable movie, with a picture of the movie poster, The image file may also be included in the returned response data. In addition, URL addresses and the like may also be included.
步骤S350,将包含搜索提示词的响应数据保存在本地缓存。Step S350, saving the response data containing the search prompt words in the local cache.
本实施例中,搜索页面从响应数据中提取搜索提示词之前,先将响应数据保存在本地缓存。这具有一些优势,例如,用户输入“匆匆”后,得到了与“匆匆”对应的响应数据,用户继续输入“匆匆那年,后会无期”,当用户删除了部分输入内容时而搜索输入框中的内容有变为“匆匆”后,可以直接从本地缓存的响应数据中提取出搜索提示词,提高了显示的速度,同时也能够减轻搜索引擎服务端的压力。In this embodiment, before the search page extracts the search prompt word from the response data, the response data is saved in the local cache. This has some advantages. For example, after the user enters "hastily", the response data corresponding to "hastily" is obtained. The user continues to input "hastily that year, and there will be no period later". When the user deletes part of the input content, the search input box After the content has been changed to "Hurrying", the search prompt words can be directly extracted from the locally cached response data, which improves the display speed and reduces the pressure on the search engine server.
步骤S360,从本地缓存中读取响应数据并从响应数据中提取出搜索提示词。Step S360, read the response data from the local cache and extract the search prompt words from the response data.
步骤S370,显示搜索提示词。Step S370, displaying search prompt words.
具体地,如图4所示,在搜索输入框下方显示搜索下拉框,将提取出的搜索提示词按顺序显示在搜索下拉框中。例如,对于图4中的搜索关键字为“触不”的示例,提取出“触不可及电影”,触不可及票房“等搜索提示词,并为每个搜索提示词设置可点击事件,与对应的搜索结果页绑定,用户点击搜索提示词后,直接跳转到以该搜索提示词为搜索关键字的搜索结果页上。Specifically, as shown in FIG. 4 , a search drop-down box is displayed below the search input box, and the extracted search prompt words are sequentially displayed in the search drop-down box. For example, for the example where the search keyword in Figure 4 is "untouchable", search prompt words such as "untouchable movie" and "untouchable box office" are extracted, and clickable events are set for each search prompt word, and The corresponding search result page is bound, and after the user clicks the search prompt word, it will directly jump to the search result page with the search prompt word as the search keyword.
根据本发明上述实施例提供的方法,随用户输入变化,根据光标位置和最末分隔符确定出搜索关键字,展现出随用户输入变化的搜索提示,准确反映用户的搜索意图,减少用户操作,给出更加合适的搜索提示。According to the method provided by the above-mentioned embodiments of the present invention, as the user input changes, the search keyword is determined according to the cursor position and the last delimiter, and a search prompt that changes with the user input is displayed to accurately reflect the user's search intention and reduce user operations. Give more appropriate search hints.
图5示出了根据本发明另一个实施例的多关键字的搜索提示方法的流程图,如图5所示,方法包括如下步骤:Fig. 5 shows a flowchart of a multi-keyword search prompt method according to another embodiment of the present invention. As shown in Fig. 5, the method includes the following steps:
步骤S510,监听搜索输入框中的光标位置变化事件以获取光标位置。Step S510, monitor the cursor position change event in the search input box to obtain the cursor position.
本实施例中适用于另一种情况,其中,用户已输入完成由多个分隔符分隔的多个搜索关键字。This embodiment is applicable to another situation, where the user has input multiple search keywords separated by multiple delimiters.
这时,用户可能还想要调整搜索关键字,或查看各个搜索关键字的搜索提示之间的对比。根据本实施例中的方法,用户输入完成后,可通过鼠标或键盘调整光标位置即可直接得到不同的搜索提示。At this point, the user may also want to adjust the search keywords, or see a comparison of search hints for each search keyword. According to the method in this embodiment, after the user input is completed, the user can directly obtain different search prompts by adjusting the position of the cursor through the mouse or keyboard.
具体地,对光标位置变化事件的监控可通过Javascript监控oninput、onpropertychange事件以及通过HTML监控鼠标、键盘动作完成,此处不做详细论述。Specifically, the monitoring of cursor position change events can be accomplished by monitoring oninput and onpropertychange events through Javascript and monitoring mouse and keyboard actions through HTML, which will not be discussed in detail here.
步骤S520,将光标位置与光标位置之前的最后一个分隔符之间的输入内容确定为搜索关键字。Step S520, determining the input content between the cursor position and the last delimiter before the cursor position as a search keyword.
图6示出了本实施例提供的一种搜索提示界面的示意图。如图6所示,用户在搜索输入框中输入了“匆匆那年,后会无期,触不可及”。当用户将光标移动到“无”后时,光标位置和光标位置之前的最后一个分隔符之间的输入内容是“后会无”,将这部分文字作为搜索关键字。类似地,当用户将光标移动到“可”后时,搜索关键字为“触不可”。FIG. 6 shows a schematic diagram of a search prompt interface provided by this embodiment. As shown in Figure 6, the user has entered "the year in a hurry, the future will be indefinite and untouchable" in the search input box. When the user moves the cursor after "None", the input content between the cursor position and the last delimiter before the cursor position is "There will be nothing after", and this part of the text is used as the search keyword. Similarly, when the user moves the cursor after "can", the search keyword is "untouchable".
步骤S530,向搜索服务器发送搜索提示请求。Step S530, sending a search prompt request to the search server.
步骤S540,接收搜索服务器根据搜索提示请求返回的包含与搜索关键字相对应的搜索提示词的响应数据。Step S540, receiving the response data including the search prompt word corresponding to the search keyword returned by the search server according to the search prompt request.
步骤S550,从响应数据中获取搜索提示词并显示搜索提示词。Step S550, obtaining the search prompt words from the response data and displaying the search prompt words.
步骤S530-S550的具体实施方式可参考上一实施例相关步骤的描述,此处不再赘述。For specific implementation manners of steps S530-S550, reference may be made to the description of related steps in the previous embodiment, and details are not repeated here.
根据本发明上述实施例提供的方法,监控搜索输入框光标变化事件获取光标位置,通过光标位置与光标前最后分隔符之间的关系,确定搜索关键字,通过本方案,搜索提示并不仅依赖于整体输入内容,而是根据分隔符和光标位置变化判断出用户当前的搜索意图,给出更加准确、适合的搜索提示。同时也增加了搜索提示的灵活性,用户无需删除或重新输入等操作,就可以得到不同的搜索提示。用户再输入多关键字后,仍然可根据用户选择输入的内容作为搜索关键字,得到不同的搜索提示,呈现更多的信息。According to the method provided by the above-mentioned embodiments of the present invention, monitor the cursor change event in the search input box to obtain the cursor position, and determine the search keyword through the relationship between the cursor position and the last delimiter before the cursor. Through this solution, the search prompt does not only depend on Instead of inputting the content as a whole, it can judge the user's current search intention according to the change of the delimiter and cursor position, and give more accurate and suitable search tips. At the same time, the flexibility of the search prompt is also increased, and the user can obtain different search prompts without operations such as deletion or re-input. After the user enters multiple keywords, the content selected by the user can still be used as the search keyword to obtain different search prompts and present more information.
图7示出了根据本发明一个实施例的多关键字的搜索提示装置的结构示意图,如图7所示,装置包括:Fig. 7 shows a schematic structural diagram of a multi-keyword search prompt device according to an embodiment of the present invention. As shown in Fig. 7, the device includes:
监听模块710,适于监听搜索输入框以获取搜索输入框中的光标位置。The monitoring module 710 is adapted to monitor the search input box to obtain the cursor position in the search input box.
本发明实施例的多关键字搜索提示装置可用于各种搜索场景中,包括:搜索服务商提供的搜索页面,导航页面的搜索条,以及智能手机、平板电脑等移动终端的搜索功能的客户端程序中。The multi-keyword search prompting device of the embodiment of the present invention can be used in various search scenarios, including: search pages provided by search service providers, search bars on navigation pages, and search function clients of mobile terminals such as smart phones and tablet computers program.
光标位置的变化可能是由于用户的输入导致,也可能由于用户移动、点击光标导致。因此,监听模块710进一步适于:监听搜索输入框中的输入事件以获取当前输入位置作为光标位置;或者,监听搜索输入框中的光标位置变化事件以获取光标位置。The change of the cursor position may be caused by the user's input, or may be caused by the user moving or clicking the cursor. Therefore, the monitoring module 710 is further adapted to: monitor the input event in the search input box to obtain the current input position as the cursor position; or monitor the cursor position change event in the search input box to obtain the cursor position.
具体地,对于搜索页面,这可以通过在页面中添加Javascript脚本,实时监控输入值的变化实现,例如监控oninput、onpropertychange事件等。Specifically, for a search page, this can be achieved by adding Javascript scripts to the page to monitor changes in input values in real time, such as monitoring oninput and onpropertychange events.
选定模块720,适于根据光标位置和所述搜索输入框中的分隔符确定搜索关键字。The selection module 720 is adapted to determine the search keyword according to the position of the cursor and the delimiter in the search input box.
本发明实施例提供的搜索提示装置中,对搜索输入框中的分隔符采用了一种不同的处理方式。具体地,按照预定的搜索关键字选取规则,通过分隔符和光标之间的位置关系选定搜索关键字,作为搜索引擎提供搜索提示的搜索关键字。In the search prompt device provided in the embodiment of the present invention, a different processing method is adopted for the delimiter in the search input box. Specifically, according to predetermined search keyword selection rules, the search keyword is selected through the positional relationship between the delimiter and the cursor, and is used as a search keyword for the search engine to provide search prompts.
也就是说,本发明中,光标和分隔符不仅用于分隔关键字、标识文字关系。更进一步地,通过光标的位置和分隔符来判断用户的可能的意图,而为用户提供更合适的搜索提示。That is to say, in the present invention, the cursor and the delimiter are not only used for separating keywords and identifying textual relations. Furthermore, the possible intention of the user is judged by the position of the cursor and the delimiter, so as to provide the user with more suitable search prompts.
其中,分隔符可以使逗号、下划线、空格等。进一步地,分隔符还可由用户根据需要进行自定义,本申请对此不做限定。Among them, the delimiter can be comma, underscore, space, etc. Further, the separator can also be customized by the user according to needs, which is not limited in this application.
具体地,选定模块720根据监听模块710的监听结果,将搜索输入框中光标位置与最末分隔符之间的输入内容确定为搜索关键字;或者,将光标位置与光标位置之前的最后一个分隔符之间的输入内容确定为搜索关键字。Specifically, the selection module 720 determines the input content between the cursor position and the last delimiter in the search input box as the search keyword according to the monitoring result of the monitoring module 710; or, the cursor position and the last delimiter before the cursor position The input content between delimiters is determined as the search key.
收发模块730,适于向搜索服务器发送搜索提示请求,搜索提示请求中包含所述搜索关键字,以及The transceiver module 730 is adapted to send a search prompt request to the search server, the search prompt request includes the search keyword, and
接收搜索服务器根据搜索提示请求返回的包含与搜索关键字相对应的搜索提示词的响应数据。Receiving response data including search prompt words corresponding to search keywords returned by the search server according to the search prompt request.
作为示例,搜索引擎服务端返回的响应数据为:jQuery18305032303205225617_1418895223595({″query″:″触不可及″,″result″:[{″word″:″触不可及电影″},{″word″:″触不可及西瓜影音″},{″word″:″触不可及迅雷下载″},{″word″:″触不可及2014电影″},{″word″:″触不可及孙红雷″},{″word″:″触不可及音乐″},{″word″:″触不可及影评″},{″word″:″触不可及主题曲″},{″word″:″触不可及票房″},{″word″:″触不可及2014″}],″version″:″3.01″})。As an example, the response data returned by the search engine server is: jQuery18305032303205225617_1418895223595 ({"query": "Untouchable", "result": [{"word": "Untouchable Movie"}, {"word":" Untouchable Watermelon Video "}, {"word": "Untouchable Thunder Download"}, {"word": "Untouchable 2014 Movie"}, {"word": "Untouchable Sun Honglei"}, { "word": "Untouchable music"}, {"word": "Untouchable movie review"}, {"word": "Untouchable theme song"}, {"word": "Untouchable box office" }, {"word": "Untouchable 2014"}], "version": "3.01"}).
获取模块740,适于从响应数据中获取搜索提示词。The obtaining module 740 is adapted to obtain the search prompt words from the response data.
显示模块750,适于显示搜索提示词。The display module 750 is adapted to display search prompt words.
具体地,在搜索下拉框中显示所述搜索提示词。并为每个搜索提示词设置可点击事件,与对应的搜索结果页绑定,用户点击搜索提示词后,直接跳转到以该搜索提示词为搜索关键字的搜索结果页上。Specifically, the search prompt word is displayed in the search drop-down box. And set a clickable event for each search prompt word, which is bound to the corresponding search result page. After the user clicks the search prompt word, it will directly jump to the search result page with the search prompt word as the search keyword.
图8示出了根据本发明一个实施例的多关键字的搜索提示装置的结构示意图,如图8所示,装置包括:Fig. 8 shows a schematic structural diagram of a multi-keyword search prompt device according to an embodiment of the present invention. As shown in Fig. 8, the device includes:
监听模块810,适于监听搜索输入框以获取搜索输入框中的光标位置。The monitoring module 810 is adapted to monitor the search input box to obtain the cursor position in the search input box.
可选地,监听模块810进一步适于:监听搜索输入框中的输入事件以获取当前输入位置作为光标位置;或者,监听搜索输入框中的光标位置变化事件以获取光标位置。Optionally, the monitoring module 810 is further adapted to: monitor input events in the search input box to obtain the current input position as the cursor position; or monitor cursor position change events in the search input box to obtain the cursor position.
选定模块820,适于根据光标位置和搜索输入框中的分隔符确定搜索关键字。The selection module 820 is adapted to determine the search keyword according to the position of the cursor and the delimiter in the search input box.
具体地,选定模块820根据监听模块810的监听结果,将搜索输入框中光标位置与最末分隔符之间的输入内容确定为搜索关键字;或者,将光标位置与光标位置之前的最后一个分隔符之间的输入内容确定为搜索关键字。Specifically, the selection module 820 determines the input content between the cursor position and the last delimiter in the search input box as the search keyword according to the monitoring result of the monitoring module 810; or, the cursor position and the last delimiter before the cursor position The input content between delimiters is determined as the search key.
收发模块830,适于向搜索服务器发送搜索提示请求,搜索提示请求中包含搜索关键字,以及The transceiver module 830 is adapted to send a search prompt request to the search server, where the search prompt request contains search keywords, and
接收搜索服务器根据搜索提示请求返回的包含与搜索关键字相对应的搜索提示词的响应数据。Receiving response data including search prompt words corresponding to search keywords returned by the search server according to the search prompt request.
缓存模块840,适于将包含搜索提示词的响应数据保存在本地缓存。The caching module 840 is adapted to save the response data containing the search prompt words in a local cache.
获取模块850,适于从本地缓存中读取响应数据,并从响应数据中提取搜索提示词。The acquiring module 850 is adapted to read the response data from the local cache, and extract the search prompt words from the response data.
显示模块860,适于显示搜索提示词。The display module 860 is adapted to display search prompt words.
根据本发明上述实施例提供的装置,监控搜索输入框获取光标位置,通过光标位置与分隔符之间的关系,确定搜索关键字,将搜索提示请求发送给搜索引擎,根据搜索引擎返回的响应数据展示搜索关键字。通过本方案,搜索提示并不仅依赖于整体输入内容,而是根据分隔符和光标位置变化判断出用户当前的搜索意图,给出更加准确、适合的搜索提示。同时也增加了搜索提示的灵活性,用户无需删除或重新输入等操作,就可以得到不同的搜索提示。并且,在用户在输入过程中以及在输入完成后都可根据光标位置变化给出灵活的搜索提示,展现更多的信息。According to the device provided by the above-mentioned embodiments of the present invention, monitor the search input box to obtain the cursor position, determine the search keyword through the relationship between the cursor position and the delimiter, send the search prompt request to the search engine, and according to the response data returned by the search engine Show search keywords. Through this solution, the search prompt does not only depend on the overall input content, but judges the user's current search intention according to the change of the delimiter and the cursor position, and gives more accurate and suitable search prompts. At the same time, the flexibility of the search prompt is also increased, and the user can obtain different search prompts without operations such as deletion or re-input. Moreover, flexible search prompts can be given according to changes in the position of the cursor to display more information during the input process and after the user completes the input.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的多关键字搜索提示装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the multi-keyword search prompting device according to the embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510149146.7A CN104699836A (en) | 2015-03-31 | 2015-03-31 | Multi-keyword search prompting method and multi-keyword search prompting device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510149146.7A CN104699836A (en) | 2015-03-31 | 2015-03-31 | Multi-keyword search prompting method and multi-keyword search prompting device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN104699836A true CN104699836A (en) | 2015-06-10 |
Family
ID=53346956
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510149146.7A Pending CN104699836A (en) | 2015-03-31 | 2015-03-31 | Multi-keyword search prompting method and multi-keyword search prompting device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104699836A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105677924A (en) * | 2016-03-29 | 2016-06-15 | 努比亚技术有限公司 | Data searching device and method |
| CN107247518A (en) * | 2017-08-01 | 2017-10-13 | 微云数聚(北京)科技有限公司 | Method, device, equipment and the readable storage medium storing program for executing of polynary association's input |
| CN108153769A (en) * | 2016-12-05 | 2018-06-12 | 天脉聚源(北京)科技有限公司 | A kind of method and system of webpage input frame auto-complete prompting |
| CN111381685A (en) * | 2018-12-29 | 2020-07-07 | 北京搜狗科技发展有限公司 | A sentence association method and device |
| CN114995691A (en) * | 2021-03-01 | 2022-09-02 | 北京字跳网络技术有限公司 | Document processing method, device, equipment and medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050028156A1 (en) * | 2003-07-30 | 2005-02-03 | Northwestern University | Automatic method and system for formulating and transforming representations of context used by information services |
| CN103076962A (en) * | 2012-12-27 | 2013-05-01 | 华为技术有限公司 | Search hint generating method and device |
| CN104199982A (en) * | 2014-09-25 | 2014-12-10 | 北京金山安全软件有限公司 | Method and device for displaying search keywords |
-
2015
- 2015-03-31 CN CN201510149146.7A patent/CN104699836A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050028156A1 (en) * | 2003-07-30 | 2005-02-03 | Northwestern University | Automatic method and system for formulating and transforming representations of context used by information services |
| CN103076962A (en) * | 2012-12-27 | 2013-05-01 | 华为技术有限公司 | Search hint generating method and device |
| CN104199982A (en) * | 2014-09-25 | 2014-12-10 | 北京金山安全软件有限公司 | Method and device for displaying search keywords |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105677924A (en) * | 2016-03-29 | 2016-06-15 | 努比亚技术有限公司 | Data searching device and method |
| CN108153769A (en) * | 2016-12-05 | 2018-06-12 | 天脉聚源(北京)科技有限公司 | A kind of method and system of webpage input frame auto-complete prompting |
| CN107247518A (en) * | 2017-08-01 | 2017-10-13 | 微云数聚(北京)科技有限公司 | Method, device, equipment and the readable storage medium storing program for executing of polynary association's input |
| CN111381685A (en) * | 2018-12-29 | 2020-07-07 | 北京搜狗科技发展有限公司 | A sentence association method and device |
| CN111381685B (en) * | 2018-12-29 | 2024-03-22 | 北京搜狗科技发展有限公司 | A sentence association method and device |
| CN114995691A (en) * | 2021-03-01 | 2022-09-02 | 北京字跳网络技术有限公司 | Document processing method, device, equipment and medium |
| CN114995691B (en) * | 2021-03-01 | 2024-03-08 | 北京字跳网络技术有限公司 | Document processing method, device, equipment and medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6665191B2 (en) | Method and apparatus for storing instant messaging chat records | |
| US9378290B2 (en) | Scenario-adaptive input method editor | |
| CN103514299B (en) | Information search method and device | |
| CN110245069B (en) | Page version testing method and device and page display method and device | |
| US20140344707A1 (en) | Information Distribution Method and Device | |
| US20170359446A1 (en) | Computer Application Promotion | |
| CN104462262A (en) | Method and device for achieving voice search and browser client side | |
| KR20180087456A (en) | Identifying matching applications based on browsing activity | |
| JP2015191655A (en) | Method and apparatus for generating recommendation page | |
| CN112136127B (en) | Action indicator for search operation output element | |
| CN106681598B (en) | Information input method and device | |
| WO2017215270A1 (en) | Information presentation method and apparatus, and electronic device | |
| US10061806B2 (en) | Presenting previously selected search results | |
| CN107463592B (en) | Method, device and data processing system for matching a content item with an image | |
| CN109791545B (en) | Context information for resources that are displayed including images | |
| CN107273393B (en) | Image searching method and device for mobile equipment and data processing system | |
| CN104699836A (en) | Multi-keyword search prompting method and multi-keyword search prompting device | |
| WO2008071120A1 (en) | Method and system for issuing relative information of internet keywords | |
| CN104598571A (en) | Method and device for playing multimedia resource | |
| CN104715067A (en) | Method, device and system for making key words on web page and browser client | |
| KR101859822B1 (en) | Posting method of contents and posting apparatus | |
| CN105183888A (en) | Data processing method based on browser and browser | |
| CN105808623A (en) | Search-based page access event association method and device | |
| CN105183887A (en) | Data processing method based on browser and browser device | |
| JP6684894B2 (en) | Method and apparatus for push information distribution |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150610 |
|
| RJ01 | Rejection of invention patent application after publication |