[go: up one dir, main page]

CN103294363B - A kind of searching method and terminal - Google Patents

A kind of searching method and terminal Download PDF

Info

Publication number
CN103294363B
CN103294363B CN201310186364.9A CN201310186364A CN103294363B CN 103294363 B CN103294363 B CN 103294363B CN 201310186364 A CN201310186364 A CN 201310186364A CN 103294363 B CN103294363 B CN 103294363B
Authority
CN
China
Prior art keywords
sliding
information
search
sliding operation
track
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.)
Active
Application number
CN201310186364.9A
Other languages
Chinese (zh)
Other versions
CN103294363A (en
Inventor
赵卓真
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310186364.9A priority Critical patent/CN103294363B/en
Publication of CN103294363A publication Critical patent/CN103294363A/en
Application granted granted Critical
Publication of CN103294363B publication Critical patent/CN103294363B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

本发明涉及一种搜索方法和终端。所述方法包括:识别用户对所述触摸屏上的显示内容执行滑动操作时的滑动轨迹;从所述触摸屏的显示内容中提取所述滑动轨迹对应的所述显示内容中的第一信息;获取以所述第一信息为搜索条件的搜索结果信息;显示所述搜索结果信息。只需识别用户在移动终端滑动手势时的滑动轨迹,识别出作为搜索条件的信息并实时获取及显示搜索结果,减少了操作复杂度,减少了时间成本,提升了搜索效率。

The invention relates to a search method and a terminal. The method includes: identifying a sliding track when the user performs a sliding operation on the display content on the touch screen; extracting first information in the display content corresponding to the sliding track from the display content of the touch screen; obtaining The first information is the search result information of the search condition; the search result information is displayed. It only needs to identify the sliding track of the user when the user slides the gesture on the mobile terminal, identify the information as the search condition, and obtain and display the search results in real time, which reduces the operation complexity, reduces the time cost, and improves the search efficiency.

Description

一种搜索方法和终端A search method and terminal

技术领域 technical field

本发明涉及计算机技术领域,尤其涉及一种搜索方法和终端。 The present invention relates to the field of computer technology, in particular to a search method and a terminal.

背景技术 Background technique

随着移动网络的发展,利用智能终端接入移动网络的应用也越来越多,例如网浏览新闻、阅读电子书等。 With the development of mobile networks, there are more and more applications using smart terminals to access mobile networks, such as web browsing news, reading e-books and so on.

在信息爆炸的时代,人们在生活会经常遇到不明白的或不了解的事物,对搜索的需求也越来越大,当使用移动终端的时候,人们希望可以随时随地的使用搜索引擎,进而获取到自己想要的信息。 In the era of information explosion, people often encounter things they do not understand or do not understand in their lives, and the demand for search is also increasing. When using mobile terminals, people hope to use search engines anytime and anywhere, and then Get the information you want.

在现有技术中,利用移动终端进行信息搜索,需要通过虚拟键盘输入搜索关键字,由于受到屏幕大小限制,文字输入过程中都会有诸多不便。或者从文本浏览界面切换到文本选择状态,在文本选择状态下通过拖动方式选择待搜索的字符串;将字符串转化为URL(UniversalResourceLocator,统一资源定位符),经浏览器发送网络服务器;网络服务器将搜索到的结果返回给浏览器,并以另外一个网页的形式呈现;当用户关闭显示搜索结果的页面时回到原文本浏览页面。 In the prior art, when using a mobile terminal to search for information, it is necessary to input a search keyword through a virtual keyboard. Due to the limitation of the screen size, there will be a lot of inconvenience in the text input process. Or switch from the text browsing interface to the text selection state, select the string to be searched by dragging in the text selection state; convert the string into a URL (UniversalResourceLocator, uniform resource locator), and send it to the web server through the browser; The server returns the searched results to the browser and presents them in the form of another web page; when the user closes the page displaying the search results, the user returns to the original text browsing page.

因此,现有技术需要选择搜索关键字的前提是必须切换到文本选择状态,增加了的误操作可能;在触发搜索行为后只能在单独的网页中查询搜索结果,若用户想同时对比当前文本浏览页面和搜索结果页面的内容,则需要在两页面之间来回切换,搜索效率不高。 Therefore, the premise of selecting search keywords in the existing technology is that it must switch to the text selection state, which increases the possibility of misoperation; after the search behavior is triggered, the search results can only be queried in a separate web page. If the user wants to compare the current text at the same time To browse the content of the page and the search result page, you need to switch back and forth between the two pages, and the search efficiency is not high.

发明内容 Contents of the invention

本发明实施例提供的搜索方法以及终端,可以通过滑动轨迹进行信息提取,从而提高搜索效率。 The search method and the terminal provided by the embodiments of the present invention can extract information through sliding tracks, thereby improving search efficiency.

第一方面,本发明实施例提供一种搜索方法,该方法包括:识别用户对所述触摸屏上的显示内容执行滑动操作时的滑动轨迹;从所述触摸屏的显示内容中提取所述滑动轨迹对应的所述显示内容中的第一信息;获取以所述第一信息为搜索条件的搜索结果信息;显示所述搜索结果信息。 In the first aspect, an embodiment of the present invention provides a search method, which includes: identifying the sliding track when the user performs a sliding operation on the display content on the touch screen; the first information in the displayed content; acquire the search result information with the first information as the search condition; and display the search result information.

结合第一方面,在第一种实现方式中,识别用户对所述触摸屏上的显示内容执行的沿第一方向的滑动操作的轨迹,所述沿第一方向的滑动操作的轨迹是所述第一方向上从滑动开始位置到滑动结束位置之间的轨迹,确定所述沿第一方向的滑动操作的轨迹作为执行滑动操作时的滑动轨迹。 With reference to the first aspect, in a first implementation manner, a trajectory of a sliding operation performed by the user on the display content on the touch screen along a first direction is identified, and the trajectory of the sliding operation along the first direction is the first For a trajectory in one direction from a sliding start position to a sliding end position, the trajectory of the sliding operation along the first direction is determined as the sliding trajectory when the sliding operation is performed.

结合第一方面,在第二种实现方式中,识别用户对所述触摸屏上的显示内容执行的沿第一方向的滑动操作的轨迹,所述沿第一方向的滑动操作的轨迹是所述第一方向上从滑动开始位置到滑动结束位置之间的轨迹,并识别用户对所述沿第一方向的滑动操作的轨迹执行的沿第二方向的滑动操作,所述沿第二方向滑动操作的开始位置与所述沿第一方向的滑动操作的结束位置重合,所述第二方向与所述第一方向相反的方向,确定所述沿第二方向的滑动操作的结束位置;确定用户沿所述第一方向的滑动操作的开始位置到所述第二方向的滑动操作的结束位置之间的轨迹为滑动操作时的滑动轨迹。 With reference to the first aspect, in a second implementation manner, a trajectory of a sliding operation performed by the user on the display content on the touch screen along the first direction is identified, and the trajectory of the sliding operation along the first direction is the first The track from the start position of the slide to the end position of the slide in one direction, and identify the slide operation along the second direction performed by the user on the track of the slide operation along the first direction, and the slide operation along the second direction The start position coincides with the end position of the sliding operation along the first direction, and the second direction is opposite to the first direction to determine the end position of the sliding operation along the second direction; The track between the start position of the slide operation in the first direction and the end position of the slide operation in the second direction is a slide track during the slide operation.

结合第一种或第二种实现方式,在第三种实现方式中,根据所述确定的所述滑动轨迹的滑动开始位置和滑动结束位置判断所述滑动轨迹是否为闭合曲线;当所述滑动轨迹为非闭合曲线时,获取所述滑动轨迹与所述显示内容相交的内容为所述第一信息;当所述滑动轨迹为闭合曲线时,获取所述滑动轨迹所包含的显示内容为所述第一信息。 In combination with the first or second implementation manner, in the third implementation manner, it is judged whether the sliding trajectory is a closed curve according to the determined sliding start position and sliding end position of the sliding trajectory; when the sliding When the track is an unclosed curve, acquire the content of the intersection of the sliding track and the display content as the first information; when the sliding track is a closed curve, acquire the display content included in the sliding track as the first information.

结合第一方面、第一方面的第一种实现方式、第二种实现方式或第三种实现方式,在第四种实现方式中,通过第一显示窗口显示所述第一信息。 With reference to the first aspect, the first implementation manner, the second implementation manner, or the third implementation manner of the first aspect, in a fourth implementation manner, the first information is displayed through the first display window.

结合第四种实现方式,在第五种实现方式中,所述第一显示窗口浮于所述触摸屏的显示内容的上层。 With reference to the fourth implementation manner, in a fifth implementation manner, the first display window floats on an upper layer of the display content of the touch screen.

结合第四种或第五种实现方式,在第六种实现方式中,通过第一显示窗口高亮显示所述第一信息;或者,通过所述第一显示窗口半透明或非透明显示所述第一信息。 With reference to the fourth or fifth implementation manner, in the sixth implementation manner, the first information is highlighted through the first display window; or, the first information is displayed translucently or non-transparently through the first display window. first information.

结合第四种、第五种或第六种实现方式,在第七种实现方式中,当所述滑动操作的当前位置靠近所述第一显示窗口时,所述第一显示窗口的位置远离所述滑动操作的当前位置。 With reference to the fourth, fifth or sixth implementation manner, in the seventh implementation manner, when the current position of the sliding operation is close to the first display window, the position of the first display window is far away from the first display window. The current position of the swipe action described above.

结合第一方面、或第一方面的上述任一一种实现方式,在第八种实现方式中,以所述第一信息为搜索条件从本地搜索,获得对应于所述搜索条件的搜索结果信息;或者,向搜索服务器发送所述第一信息,接收所述搜索服务器发送的以所述第一信息为搜索条件的搜索结果信息。 In combination with the first aspect, or any one of the above implementations of the first aspect, in an eighth implementation, the first information is used as the search condition to search locally, and the search result information corresponding to the search condition is obtained ; or, sending the first information to a search server, and receiving search result information sent by the search server and using the first information as a search condition.

结合第一方面、或第一方面的上述任一一种实现方式,在第九种实现方式中,通过第二显示窗口显示所述搜索结果信息。 With reference to the first aspect, or any one of the above implementation manners of the first aspect, in a ninth implementation manner, the search result information is displayed through the second display window.

结合第九种实现方式,在第十种实现方式中,所述第二显示窗口浮于所述触摸屏的显示内容的上层。 With reference to the ninth implementation manner, in the tenth implementation manner, the second display window floats on an upper layer of the display content of the touch screen.

结合第八种实现方式或第九种实现方式,在第十种实现方式中,通过所述第二显示窗口高亮显示所述搜索结果信息;或者,通过所述第二显示窗口半透明或者非透明显示所述搜索结果信息。 With reference to the eighth implementation manner or the ninth implementation manner, in the tenth implementation manner, the search result information is highlighted through the second display window; or, the second display window is translucent or opaque Transparently display the search result information.

结合第一方面、或第一方面的上述任一一种实现方式,在第十一种实现方式中,在所述识别用户对所述触摸屏上的显示内容执行滑动操作时的滑动轨迹之前,所述方法还包括:获取用户通过所述触摸屏输入的指示搜索开始的指令。 With reference to the first aspect, or any one of the above-mentioned implementation manners of the first aspect, in the eleventh implementation manner, before the identification of the sliding track when the user performs a sliding operation on the displayed content on the touch screen, the The method further includes: obtaining an instruction input by the user through the touch screen indicating the start of the search.

结合第十一种实现方式,在第十二种实现方式中,所述指示搜索开始的指令包括用户对所述触摸屏上任意位置的一次点击操作的时长超过预设的时长阈值。 With reference to the eleventh implementation manner, in the twelfth implementation manner, the instruction for instructing to start the search includes that the duration of a user's click operation on any position on the touch screen exceeds a preset duration threshold.

第二方面,本发明实施例提供一种终端,该终端包括:识别单元、提取单元、获取单元和显示单元。识别单元,用于识别用户对所述触摸屏上的显示内容执行滑动操作时的滑动轨迹;提取单元,用于从所述触摸屏的显示内容中提取所述识别单元识别的所述滑动轨迹对应所述显示内容中的第一信息,并发送给所述获取单元;获取单元,用于接收所述提取单元发送的所述第一信息,获取以所述第一信息为搜索条件的搜索结果信息,并将所述搜索结果信息发送给所述显示单元;显示单元,用于接收所述获取单元发送的所述搜索结果信息,并显示所述搜索结果信息。 In a second aspect, an embodiment of the present invention provides a terminal, and the terminal includes: an identification unit, an extraction unit, an acquisition unit, and a display unit. The identification unit is used to identify the sliding track when the user performs a sliding operation on the display content on the touch screen; the extraction unit is used to extract from the display content of the touch screen that the sliding track identified by the identification unit corresponds to the Displaying the first information in the content and sending it to the acquiring unit; the acquiring unit is configured to receive the first information sent by the extracting unit, acquire search result information using the first information as a search condition, and The search result information is sent to the display unit; the display unit is configured to receive the search result information sent by the acquisition unit, and display the search result information.

结合第二方面,在第一种实现方式下,所述识别单元具体用于:识别用户对所述触摸屏上的显示内容执行的沿第一方向的滑动操作的轨迹,所述沿第一方向的滑动操作的轨迹是所述第一方向上从滑动开始位置到滑动结束位置之间的轨迹,确定所述沿第一方向的滑动操作的轨迹作为执行滑动操作时的滑动轨迹。 With reference to the second aspect, in the first implementation manner, the identification unit is specifically configured to: identify a trajectory of a sliding operation performed by the user on the display content on the touch screen along the first direction, and the sliding operation along the first direction The trajectory of the sliding operation is a trajectory from the sliding start position to the sliding end position in the first direction, and the trajectory of the sliding operation along the first direction is determined as the sliding trajectory when performing the sliding operation.

结合第二方面,在第二种实现方式下,所述识别单元具体用于:识别用户对所述触摸屏上的显示内容执行的沿第一方向的滑动操作的轨迹,所述沿第一方向的滑动操作的轨迹是所述第一方向上从滑动开始位置到滑动结束位置之间的轨迹,并识别用户对所述沿第一方向的滑动操作的轨迹执行的沿第二方向的滑动操作,所述沿第二方向滑动操作的开始位置与所述沿第一方向的滑动操作的结束位置重合,所述第二方向与所述第一方向相反的方向,确定所述沿第二方向的滑动操作的结束位置;确定用户沿所述第一方向的滑动操作的开始位置到所述第二方向的滑动操作的结束位置之间的轨迹为滑动操作时的滑动轨迹。 With reference to the second aspect, in a second implementation manner, the identification unit is specifically configured to: identify a trajectory of a sliding operation performed by the user on the display content on the touch screen along the first direction, and the sliding operation along the first direction The trajectory of the sliding operation is the trajectory from the sliding start position to the sliding end position in the first direction, and the sliding operation along the second direction performed by the user on the sliding operation trajectory along the first direction is identified, so The start position of the sliding operation along the second direction coincides with the end position of the sliding operation along the first direction, and the second direction is opposite to the first direction to determine the sliding operation along the second direction The end position of the sliding operation; determining the trajectory between the starting position of the user's sliding operation in the first direction and the ending position of the sliding operation in the second direction as the sliding trajectory during the sliding operation.

结合第一种或第二种实现方式,在第三种实现方式下,所述提取单元具体用于:根据所述识别单元确定的所述滑动轨迹的滑动开始位置和滑动结束位置判断所述滑动轨迹是否为闭合曲线;当所述滑动轨迹为非闭合曲线时,获取所述滑动轨迹与所述显示内容相交的内容为所述第一信息;当所述滑动轨迹为闭合曲线时,获取所述滑动轨迹所包含的显示内容为所述第一信息。 In combination with the first or second implementation manner, in the third implementation manner, the extraction unit is specifically configured to: determine the sliding position according to the sliding start position and the sliding end position of the sliding track determined by the identification unit. Whether the track is a closed curve; when the sliding track is an unclosed curve, obtain the content of the intersection of the sliding track and the display content as the first information; when the sliding track is a closed curve, obtain the The display content included in the slide track is the first information.

集合第二方面,或第二方面的上述任一种实现方式,在第四种实现方式下,所述显示单元还用于:通过第一显示窗口显示所述第一信息。 Combining the second aspect, or any of the above-mentioned implementation manners of the second aspect, in a fourth implementation manner, the display unit is further configured to: display the first information through a first display window.

结合第四种实现方式,在第五种实现方式下,所述显示单元具体用于:通过第一显示窗口高亮显示所述第一信息;或者,通过第一显示窗口半透明或非透明显示所述第一信息。 With reference to the fourth implementation manner, in the fifth implementation manner, the display unit is specifically configured to: highlight the first information through the first display window; or display the first information semi-transparently or non-transparently through the first display window the first information.

结合第四种或第五种实现方式,在第六种实现方式下,该终端还包括窗口移动单元。所述窗口移动单元用于:当所述滑动操作的当前位置靠近所述第一显示窗口时,所述第一显示窗口的位置远离所述滑动操作的当前位置。 With reference to the fourth or fifth implementation manner, in a sixth implementation manner, the terminal further includes a window moving unit. The window moving unit is configured to: when the current position of the sliding operation is close to the first display window, the position of the first display window is far away from the current position of the sliding operation.

结合第二方面、或第二方面的上述任一种实现方式,在第七种实现方式下,所述获取单元具体用于:以所述第一信息为搜索条件从本地搜索,获得对应于所述搜索条件的搜索结果信息;或者,向搜索服务器发送所述第一信息,接收所述搜索服务器发送的以所述第一信息为搜索条件的搜索结果信息。 In combination with the second aspect, or any of the above-mentioned implementation manners of the second aspect, in the seventh implementation manner, the acquisition unit is specifically configured to: use the first information as a search condition to search locally, and obtain information corresponding to the or, send the first information to the search server, and receive the search result information with the first information as the search condition sent by the search server.

结合第二方面、或第二方面的上述任一种实现方式,在第八种实现方式下,所述显示单元具体用于:通过第二显示窗口显示所述搜索结果信息。 With reference to the second aspect, or any of the above implementation manners of the second aspect, in an eighth implementation manner, the display unit is specifically configured to: display the search result information through a second display window.

结合第二方面、或第二方面的上述任一种实现方式,在第九种实现方式下,该终端还包括搜索开始指令单元,用于获取用户通过所述触摸屏输入的指示搜索开始的指令,并将所述指令发送给所述识别单元。所述识别单元具体用于:在接收到所述指令时,执行所述识别用户对所述触摸屏上的显示内容执行滑动操作时的滑动轨迹的步骤。 With reference to the second aspect, or any of the above-mentioned implementation manners of the second aspect, in a ninth implementation manner, the terminal further includes a search start instruction unit, configured to obtain an instruction input by the user through the touch screen indicating the start of the search, and send the instruction to the identification unit. The identification unit is specifically configured to: when receiving the instruction, execute the step of identifying a sliding track when the user performs a sliding operation on the displayed content on the touch screen.

结合第九种实现方式,在第十种实现方式下,所述指示搜索开始的指令包括用户对所述触摸屏上任意位置的一次点击操作的时长超过预设的时长阈值。 With reference to the ninth implementation manner, in the tenth implementation manner, the instruction for instructing to start the search includes that the duration of a user's click operation on any position on the touch screen exceeds a preset duration threshold.

第三方面,本发明实施例还提供另一种终端,该终端包括处理器和触摸屏。所述触摸屏用于:接收用户对所述触摸屏上的显示内容执行的滑动操作。所述处理器用于:识别所述用户对所述触摸屏上的显示内容执行所述滑动操作时的滑动轨迹;从所述触摸屏的显示内容中提取所述滑动轨迹对应的所述显示内容中的第一信息;获取以所述第一信息为搜索条件的搜索结果信息。所述触摸屏还用于:显示所述处理器获取的所述搜索结果信息。 In a third aspect, an embodiment of the present invention further provides another terminal, where the terminal includes a processor and a touch screen. The touch screen is used for: receiving a sliding operation performed by a user on the displayed content on the touch screen. The processor is configured to: identify a sliding track when the user performs the sliding operation on the display content on the touch screen; extract the first item in the display content corresponding to the sliding track from the display content of the touch screen A piece of information; acquiring search result information with the first information as a search condition. The touch screen is further configured to: display the search result information acquired by the processor.

结合第三方面,在第一种实现方式下,该终端还包括存储器;所述存储器用于:存储数据;所述处理器具体用于:以所述第一信息为搜索条件搜索所述存储器存储的数据,获取以所述第一信息为搜索条件的搜索结果信息。 With reference to the third aspect, in the first implementation manner, the terminal further includes a memory; the memory is configured to: store data; the processor is specifically configured to: use the first information as a search condition to search the memory to store data, and obtain search result information using the first information as a search condition.

结合第三方面,在第二种实现方式下,该终端还包括网络接口。所述处理器具体用于:通过所述网络接口向搜索服务器发送所述第一信息,接收所述搜索服务器发送的以所述第一信息为搜索条件的搜索结果信息。 With reference to the third aspect, in the second implementation manner, the terminal further includes a network interface. The processor is specifically configured to: send the first information to a search server through the network interface, and receive search result information sent by the search server and using the first information as a search condition.

可见,本发明实施例提供的搜索方法和终端,只需识别用户在移动终端对显示内容执行滑动操作时的滑动轨迹,并提取所述滑动轨迹对应的所述显示内容中的第一信息,并实时获取并显示以所述第一信息为搜索条件的搜索结果信息,减少了搜索的操作复杂度,减少了时间成本,提升了搜索效率。 It can be seen that the search method and terminal provided by the embodiments of the present invention only need to identify the sliding track when the user performs a sliding operation on the display content on the mobile terminal, and extract the first information in the display content corresponding to the sliding track, and Acquiring and displaying the search result information using the first information as the search condition in real time reduces the operation complexity of the search, reduces the time cost, and improves the search efficiency.

附图说明 Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。 In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.

图1为本发明实施例提供的搜索方法的流程示意图; FIG. 1 is a schematic flowchart of a search method provided by an embodiment of the present invention;

图2为本发明实施例提供的搜索方法的界面示意图之一; Fig. 2 is one of the interface schematic diagrams of the search method provided by the embodiment of the present invention;

图3为本发明实施例提供的搜索方法的界面示意图之二; Fig. 3 is the second schematic interface diagram of the search method provided by the embodiment of the present invention;

图4a-图4d分别为本发明实施例提供两种终端的逻辑结构示意图; Figures 4a-4d are schematic diagrams of logical structures of two types of terminals provided by the embodiment of the present invention;

图5a-图5c分别为本发明实施例提供的三种终端的逻辑结构示意图; 5a-5c are respectively schematic diagrams of logical structures of three terminals provided by the embodiments of the present invention;

图6a-图6b分别为本发明实施例提供的两种终端的逻辑结构示意图。 6a-6b are respectively schematic diagrams of logical structures of two types of terminals provided by the embodiments of the present invention.

具体实施方式 detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明实施例的搜索方法和终端,解决在终端上浏览显示内容时进行搜索处理步骤繁多、效率低下的问题,提供一种基于手势滑动的搜索方式。当用户使用终端设备进行浏览新闻、在线阅读时,在遇到不了解或感兴趣的内容时,仅需通过滑动手势即可进行信息搜索,在同一页面显示搜索到的结果信息,而不要使用虚拟键盘输入搜索关键字,不要在切换页面即可看到搜索结果。 The search method and terminal in the embodiments of the present invention solve the problem of too many search processing steps and low efficiency when browsing display content on the terminal, and provide a gesture-swipe-based search method. When a user uses a terminal device to browse news or read online, when encountering content that he does not understand or is interested in, he only needs to use a swipe gesture to search for information and display the searched result information on the same page instead of using a virtual Enter the search keywords with the keyboard, and you can see the search results without switching pages.

图1为本发明实施例搜索方法的流程示意图,该方法可以应用于任何具有触摸屏的电子设备,该电子设备可以为移动终端,例如手机、平板电脑、笔记本电脑等,也可以为固定终端,例如台式电脑、服务器等。如图1所示,本实施例提供的方法具体包括: Fig. 1 is a schematic flow chart of a search method according to an embodiment of the present invention. This method can be applied to any electronic device with a touch screen. The electronic device can be a mobile terminal, such as a mobile phone, a tablet computer, a notebook computer, etc., or a fixed terminal, such as Desktop computers, servers, etc. As shown in Figure 1, the method provided in this embodiment specifically includes:

步骤101,识别用户对所述触摸屏上的显示内容执行滑动操作时的滑动轨迹; Step 101, identifying the sliding track when the user performs a sliding operation on the displayed content on the touch screen;

参见图2所示的本发明实施例搜索方法的界面示意图之一,以移动终端为例,当用户浏览和阅读移动终端的显示内容的时候,用户在移动终端的触摸屏1上的显示内容2上执行滑动操作,表现为滑动手势,识别该滑动手势的滑动轨迹。 Referring to one of the interface schematic diagrams of the search method in the embodiment of the present invention shown in FIG. Perform a sliding operation, manifested as a sliding gesture, and identify the sliding track of the sliding gesture.

在一种实现方式下,识别用户对所述触摸屏上的显示内容执行滑动操作时,从滑动开始位置到滑动结束位置之间的滑动轨迹。 In an implementation manner, when the user performs a sliding operation on the displayed content on the touch screen, a sliding track from a sliding start position to a sliding end position is identified.

在此种实现方式下,其一,电子设备可以识别用户对所述触摸屏上的显示内容执行的沿第一方向的滑动操作的轨迹,所述沿第一方向的滑动操作的轨迹是所述第一方向上从滑动开始位置到滑动结束位置之间的轨迹,确定所述沿第一方向的滑动操作的轨迹作为执行滑动操作时的滑动轨迹。 In such an implementation manner, firstly, the electronic device may identify a trajectory of a sliding operation performed by the user on the displayed content on the touch screen along the first direction, and the trajectory of the sliding operation along the first direction is the first For a trajectory in one direction from a sliding start position to a sliding end position, the trajectory of the sliding operation along the first direction is determined as the sliding trajectory when the sliding operation is performed.

其二,电子设备可以识别用户对所述触摸屏上的显示内容执行的沿第一方向的滑动操作的轨迹,所述沿第一方向的滑动操作的轨迹是所述第一方向上从滑动开始位置到滑动结束位置之间的轨迹,并识别用户对所述沿第一方向的滑动操作的轨迹执行的沿第二方向的滑动操作,所述沿第二方向滑动操作的开始位置与所述沿第一方向的滑动操作的结束位置重合,所述第二方向与所述第一方向相反的方向,确定所述沿第二方向的滑动操作的结束位置;确定用户沿所述第一方向的滑动操作的开始位置到所述第二方向的滑动操作的结束位置之间的轨迹为滑动操作时的滑动轨迹。 Second, the electronic device can identify the trajectory of the sliding operation performed by the user on the display content on the touch screen along the first direction, and the trajectory of the sliding operation along the first direction is the first direction from the sliding start position track to the end position of the slide, and identify the slide operation along the second direction performed by the user on the track of the slide operation along the first direction, the start position of the slide operation along the second direction is the same as the slide operation along the second direction The end position of the sliding operation in one direction coincides, the second direction is opposite to the first direction, and the end position of the sliding operation along the second direction is determined; determine the user's sliding operation along the first direction The trajectory between the start position of the sliding operation in the second direction and the ending position of the sliding operation in the second direction is a sliding trajectory during the sliding operation.

需说明的是,本发明实施例所述的沿第一方向或第二方向的滑动操作的轨迹可以是直线轨迹,也可以是曲线轨迹,本发明实施例对此不作限定。 It should be noted that the track of the sliding operation along the first direction or the second direction in the embodiment of the present invention may be a straight line track or a curved track, which is not limited in the embodiment of the present invention.

可见,若用户发现自己多选了某些现实内容,那么在手指未离开触摸屏幕超过一定时间阈值(该阈值可以是一个具体的值,也可以是一个取值范围)的前提下,用户可以执行与之前的滑动操作(下文称之为正向滑动)对应的反向滑动操作。终端识别用户对所述触摸屏上的显示内容执行的正向滑动操作,以及沿正向滑动轨迹的反向滑动操作,确定用户从所述正向滑动操作的开始位置到所述反向滑动操作的结束位置之间的轨迹为所述从滑动开始位置到滑动结束位置之间的滑动轨迹。举例来说,假如显示内容2中有一段文字“正向滑动操作的开始位置”,用户从“正”字开始执行正向滑动操作,直到“开”字,此时用户实际选中了“正向滑动操作的开”,而用户发现多选了“的开”二字,可以执行反向滑动到“作”,此时取消选中“的开”二字。若到此滑动操作结束,用户实际选中的内容即为“正向滑动操作”。 It can be seen that if the user finds that he has selected some real content, the user can execute The reverse swipe corresponding to the previous swipe (hereafter referred to as the forward swipe). The terminal recognizes the forward sliding operation performed by the user on the display content on the touch screen, and the reverse sliding operation along the forward sliding track, and determines the distance from the starting position of the forward sliding operation to the reverse sliding operation by the user. The trajectory between the end positions is the sliding trajectory from the sliding start position to the sliding end position. For example, if there is a piece of text in the display content 2 "the starting position of the forward sliding operation", the user starts to perform the forward sliding operation from the word "positive" until the word "open", at this time the user actually selects the word "positive". If the user finds that the word "Open" has been selected too much, he can perform a reverse slide to "Work", and uncheck the word "Open" at this time. If the sliding operation ends here, the content actually selected by the user is the "forward sliding operation".

在另一种实现方式下,可以是用户在想要选择的开始位置和结束位置分别执行一次滑动,例如一行文本的开始位置和某处中间位置分别执行一次竖向滑动操作,那么从开始位置到该处中间位置的这段文本就属于被用户选中的文本。 In another implementation, the user may perform a swipe at the start position and the end position that the user wants to select. The text in the middle position here belongs to the text selected by the user.

需说明的是,本发明实施例以手势滑动为例说明,但在其它实施方式下用户在触摸屏上的滑动也可以使用特定工具,例如使用触摸笔在触摸屏上滑动。 It should be noted that the embodiment of the present invention uses gesture sliding as an example, but in other implementation manners, the user may also use a specific tool for sliding on the touch screen, such as using a touch pen to slide on the touch screen.

步骤102,从所述触摸屏的显示内容中提取所述滑动轨迹对应的所述显示内容中的第一信息。 Step 102, extracting first information in the display content corresponding to the sliding track from the display content of the touch screen.

具体的,根据步骤101中确定出的所述滑动轨迹的滑动开始位置和滑动结束位置判断所述滑动轨迹是否为闭合曲线;当所述滑动轨迹为非闭合曲线时,获取所述滑动轨迹与所述显示内容相交的内容为所述第一信息;当所述滑动轨迹为闭合曲线时,获取所述滑动轨迹所包含的显示内容为所述第一信息。 Specifically, judge whether the sliding track is a closed curve according to the sliding start position and the sliding end position of the sliding track determined in step 101; when the sliding track is an unclosed curve, obtain the sliding track and the The content intersecting the display content is the first information; when the sliding track is a closed curve, acquiring the display content included in the sliding track is the first information.

本发明实施例提供的图2中,可以在移动终端的显示内容中通过第一显示窗口31显示第一信息41。所述第一显示窗口31可以浮于所述触摸屏的显示内容的上层。第一信息可以在所述第一显示窗口31中被高亮显示。为避免第一显示窗口31遮盖原有的显示内容2,第一显示窗口31可以通过半透明的方式显示所述第一信息41,当然在其他实施例中,比如文字或图片间距较大,第一显示窗口31在文字或图片的间隙中即可显示;或用户无需在意除第一信息之外的其它显示内容时,第一显示窗口31可以通过非透明的方式显示所述第一信息41。 In FIG. 2 provided by the embodiment of the present invention, the first information 41 may be displayed through the first display window 31 in the display content of the mobile terminal. The first display window 31 may float on the upper layer of the display content of the touch screen. The first information may be highlighted in the first display window 31 . In order to prevent the first display window 31 from covering the original display content 2, the first display window 31 can display the first information 41 in a semi-transparent manner. A display window 31 can be displayed between texts or pictures; or when the user does not need to care about other displayed content except the first information, the first display window 31 can display the first information 41 in a non-transparent manner.

在其它实施例中,第一信息也可以不通过额外的窗口显示,仅高亮或采用区别于其它显示内容信息的方式被用户识别。 In other embodiments, the first information may not be displayed through an additional window, but only highlighted or recognized by the user in a manner different from other displayed content information.

具体的,在一种实现方式下,第一显示窗口31可以是在用户的滑动操作结束之后产生的。所述滑动操作结束可以是用户手指或触摸笔离开触摸屏幕超过一定的时间阈值。在另一种实现方式下,在移动终端的当前浏览窗口显示所浏览的显示内容时,同时显示一个浮动的第一显示窗口31,用户执行滑动搜索时在第一显示窗口中显示获取的第一信息41。 Specifically, in an implementation manner, the first display window 31 may be generated after the user's sliding operation ends. The end of the sliding operation may be that the user's finger or touch pen leaves the touch screen for more than a certain time threshold. In another implementation, when the current browsing window of the mobile terminal displays the browsed display content, a floating first display window 31 is displayed at the same time, and when the user performs a sliding search, the obtained first display window is displayed in the first display window. Information 41.

第一显示窗口31的显示位置可以靠近用户做出滑动手势的位置,也可以设置在触摸屏的特定位置,比如触摸屏的右侧边。举例说明,用户沿着触摸屏上的文字“专利申请”执行完滑动操作,那么在文字“专利申请”的旁边(左、有、上、下都可以)出现一个显示窗口,高亮显示“专利申请”,提示用户“专利申请”已被选中;此显示窗口也可以预设置在屏幕右侧边,不执行滑动搜索操作的时候并不出现,当用户滑动选中“专利申请”时,该显示窗口从触摸屏右侧边弹出并高亮显示“专利申请”字样。 The display position of the first display window 31 can be close to the position where the user makes a sliding gesture, or can be set at a specific position on the touch screen, such as the right side of the touch screen. For example, after the user performs a sliding operation along the text "patent application" on the touch screen, a display window will appear next to the text "patent application" (left, right, up, and down), highlighting "patent application" ", prompting the user that "patent application" has been selected; this display window can also be preset on the right side of the screen, and it does not appear when the sliding search operation is not performed. When the user slides to select "patent application", the display window changes from The word "patent application" pops up and is highlighted on the right side of the touch screen.

在本发明实施例中可以实时控制第一显示窗口的显示位置和透明度,显示位置是保证在用户在通过滑动收拾产生滑动轨迹过程中第一显示窗口不阻碍用户滑动轨迹的延伸方向,透明度是保证位于第一显示窗口下方的显示内容不会完全遮挡。 In the embodiment of the present invention, the display position and transparency of the first display window can be controlled in real time. The display position is to ensure that the first display window does not hinder the extension direction of the user's sliding track during the process of generating the sliding track by sliding. The transparency is to ensure The displayed content below the first display window will not be completely blocked.

可选的,第一显示窗口在未获得焦点的情况下呈半透明显示第一信息,目的是用户浏览显示内容时,确保第一显示窗口下方的显示内容不被第一显示窗口完全遮挡(如图2所示)。当通过单击或其他手势触发使得第一显示窗口获取焦点时,该第一显示窗口呈非透明方式显示第一信息(如图3所示)。 Optionally, the first display window displays the first information semi-transparently when the focus is not obtained, so that when the user browses the display content, the display content below the first display window is not completely blocked by the first display window (such as Figure 2). When the first display window acquires the focus by clicking or other gesture triggers, the first display window displays the first information in a non-transparent manner (as shown in FIG. 3 ).

第一显示窗口支持可拖动、可改变窗口大小、也可以收缩和展开,当所述滑动操作的当前位置靠近所述第一显示窗口时,所述第一显示窗口的位置远离所述滑动操作的当前位置。 The first display window supports draggability, changeable window size, shrinkage and expansion, and when the current position of the sliding operation is close to the first display window, the position of the first display window is far away from the sliding operation the current location of .

具体的,当用户滑动操作的滑动位置(即滑动轨迹的当前位置)靠近第一显示窗口的任意边缘时,第一显示窗口会以直线运动的方式向远离当前手指位置(或触摸笔头位置)的方向移动,以避开此次滑动操作的末端,从而不影响用户继续读取显示内容。 Specifically, when the sliding position of the user's sliding operation (that is, the current position of the sliding track) is close to any edge of the first display window, the first display window will move away from the current finger position (or the position of the pen tip) in a straight line. direction to avoid the end of the sliding operation, so as not to affect the user to continue reading the displayed content.

用户在移动终端通过滑动手势产生的滑动轨迹提取得到的第一信息显示在第一显示窗口,用户还可以沿着滑动轨迹的反方向滑动,从而取消部分或者全部提取到的第一信息。具体的,识别用户沿所述滑动轨迹的反向滑动,当所述反向滑动的轨迹末端返回至所述滑动轨迹的初始位置时,取消显示所述第一信息。当所述反向滑动的轨迹末端还未返回所述滑动轨迹的初始位置时,取消所述反向滑动的滑动轨迹对应的部分第一信息。该对应关系可以参考前述实施例所述(正向)滑动轨迹所述。 The first information extracted by the user through the sliding track generated by the sliding gesture on the mobile terminal is displayed in the first display window, and the user can also slide along the opposite direction of the sliding track to cancel part or all of the extracted first information. Specifically, the reverse sliding of the user along the sliding track is identified, and when the end of the track of the reverse sliding returns to the initial position of the sliding track, the display of the first information is canceled. When the end of the reverse sliding track has not returned to the initial position of the sliding track, canceling part of the first information corresponding to the reverse sliding track. The corresponding relationship can be described with reference to the (forward) sliding trajectory described in the foregoing embodiments.

步骤103,获取以所述第一信息为搜索条件的搜索结果信息; Step 103, acquiring search result information with the first information as the search condition;

获取搜索结果信息的方法可以是本地搜索或者是通过搜索服务器来进行搜索。 The method for obtaining the search result information may be a local search or a search through a search server.

在一种实现方式下,终端以所述第一信息为搜索条件从本地搜索,获得对应于所述搜索条件的搜索结果信息。此时终端本地的数据库中存储有供第一信息为搜索条件的搜索信息,当用户滑动手势完成时,也即用户手指离开触摸屏时,此时根据滑动轨迹识别得到的第一信息就是用户希望的搜索信息,这样可以在本地搜搜索到以所述第一信息为搜索条件的搜索结果信息。 In an implementation manner, the terminal searches locally using the first information as a search condition, and obtains search result information corresponding to the search condition. At this time, the local database of the terminal stores the search information for the first information as the search condition. When the user's sliding gesture is completed, that is, when the user's finger leaves the touch screen, the first information obtained according to the identification of the sliding track is the user's desired information. Search for information, so that the search result information with the first information as the search condition can be searched locally.

在另一种实现方式下,终端向搜索服务器发送所述第一信息,接收所述搜索服务器发送的以所述第一信息为搜索条件的搜索结果信息。当用户滑动手势完成时,也即用户手指离开触摸屏时,此时根据滑动轨迹识别得到的第一信息就是用户希望的搜索信息,移动终端以该第一信息就作为搜索信息发送给搜索服务器,从而使得服务器得知移动终端的搜索请求,根据第一信息进行搜索得到搜索结果信息,并发送给移动终端。 In another implementation manner, the terminal sends the first information to a search server, and receives search result information sent by the search server and using the first information as a search condition. When the user's sliding gesture is completed, that is, when the user's finger leaves the touch screen, the first information obtained according to the sliding track recognition is the search information desired by the user, and the mobile terminal sends the first information as the search information to the search server. The server is made aware of the search request of the mobile terminal, searches according to the first information to obtain search result information, and sends it to the mobile terminal.

步骤104,显示搜索结果信息。 Step 104, displaying search result information.

参见图3所示的本发明实施例搜索方法的界面示意图之二,在移动终端上通过第二显示窗口32显示搜索结果信息42,第二显示窗口32可以半透明或者非透明显示搜索结果信息42。自动将焦点移动到第二显示窗口,使得该第二显示窗口呈非透明方式显示搜索结果信息,直到下一次搜索信息时,第二显示窗口的焦点又会被自动移除,从而呈半透明显示。 Referring to the second schematic diagram of the interface of the search method of the embodiment of the present invention shown in FIG. 3, the search result information 42 is displayed on the mobile terminal through the second display window 32, and the second display window 32 can display the search result information 42 translucently or non-transparently. . Automatically move the focus to the second display window, so that the second display window displays the search result information in a non-transparent manner, until the next time the information is searched, the focus of the second display window will be automatically removed again, so that the display is semi-transparent .

所述第二显示窗口32可以浮于所述触摸屏的显示内容的上层。至于具体位置可以在显示内容2的任何地方,本发明实施例对此不作限定。 The second display window 32 may float on the upper layer of the display content of the touch screen. As for the specific location, it may be anywhere where the content 2 is displayed, which is not limited in this embodiment of the present invention.

需说明的是,可以利用一个显示窗口来实现第一显示窗口和第二显示窗口,此时第一信息和搜索结果信息将在同一个显示窗口进行显示。 It should be noted that one display window may be used to realize the first display window and the second display window, and in this case, the first information and the search result information will be displayed in the same display window.

另外,本发明实施例提供的搜索方法在进行搜索之前可以获取用户通过所述触摸屏输入的指示搜索开始的指令。获取到该指令后表明后续的进入本发明实施例所提供的搜索状态,在该搜索状态下可以利用本发明实施例提供的搜索方法进行搜索条件的选取和自动搜索。其中,所述指示搜索开始的指令可以为用户对所述触摸屏上任意位置的一次点击操作的时长超过预设的时长阈值。当然也可以在所述触摸屏上设置一个搜索开始按钮,用户通过点击该按钮即可向终端发送搜索开始指令。 In addition, the search method provided by the embodiment of the present invention may obtain an instruction input by the user through the touch screen indicating the start of the search before performing the search. After the command is obtained, it indicates that the search state provided by the embodiment of the present invention is subsequently entered. In this search state, the search method provided by the embodiment of the present invention can be used to select search conditions and automatically search. Wherein, the instruction indicating the start of the search may be that the duration of a user's click operation on any position on the touch screen exceeds a preset duration threshold. Of course, a search start button can also be set on the touch screen, and the user can send a search start instruction to the terminal by clicking this button.

综上,本发明实施例提供的搜索方法,用户通过移动终端浏览显示内容时,只需在触摸屏上使用一个滑动操作即可选中目标信息作为搜索条件。进一步的,可以同时通过浮于当前显示内容上层的第一显示窗口显示该目标信息,并可以通过浮于当前显示内容上层第二显示窗口实时显示搜索结果信息,整个搜索过程仅需要用户的滑动操作,不需要输入搜索关键字,也不需要页面切换,减少了操作复杂度,减少时间成本,提高了搜索效率。 To sum up, in the search method provided by the embodiment of the present invention, when the user browses the displayed content through the mobile terminal, he only needs to use a sliding operation on the touch screen to select the target information as the search condition. Further, the target information can be displayed through the first display window floating on the upper layer of the current display content at the same time, and the search result information can be displayed in real time through the second display window floating on the upper layer of the current display content, and the entire search process only requires the user's sliding operation , there is no need to input search keywords, and there is no need to switch pages, which reduces the complexity of operations, reduces time costs, and improves search efficiency.

图4a为本发明实施例终端10的示意图。如图4a所示,本实施例的终端10包括:识别单元11、提取单元12、获取单元13和显示单元14。该终端还包括至少一个触摸屏,显示单元14与该触摸屏连接。该终端可以是移动终端也可以是固定终端。 Fig. 4a is a schematic diagram of a terminal 10 according to an embodiment of the present invention. As shown in FIG. 4 a , the terminal 10 of this embodiment includes: an identification unit 11 , an extraction unit 12 , an acquisition unit 13 and a display unit 14 . The terminal also includes at least one touch screen, and the display unit 14 is connected to the touch screen. The terminal may be a mobile terminal or a fixed terminal.

识别单元11用于识别用户对所述触摸屏上的显示内容执行滑动操作时的滑动轨迹。 The identification unit 11 is configured to identify a sliding track when the user performs a sliding operation on the displayed content on the touch screen.

用户的滑动可以是手势滑动,也可以利用格外的工具执行滑动操作。 The user's swipe can be a gesture swipe, or an additional tool can be used to perform the swipe operation.

识别单元11具体用于识别用户对所述触摸屏上的显示内容执行滑动操作时,从滑动开始位置到滑动结束位置之间的滑动轨迹。 The identification unit 11 is specifically configured to identify a sliding track from a sliding start position to a sliding end position when the user performs a sliding operation on the displayed content on the touch screen.

用户的滑动操作可以是沿一个方向的,也可以沿两个方向。对于这两种情况,识别单元11有不同的实现: The user's sliding operation can be in one direction or in two directions. For both cases, there are different implementations of the identification unit 11:

在第一种情况下,识别单元11具体用于:识别用户对所述触摸屏上的显示内容执行的沿第一方向的滑动操作的轨迹,所述沿第一方向的滑动操作的轨迹是所述第一方向上从滑动开始位置到滑动结束位置之间的轨迹,确定所述沿第一方向的滑动操作的轨迹作为执行滑动操作时的滑动轨迹。 In the first case, the identification unit 11 is specifically configured to: identify a trajectory of a sliding operation performed by the user on the display content on the touch screen along the first direction, and the trajectory of the sliding operation along the first direction is the A trajectory in the first direction from the sliding start position to the sliding end position, determining the trajectory of the sliding operation along the first direction as the sliding trajectory when performing the sliding operation.

在第二种情况下,识别单元11具体用于:识别用户对所述触摸屏上的显示内容执行的沿第一方向的滑动操作的轨迹,所述沿第一方向的滑动操作的轨迹是所述第一方向上从滑动开始位置到滑动结束位置之间的轨迹,并识别用户对所述沿第一方向的滑动操作的轨迹执行的沿第二方向的滑动操作,所述沿第二方向滑动操作的开始位置与所述沿第一方向的滑动操作的结束位置重合,所述第二方向与所述第一方向相反的方向,确定所述沿第二方向的滑动操作的结束位置;确定用户沿所述第一方向的滑动操作的开始位置到所述第二方向的滑动操作的结束位置之间的轨迹为滑动操作时的滑动轨迹。 In the second case, the identification unit 11 is specifically configured to: identify the trajectory of the sliding operation performed by the user on the display content on the touch screen along the first direction, and the trajectory of the sliding operation along the first direction is the A trajectory in the first direction from a sliding start position to a sliding end position, and identifying a sliding operation along a second direction performed by the user on the trajectory of the sliding operation along the first direction, the sliding operation along the second direction The start position of the sliding operation along the first direction coincides with the end position of the sliding operation along the first direction, and the second direction is opposite to the first direction, and the ending position of the sliding operation along the second direction is determined; The track between the start position of the slide operation in the first direction and the end position of the slide operation in the second direction is a slide track during the slide operation.

提取单元12用于从所述触摸屏的显示内容中提取所述识别单元识别的所述滑动轨迹对应所述显示内容中的第一信息,并发送给所述获取单元13。 The extraction unit 12 is configured to extract from the display content of the touch screen the first information corresponding to the sliding track identified by the identification unit in the display content, and send it to the acquisition unit 13 .

所述提取单元12具体用于:根据识别单元11确定的所述滑动轨迹的滑动开始位置和滑动结束位置判断所述滑动轨迹是否为闭合曲线;当所述滑动轨迹为非闭合曲线时,获取所述滑动轨迹与所述显示内容相交的内容为所述第一信息;当所述滑动轨迹为闭合曲线时,获取所述滑动轨迹所包含的显示内容为所述第一信息。 The extraction unit 12 is specifically used to: judge whether the sliding track is a closed curve according to the sliding start position and the sliding end position of the sliding track determined by the identification unit 11; when the sliding track is an unclosed curve, obtain the The content where the sliding track intersects with the display content is the first information; when the sliding track is a closed curve, acquiring the display content included in the sliding track is the first information.

获取单元13用于接收所述提取单元发送的所述第一信息,获取以所述第一信息为搜索条件的搜索结果信息,并将所述搜索结果信息发送给所述显示单元14。 The acquiring unit 13 is configured to receive the first information sent by the extracting unit, acquire search result information using the first information as a search condition, and send the search result information to the display unit 14 .

显示单元14用于显示所述搜索结果信息。具体的,显示单元14指令触摸屏显示所述搜索结果信息。 The display unit 14 is used for displaying the search result information. Specifically, the display unit 14 instructs the touch screen to display the search result information.

进一步的,如图4b所示,显示单元14还用于通过第一显示窗口显示第一信息。显示单元14具体用于通过第一显示窗口高亮显示所述第一信息;或者,通过第一显示窗口半透明或非透明显示所述第一信息。 Further, as shown in FIG. 4b, the display unit 14 is further configured to display the first information through the first display window. The display unit 14 is specifically configured to highlight the first information through the first display window; or display the first information semi-transparently or non-transparently through the first display window.

如图4c所示,该该终端还可以包括窗口移动单元15,用于当识别单元11识别出的所述滑动操作的当前位置靠近所述第一显示窗口时,指示所述显示但与那14将所述第一显示窗口的位置远离所述滑动操作的当前位置。 As shown in FIG. 4c, the terminal may further include a window moving unit 15, configured to indicate that the display is not the same as the first display window when the current position of the sliding operation recognized by the recognition unit 11 is close to the first display window. and moving the position of the first display window away from the current position of the sliding operation.

在一种实现方式下,获取单元13具体用于以所述第一信息为搜索条件从本地搜索,获得对应于所述搜索条件的搜索结果信息。在另一种实现方式下,获取单元13具体用于向搜索服务器发送所述第一信息,接收所述搜索服务器发送的以所述第一信息为搜索条件的搜索结果信息。 In an implementation manner, the obtaining unit 13 is specifically configured to use the first information as a search condition to search locally to obtain search result information corresponding to the search condition. In another implementation manner, the obtaining unit 13 is specifically configured to send the first information to a search server, and receive search result information sent by the search server and using the first information as a search condition.

显示单元14还可以用于在终端的显示内容中通过第二显示窗口显示搜索结果信息。例如,在所述终端的显示内容中通过所述第二显示窗口半透明或者非透明显示所述搜索结果信息。 The display unit 14 may also be configured to display search result information through a second display window in the display content of the terminal. For example, the search result information is displayed semi-transparently or non-transparently through the second display window in the display content of the terminal.

如图4d所示,本发明实施例提供的终端还可以包括搜索开始指令单元16,用于获取用户通过所述触摸屏输入的指示搜索开始的指令,并将所述指令发送给所述识别单元11。所述识别单元11在接收到所述指令时,执行所述识别用户对所述触摸屏上的显示内容执行滑动操作时的滑动轨迹的步骤。所述指示搜索开始的指令可以为用户对所述触摸屏上任意位置的一次点击操作的时长超过预设的时长阈值,或为对搜索开始按钮的按下指令。 As shown in Figure 4d, the terminal provided by the embodiment of the present invention may also include a search start instruction unit 16, which is used to obtain an instruction input by the user through the touch screen to indicate the start of the search, and send the instruction to the recognition unit 11 . When the recognition unit 11 receives the instruction, it executes the step of recognizing a sliding track when the user performs a sliding operation on the displayed content on the touch screen. The instruction indicating the start of the search may be a user's click operation on any position on the touch screen whose duration exceeds a preset duration threshold, or an instruction to press a search start button.

本发明实施例的终端可以是移动终端或者其他手持或非手持式终端等。 The terminal in this embodiment of the present invention may be a mobile terminal or other handheld or non-handheld terminals.

需说明的是,对于本领域技术人员而言,本实施例介绍的终端的模块划分方式仅是举例说明,其完全可以根据该实施例提供的方法和装置做出其它的模块划分形式。另外这些模块可以完全在一台终端上,也可以采用分布式计算方式存在多台终端上。 It should be noted that, for those skilled in the art, the terminal module division method introduced in this embodiment is only an example, and other module division forms can be made according to the method and apparatus provided in this embodiment. In addition, these modules can be completely located on one terminal, or can be stored on multiple terminals in a distributed computing manner.

可见,本发明实施例提供的终端,只需识别用户在终端滑动时的滑动轨迹,识别出作为搜索条件的第一信息,并实时获取及显示搜索结果信息,减少了操作复杂度,减少了时间成本,提升了搜索效率。 It can be seen that the terminal provided by the embodiment of the present invention only needs to identify the user's sliding track when the terminal slides, identify the first information as the search condition, and obtain and display the search result information in real time, which reduces the operation complexity and time costs and improve search efficiency.

图5a为本发明另一实施例提供的终端50的示意图,如图所示,本实施例包括处理器51和触摸屏52。 FIG. 5 a is a schematic diagram of a terminal 50 provided by another embodiment of the present invention. As shown in the figure, this embodiment includes a processor 51 and a touch screen 52 .

所述触摸屏52用于:接收用户的滑动操作; The touch screen 52 is used to: receive the sliding operation of the user;

所述处理器51用于:识别所述用户对所述触摸屏52上的显示内容执行滑动操作时的滑动轨迹;从所述触摸屏52的显示内容中提取所述滑动轨迹对应的所述显示内容中的第一信息;取以所述第一信息为搜索条件的搜索结果信息; The processor 51 is configured to: identify a sliding track when the user performs a sliding operation on the display content on the touch screen 52; extract the display content corresponding to the sliding track from the display content of the touch screen 52 the first information; take the search result information with the first information as the search condition;

所述触摸屏52还用于:显示所述搜索结果信息。 The touch screen 52 is also used for: displaying the search result information.

在一种实现方式下,处理器52中可以存储用于搜索基础的数据,处理器获取所述第一信息后,从自己存储的所述数据中以所述第一信息作为搜索条件搜索获得搜索结果信息。 In one implementation, the processor 52 may store data used for the search basis. After the processor obtains the first information, it searches the data stored by itself using the first information as a search condition to obtain the search result. result information.

在另一种实现方式下,如图5b所示,终端50还可以包括存储器53。所述存储器53用于存储数据;所述处理器51具体用于以所述第一信息为搜索条件搜索所述存储器存储的数据,获取以所述第一信息为搜索条件的搜索结果信息。 In another implementation manner, as shown in FIG. 5 b , the terminal 50 may further include a memory 53 . The memory 53 is used to store data; the processor 51 is specifically used to search the data stored in the memory by using the first information as a search condition, and obtain search result information using the first information as a search condition.

在再一种实现方式下,如图5c所示,终端50还可以包括网络接口54。所述处理器51具体用于通过所述网络接口向搜索服务器发送所述第一信息,接收所述搜索服务器发送的以所述第一信息为搜索条件的搜索结果信息。 In yet another implementation manner, as shown in FIG. 5c , the terminal 50 may further include a network interface 54 . The processor 51 is specifically configured to send the first information to a search server through the network interface, and receive search result information sent by the search server and using the first information as a search condition.

可见,本发明实施例提供的终端,只需识别用户在终端滑动时的滑动轨迹,识别出作为搜索条件的第一信息,并实时获取及显示搜索结果信息,减少了操作复杂度,减少了时间成本,提升了搜索效率。 It can be seen that the terminal provided by the embodiment of the present invention only needs to identify the user's sliding track when the terminal slides, identify the first information as the search condition, and obtain and display the search result information in real time, which reduces the operation complexity and time costs and improve search efficiency.

如图6a所示,为本发明实施例提供的另一种终端60的结构示意图。该终端60包括处理器61、存储器62以及触摸屏63。系统总线64用于连接所述处理器61、存储器62以及触摸屏63。 As shown in FIG. 6a, it is a schematic structural diagram of another terminal 60 provided by an embodiment of the present invention. The terminal 60 includes a processor 61 , a memory 62 and a touch screen 63 . The system bus 64 is used to connect the processor 61 , memory 62 and touch screen 63 .

存储器62中存储有软件程序。该软件程序可以被处理器61执行,从而实现本发明上述方法的各种功能。 A software program is stored in the memory 62 . The software program can be executed by the processor 61, so as to realize various functions of the above method of the present invention.

处理器61访问存储器62中的软件程序并执行如下指令:识别用户对所述触摸屏63上的显示内容执行滑动操作时的滑动轨迹;从所述触摸屏63的显示内容中提取所述滑动轨迹对应的所述显示内容中的第一信息;获取以所述第一信息为搜索条件的搜索结果信息;指示所述触摸屏63显示所述搜索结果信息。 Processor 61 accesses the software program in memory 62 and executes the following instructions: identify the sliding track when the user performs a sliding operation on the display content on the touch screen 63; extract the corresponding slide track from the display content on the touch screen 63; The first information in the displayed content; obtaining the search result information with the first information as the search condition; instructing the touch screen 63 to display the search result information.

所述触摸屏63用于接收接收用户对所述触摸屏上的显示内容执行的滑动操作。若触摸屏同时作为显示屏,则可在处理器61的指示下显示所述搜索结果信息。 The touch screen 63 is used to receive a sliding operation performed by the user on the displayed content on the touch screen. If the touch screen is also used as a display screen, the search result information may be displayed under the instruction of the processor 61 .

具体的,所述处理器61具体可执行如下指令:识别用户对所述触摸屏上的显示内容执行滑动操作时,从滑动开始位置到滑动结束位置之间的滑动轨迹。 Specifically, the processor 61 may specifically execute the following instruction: identify a sliding track from a sliding start position to a sliding end position when the user performs a sliding operation on the displayed content on the touch screen.

在一种实现方式下,识别用户对所述触摸屏上的显示内容执行的沿第一方向的滑动操作的轨迹,所述沿第一方向的滑动操作的轨迹是所述第一方向上从滑动开始位置到滑动结束位置之间的轨迹,确定所述沿第一方向的滑动操作的轨迹作为执行滑动操作时的滑动轨迹。 In an implementation manner, the trajectory of the sliding operation performed by the user on the display content on the touch screen along the first direction is identified, and the trajectory of the sliding operation along the first direction is from the sliding in the first direction The trajectory between the position and the sliding end position, determining the trajectory of the sliding operation along the first direction as the sliding trajectory when performing the sliding operation.

在另一种实现方式下,识别用户对所述触摸屏上的显示内容执行的沿第一方向的滑动操作的轨迹,所述沿第一方向的滑动操作的轨迹是所述第一方向上从滑动开始位置到滑动结束位置之间的轨迹,并识别用户对所述沿第一方向的滑动操作的轨迹执行的沿第二方向的滑动操作,所述沿第二方向滑动操作的开始位置与所述沿第一方向的滑动操作的结束位置重合,所述第二方向与所述第一方向相反的方向,确定所述沿第二方向的滑动操作的结束位置;确定用户沿所述第一方向的滑动操作的开始位置到所述第二方向的滑动操作的结束位置之间的轨迹为滑动操作时的滑动轨迹。 In another implementation manner, the trajectory of the sliding operation performed by the user on the display content on the touch screen along the first direction is identified, and the trajectory of the sliding operation along the first direction is the track between the start position and the slide end position, and identify the slide operation along the second direction performed by the user on the track of the slide operation along the first direction, and the start position of the slide operation along the second direction is the same as that of the slide operation along the second direction The end position of the sliding operation along the first direction coincides, and the second direction is opposite to the first direction, and the end position of the sliding operation along the second direction is determined; determine the user's position along the first direction The track between the start position of the slide operation and the end position of the slide operation in the second direction is a slide track during the slide operation.

对于从所述触摸屏的显示内容中提取所述滑动轨迹对应的所述显示内容中的第一信息的指令,处理器61可通过具体执行如下指令实现:根据所述滑动轨迹的所述滑动开始位置和所述滑动结束位置判断所述滑动轨迹是否为闭合曲线;当所述滑动轨迹为非闭合曲线时,获取所述滑动轨迹与所述显示内容相交的内容为所述第一信息;当所述滑动轨迹为闭合曲线时,获取所述滑动轨迹所包含的显示内容为所述第一信息。 For the instruction of extracting the first information in the display content corresponding to the sliding track from the display content of the touch screen, the processor 61 can implement the following instructions: according to the sliding start position of the sliding track and the sliding end position to determine whether the sliding track is a closed curve; when the sliding track is an unclosed curve, acquiring the intersection content of the sliding track and the display content as the first information; when the When the sliding track is a closed curve, the display content included in the sliding track is acquired as the first information.

例如,当所述滑动轨迹为一条非闭合的直线时,所述显示内容中与所述直线重合的部分即为所述第一信息;当所述滑动轨迹为一个圆形时,圆形内部所包含的显示内容即为所述第一信息。 For example, when the sliding track is a non-closed straight line, the part of the displayed content that coincides with the straight line is the first information; when the sliding track is a circle, the part inside the circle The included display content is the first information.

进一步的,所述处理器61访问存储器53的软件程序后,执行以下过程的指令:在所述触摸屏63上通过第一显示窗口显示所述第一信息。可以透明显示,也可以非透明显示。所述第一显示窗口可以浮于所述触摸屏63的显示内容的上层。 Further, after the processor 61 accesses the software program in the memory 53, it executes instructions of the following process: displaying the first information on the touch screen 63 through a first display window. It can be displayed transparently or non-transparently. The first display window may float on the upper layer of the display content of the touch screen 63 .

在一种实现方式下,存储器62除了存储用于处理器61访问的软件程序之外,还存储用于处理器61访问的数据。处理器61以所述第一信息为搜索条件从本地的存储器62中存储的数据搜索并获得对应于所述搜索条件的搜索结果信息。 In one implementation manner, the memory 62 stores data for the processor 61 to access in addition to storing software programs for the processor 61 to access. The processor 61 uses the first information as a search condition to search from data stored in the local memory 62 and obtain search result information corresponding to the search condition.

在另一种实现方式下,如图6b所示,该终端60还可以包括网络接口65。所述网络接口65用于与搜索服务器通信。所述处理器61通过所述网络接口65向所述搜索服务器发送所述第一信息,并接收所述搜索服务器发送的以所述第一信息为搜索条件的搜索结果信息。 In another implementation manner, as shown in FIG. 6 b , the terminal 60 may further include a network interface 65 . The network interface 65 is used to communicate with the search server. The processor 61 sends the first information to the search server through the network interface 65, and receives search result information sent by the search server and using the first information as a search condition.

与第一显示窗口类似,处理器61还可以指令触摸屏63通过第二显示窗口显示所述搜索结果信息。可以透明显示,也可以非透明显示。所述第二显示窗口可以浮于所述触摸屏63的显示内容的上层。 Similar to the first display window, the processor 61 may also instruct the touch screen 63 to display the search result information through the second display window. It can be displayed transparently or non-transparently. The second display window may float on the upper layer of the display content of the touch screen 63 .

进一步的,存储器53的应用程序还用于执行以下过程的指令:用户还可以沿着滑动轨迹的反方向滑动,从而取消部分或者全部提取到的第一信息。具体的,识别用户沿所述滑动轨迹的反向滑动,当所述反向滑动的轨迹末端返回至所述滑动轨迹的初始位置时,取消显示所述第一信息。当所述反向滑动的轨迹末端还未返回值所述滑动轨迹的初始位置时,取消所述反向滑动的滑动轨迹对应的部分第一信息。该对应关系可以参考前述实施例所述(正向)滑动轨迹所述。 Further, the application program in the storage 53 is also used to execute instructions of the following process: the user can also slide along the reverse direction of the sliding track, thereby canceling part or all of the extracted first information. Specifically, the reverse sliding of the user along the sliding track is identified, and when the end of the track of the reverse sliding returns to the initial position of the sliding track, the display of the first information is canceled. When the end of the reverse sliding track has not returned to the initial position of the sliding track, cancel part of the first information corresponding to the reverse sliding track. The corresponding relationship can be described with reference to the (forward) sliding trajectory described in the foregoing embodiments.

可见,本发明实施例提供的终端,只需识别用户在终端滑动时的滑动轨迹,识别出作为搜索条件的第一信息,并实时获取及显示搜索结果信息,减少了操作复杂度,减少了时间成本,提升了搜索效率。 It can be seen that the terminal provided by the embodiment of the present invention only needs to identify the user's sliding track when the terminal slides, identify the first information as the search condition, and obtain and display the search result information in real time, which reduces the operation complexity and time costs and improve search efficiency.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。 Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiment. The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.

本发明实施例中所述的存储器可以是U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,RandomAccessMemory)、磁碟或者光盘。系统总线64可以是ISA(IndustryStandardArchitecture,工业标准体系结构)总线、PCI(PeripheralComponent,外部设备互连)总线或EISA(ExtendedIndustryStandardArchitecture,扩展工业标准体系结构)总线等。所述总线可以是一条或多条物理线路,当是多条物理线路时可以分为地址总线、数据总线、控制总线等。在其它实现方式中,图6a和6b中的各个模块也可以不通过总线通信,而是直接具有通信连接;各个模块还可以都与处理器连接。 The memory described in the embodiment of the present invention may be a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk. The system bus 64 may be an ISA (Industry Standard Architecture, industry standard architecture) bus, a PCI (Peripheral Component, external device interconnection) bus, or an EISA (Extended Industry Standard Architecture, extended industry standard architecture) bus or the like. The bus can be one or more physical lines, and when there are multiple physical lines, it can be divided into an address bus, a data bus, a control bus, and the like. In other implementation manners, the modules in Figures 6a and 6b may not communicate through the bus, but directly have a communication connection; each module may also be connected to the processor.

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CPU(CentralProcessUnit,中央处理单元)、专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本发明而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,RandomAccessMemory)、磁碟或者光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be realized by means of software plus necessary general-purpose hardware. Processing unit), dedicated memory, dedicated components, etc. to achieve. In general, all functions completed by computer programs can be easily realized by corresponding hardware, and the specific hardware structure used to realize the same function can also be varied, such as analog circuits, digital circuits or special-purpose circuit etc. However, software program implementation is a better implementation mode for the present invention in most cases. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , U disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disk or optical disk, etc., including several instructions to make a computer device (it can be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention.

本发明方案可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序单元。一般地,程序单元包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本发明方案,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序单元可以位于包括存储设备在内的本地和远程计算机存储介质中。 The inventive arrangements may be described in the general context of computer-executable instructions, such as program elements, being executed by a computer. Generally, program elements include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The inventive arrangements may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program elements may be located in both local and remote computer storage media including storage devices.

以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.

Claims (24)

1. A method of searching, the method comprising:
recognizing a trajectory of a sliding operation in a first direction performed by a user on display content on a touch screen, the trajectory of the sliding operation in the first direction being a trajectory from a sliding start position to a sliding end position in the first direction,
and identifying a sliding operation in a second direction performed by a user on a trajectory of the sliding operation in the first direction, wherein a starting position of the sliding operation in the second direction coincides with an ending position of the sliding operation in the first direction, and the second direction is opposite to the first direction, and the ending position of the sliding operation in the second direction is determined; determining a track from a starting position of the sliding operation of the user along the first direction to an ending position of the sliding operation along the second direction as a sliding track during the sliding operation, wherein a part of the track of the sliding operation along the first direction is overlapped with the track of the sliding operation along the second direction;
extracting first information in the display content corresponding to the sliding track from the display content of the touch screen;
acquiring search result information with the first information as a search condition;
and displaying the search result information.
2. The searching method according to claim 1, wherein the extracting first information in the display content corresponding to the sliding track from the display content of the touch screen comprises:
judging whether the sliding track is a closed curve according to the determined sliding starting position and the determined sliding ending position of the sliding track;
when the sliding track is a non-closed curve, acquiring the content of the intersection of the sliding track and the display content as the first information;
and when the sliding track is a closed curve, acquiring the display content contained in the sliding track as the first information.
3. The searching method according to claim 1 or 2, wherein after the extracting the first information in the display content corresponding to the sliding track from the display content of the touch screen, the method further comprises displaying the first information through a first display window.
4. The search method of claim 3, wherein the first display window floats above a display content of the touch screen.
5. The method of claim 3, wherein the displaying the first information through the first display window comprises:
highlighting the first information through a first display window; or,
and displaying the first information through the first display window in a semi-transparent or non-transparent mode.
6. The search method of claim 3, further comprising:
when the current position of the sliding operation is close to the first display window, the position of the first display window is far away from the current position of the sliding operation.
7. The method according to claim 1 or 2, wherein the obtaining search result information with the first information as a search condition comprises:
obtaining search result information corresponding to the search condition from local search by taking the first information as the search condition; or,
and sending the first information to a search server, and receiving search result information which is sent by the search server and takes the first information as a search condition.
8. The search method according to claim 1 or 2, wherein the displaying the search result information includes:
and displaying the search result information through a second display window.
9. The search method of claim 8, wherein the second display window floats above a display content of the touch screen.
10. The method according to claim 8, wherein the displaying the search result information through the second display window comprises:
highlighting the search result information through the second display window; or,
and displaying the search result information through the second display window in a semi-transparent or non-transparent mode.
11. The method according to claim 1 or 2, wherein before identifying a sliding track when a user performs a sliding operation on the display content on the touch screen, the method further comprises: and acquiring an instruction which is input by a user through the touch screen and indicates the start of searching.
12. The method of claim 11, wherein the instruction indicating the start of the search comprises a duration of one click operation of the user on any position on the touch screen exceeding a preset duration threshold.
13. The search terminal is characterized by comprising an identification unit, an extraction unit, an acquisition unit and a display unit;
a recognition unit configured to recognize a trajectory of a sliding operation in a first direction performed by a user on display content on a touch screen, the trajectory of the sliding operation in the first direction being a trajectory from a sliding start position to a sliding end position in the first direction, and recognize a sliding operation in a second direction performed by the user on the trajectory of the sliding operation in the first direction, the start position of the sliding operation in the second direction coinciding with the end position of the sliding operation in the first direction, the second direction being an opposite direction to the first direction, and determine the end position of the sliding operation in the second direction; determining a track from a starting position of the sliding operation of the user along the first direction to an ending position of the sliding operation along the second direction as a sliding track during the sliding operation, wherein a part of the track of the sliding operation along the first direction is overlapped with the track of the sliding operation along the second direction; the extracting unit is used for extracting first information in the display content corresponding to the sliding track identified by the identifying unit from the display content of the touch screen and sending the first information to the acquiring unit;
the acquisition unit is used for receiving the first information sent by the extraction unit, acquiring search result information with the first information as a search condition and sending the search result information to the display unit;
and the display unit is used for receiving the search result information sent by the acquisition unit and displaying the search result information.
14. The search terminal of claim 13, wherein the extracting unit is specifically configured to: judging whether the sliding track is a closed curve according to the sliding starting position and the sliding ending position of the sliding track determined by the identification unit; when the sliding track is a non-closed curve, acquiring the content of the intersection of the sliding track and the display content as the first information; and when the sliding track is a closed curve, acquiring the display content contained in the sliding track as the first information.
15. The search terminal according to claim 13 or 14, wherein the display unit is further configured to: and displaying the first information through a first display window.
16. The search terminal of claim 15, wherein the display unit is specifically configured to: highlighting the first information through a first display window; or the first information is displayed through the first display window in a semi-transparent or non-transparent mode.
17. The search terminal of claim 16, further comprising a window moving unit;
the window moving unit is used for enabling the position of the first display window to be far away from the current position of the sliding operation when the current position of the sliding operation is close to the first display window.
18. The search terminal of claim 13 or 14,
the acquisition unit is specifically used for acquiring search result information corresponding to the search condition from local search by taking the first information as the search condition; or, the first information is sent to a search server, and search result information which is sent by the search server and takes the first information as a search condition is received.
19. The search terminal according to claim 13 or 14, wherein the display unit is specifically configured to: and displaying the search result information through a second display window.
20. The search terminal according to any one of claims 13 or 14, further comprising a search start instruction unit configured to acquire an instruction indicating a start of a search input by a user through the touch screen and send the instruction to the recognition unit;
the identification unit is specifically used for executing the step of identifying the sliding track of the user when the sliding operation is executed on the display content on the touch screen when the instruction is received.
21. The search terminal according to claim 20, wherein the instruction indicating the start of the search comprises a duration of one click operation of the user to any position on the touch screen exceeding a preset duration threshold.
22. A search terminal is characterized by comprising a processor and a touch screen;
the touch screen is used for: receiving a sliding operation performed by a user on display content on the touch screen;
the processor is configured to: identifying a trajectory of a sliding operation in a first direction performed by a user on display content on a touch screen, the trajectory of the sliding operation in the first direction being a trajectory from a sliding start position to a sliding end position in the first direction, and identifying a sliding operation in a second direction performed by the user on the trajectory of the sliding operation in the first direction, the start position of the sliding operation in the second direction coinciding with the end position of the sliding operation in the first direction, the second direction being an opposite direction to the first direction, the end position of the sliding operation in the second direction being determined; determining a track from a starting position of the sliding operation of the user along the first direction to an ending position of the sliding operation along the second direction as a sliding track during the sliding operation, wherein a part of the track of the sliding operation along the first direction is overlapped with the track of the sliding operation along the second direction; extracting first information in the display content corresponding to the sliding track from the display content of the touch screen; acquiring search result information with the first information as a search condition;
the touch screen is further configured to: and displaying the search result information acquired by the processor.
23. The search terminal of claim 22, further comprising a memory:
the memory is to: storing the data;
the processor is specifically configured to: and searching the data stored in the memory by taking the first information as a search condition, and acquiring search result information by taking the first information as a search condition.
24. The search terminal of claim 22, further comprising a network interface;
the processor is specifically configured to: and sending the first information to a search server through the network interface, and receiving search result information which is sent by the search server and takes the first information as a search condition.
CN201310186364.9A 2013-05-20 2013-05-20 A kind of searching method and terminal Active CN103294363B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310186364.9A CN103294363B (en) 2013-05-20 2013-05-20 A kind of searching method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310186364.9A CN103294363B (en) 2013-05-20 2013-05-20 A kind of searching method and terminal

Publications (2)

Publication Number Publication Date
CN103294363A CN103294363A (en) 2013-09-11
CN103294363B true CN103294363B (en) 2016-08-03

Family

ID=49095340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310186364.9A Active CN103294363B (en) 2013-05-20 2013-05-20 A kind of searching method and terminal

Country Status (1)

Country Link
CN (1) CN103294363B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103648037A (en) * 2013-11-15 2014-03-19 乐视致新电子科技(天津)有限公司 Intelligent television media player and search response method thereof, and intelligent television
CN103645897A (en) * 2013-12-05 2014-03-19 深圳市中兴移动通信有限公司 Mobile terminal and operation method thereof
CN104536641B (en) * 2014-12-03 2019-02-19 惠州Tcl移动通信有限公司 Mobile terminal and its screen operating method
CN105868385B (en) * 2014-12-12 2020-02-07 北京奇虎科技有限公司 Method and system for searching based on terminal interface touch operation
CN105786930B (en) * 2014-12-26 2019-11-26 北京奇虎科技有限公司 Based on the searching method and device for touching interaction
CN104516632B (en) * 2014-12-30 2016-11-30 北京奇虎科技有限公司 Determine and touch the method and device that character scans for
CN105843498A (en) * 2015-06-30 2016-08-10 维沃移动通信有限公司 Method for starting application programs and mobile terminal
CN105302902A (en) * 2015-10-27 2016-02-03 无锡天脉聚源传媒科技有限公司 Data search method and apparatus
CN105511783A (en) * 2015-11-30 2016-04-20 东莞酷派软件技术有限公司 A search method and mobile terminal
CN106776899A (en) * 2016-11-30 2017-05-31 维沃移动通信有限公司 A kind of information search method and mobile terminal
CN106814964A (en) * 2016-12-19 2017-06-09 广东小天才科技有限公司 Method for searching content at mobile terminal and content searching device
CN106648436A (en) * 2016-12-30 2017-05-10 维沃移动通信有限公司 Text message processing method and mobile terminal
CN107168635A (en) * 2017-05-05 2017-09-15 百度在线网络技术(北京)有限公司 Information demonstrating method and device
CN107515720B (en) * 2017-07-07 2020-07-31 网易传媒科技(北京)有限公司 Message processing method, medium, device and computing equipment
CN107340968B (en) * 2017-07-18 2021-03-09 网易传媒科技(北京)有限公司 Method, device and computer-readable storage medium for playing multimedia file based on gesture
CN108124200A (en) * 2017-12-29 2018-06-05 天脉聚源(北京)科技有限公司 The method and apparatus that operation is corrected in advertisement interaction
CN110309460B (en) * 2019-06-19 2021-08-03 百度在线网络技术(北京)有限公司 Search result page display method, device and equipment and readable storage medium
CN111680177A (en) * 2020-06-01 2020-09-18 广东小天才科技有限公司 Data search method, electronic device, and computer-readable storage medium
CN111897473A (en) * 2020-07-28 2020-11-06 惠州Tcl移动通信有限公司 Information extraction method and device of terminal, storage medium and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156615A (en) * 2011-04-01 2011-08-17 奇智软件(北京)有限公司 Suspension window displaying method and device
CN102346759A (en) * 2010-07-23 2012-02-08 索尼公司 Information processing device, information processing method, and information processing program
CN102929925A (en) * 2012-09-20 2013-02-13 百度在线网络技术(北京)有限公司 Search method and device based on browsing content

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101669017B1 (en) * 2010-07-12 2016-10-25 톰슨 라이센싱 System, method and user interface for content search

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346759A (en) * 2010-07-23 2012-02-08 索尼公司 Information processing device, information processing method, and information processing program
CN102156615A (en) * 2011-04-01 2011-08-17 奇智软件(北京)有限公司 Suspension window displaying method and device
CN102929925A (en) * 2012-09-20 2013-02-13 百度在线网络技术(北京)有限公司 Search method and device based on browsing content

Also Published As

Publication number Publication date
CN103294363A (en) 2013-09-11

Similar Documents

Publication Publication Date Title
CN103294363B (en) A kind of searching method and terminal
CN102981704B (en) A kind of icon placement method of display interface and mobile terminal
CN106201177B (en) An operation execution method and mobile terminal
CN102763065B (en) For navigating through multiple device, method and graphical user interface of checking region
CN104216600B (en) A method for providing functions of an application program and a touch-screen intelligent terminal device
CN105786930B (en) Based on the searching method and device for touching interaction
CN106527888B (en) Method and device for searching page by sliding screen
CN106055202A (en) Copying/pasting method and mobile terminal
CN106919307B (en) A kind of text clone method and mobile terminal
KR20130024220A (en) Input device and method on terminal equipment having a touch module
CN103324674B (en) Web page contents choosing method and device
US20140372402A1 (en) Enhanced Searching at an Electronic Device
CN107765960B (en) An information prompt method, device and storage medium
US20150213148A1 (en) Systems and methods for browsing
CN106814964A (en) Method for searching content at mobile terminal and content searching device
CN107632854A (en) A kind of screenshotss processing method and mobile terminal
CN106953913A (en) A kind of information pushing method and mobile terminal
CN106970899B (en) Text processing method and device
CN106570061A (en) Webpage tag management method and mobile terminal
CN103530017A (en) Application-icon-related page searching method and communication terminal
CN106502536A (en) A kind of page info choosing method and device
CN106529257B (en) An information processing method and mobile terminal
CN106210346A (en) A kind of video calling information processing method and mobile terminal
CN106708994A (en) Picture selection method and mobile terminal
CN106775295A (en) A kind of display methods and mobile terminal based on curve screens

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant