CN104699700A - Searching method and device - Google Patents
Searching method and device Download PDFInfo
- Publication number
- CN104699700A CN104699700A CN201310655495.7A CN201310655495A CN104699700A CN 104699700 A CN104699700 A CN 104699700A CN 201310655495 A CN201310655495 A CN 201310655495A CN 104699700 A CN104699700 A CN 104699700A
- Authority
- CN
- China
- Prior art keywords
- search
- user
- string
- mobile terminal
- input frame
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9538—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机通信技术,尤其涉及一种搜索方法及装置。The invention relates to computer communication technology, in particular to a search method and device.
背景技术Background technique
随着智能手机、平板电脑等移动终端的普及,通过浏览器搜索感兴趣的内容并进行浏览作为移动终端的一项极具实用性的功能越来越被人们所认可。然而现有技术中,用户在浏览网页的过程中,若想进行关键词搜索,必须通过连续的翻页操作将网页回退到最初显示的地方,才能找到浏览器顶部的搜索框,通过该搜索框重新输入关键词进行搜索,如此搜索操作繁琐且效率较低。With the popularization of mobile terminals such as smart phones and tablet computers, it is more and more recognized by people as a very practical function of mobile terminals to search for and browse content of interest through a browser. However, in the prior art, if the user wants to search for keywords in the process of browsing the webpage, the webpage must be rolled back to the place where it was originally displayed through continuous page turning operations, so that the search box at the top of the browser can be found. Box to re-enter keywords to search, such a search operation is cumbersome and inefficient.
发明内容Contents of the invention
有鉴于此,本发明提供一种搜索方法及装置,可简化搜索操作,提高搜索效率。In view of this, the present invention provides a search method and device, which can simplify search operations and improve search efficiency.
一种搜索方法,应用于移动终端,所述移动终端中预置浏览器,其特征在于,包括:当检测到用户的操作手势符合预置手势时,在所述浏览器的显示区域显示输入框;获取并缓存所述用户通过所述输入框输入的搜索字符串;接收所述用户触发的搜索指令,将所述搜索字符串提交给预置的搜索引擎进行搜索,并获取搜索结果;将所述搜索结果展示在所述显示区域的页面中。A search method, applied to a mobile terminal, wherein a browser is preset in the mobile terminal, and is characterized in that it includes: when it is detected that the user's operation gesture conforms to the preset gesture, displaying an input box in the display area of the browser ; Acquiring and caching the search string input by the user through the input box; receiving a search command triggered by the user, submitting the search string to a preset search engine for searching, and obtaining search results; The above search results are displayed on the pages in the display area.
一种搜索装置,应用于移动终端,所述移动终端中预置浏览器,其特征在于,包括:输入框显示模块,用于当检测到用户的操作手势符合预置手势时,在所述浏览器的显示区域显示输入框;搜索字符串获取模块,用于获取并缓存所述用户通过所述输入框显示模块显示的所述输入框输入的搜索字符串;搜索模块,用于接收所述用户触发的搜索指令,将所述搜索字符串获取模块获取的所述搜索字符串提交给预置的搜索引擎进行搜索,并获取搜索结果;搜索结果显示模块,用于将所述搜索模块获取的所述搜索结果展示在所述显示区域的页面中。A search device, applied to a mobile terminal, wherein a browser is preset in the mobile terminal, and it is characterized in that it includes: an input box display module, configured to display an input box in the browser when it is detected that the user's operation gesture conforms to the preset gesture The input box is displayed in the display area of the device; the search string acquisition module is used to acquire and cache the search string input by the user through the input box displayed by the input box display module; the search module is used to receive the user A triggered search command, submits the search string obtained by the search string acquisition module to a preset search engine for searching, and obtains search results; the search result display module is used to display all the search strings obtained by the search module The above search results are displayed on the pages in the display area.
本发明实施例提供的搜索方法及装置,通过当检测到用户的操作手势符合预置手势时,在浏览器的显示区域显示输入框,使得用户只需一个简单的手势即可获取输入框,然后通过输入框进行搜索,从而可简化搜索操作,提高搜索效率。In the search method and device provided by the embodiments of the present invention, when it is detected that the user's operation gesture conforms to the preset gesture, the input box is displayed in the display area of the browser, so that the user can obtain the input box with only one simple gesture, and then Search through the input box, thereby simplifying the search operation and improving search efficiency.
为让本发明的上述和其他目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附图式,作详细说明如下。In order to make the above and other objects, features and advantages of the present invention more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明Description of drawings
图1示出了一种移动终端的结构框图。Fig. 1 shows a structural block diagram of a mobile terminal.
图2为本发明第一实施例提供的在移动终端内进行搜索的方法的流程图。Fig. 2 is a flowchart of a method for searching in a mobile terminal provided by the first embodiment of the present invention.
图3为本发明第一实施例提供的在移动终端内进行搜索的方法中输入框的示意图。Fig. 3 is a schematic diagram of an input box in the method for searching in a mobile terminal according to the first embodiment of the present invention.
图4为本发明第二实施例提供的在移动终端内进行搜索的方法的流程图。Fig. 4 is a flow chart of a method for searching in a mobile terminal provided by the second embodiment of the present invention.
图5为本发明第三实施例提供的在移动终端内进行搜索的方法的流程图。Fig. 5 is a flowchart of a method for searching in a mobile terminal according to the third embodiment of the present invention.
图6为本发明第三实施例提供的在移动终端内进行搜索的方法中输入框的示意图。Fig. 6 is a schematic diagram of an input box in a method for searching in a mobile terminal according to a third embodiment of the present invention.
图7为本发明第三实施例提供的在移动终端内进行搜索的方法中通过输入框更换搜索引擎的示意图。Fig. 7 is a schematic diagram of changing a search engine through an input box in the method for searching in a mobile terminal according to the third embodiment of the present invention.
图8为本发明第三实施例提供的在移动终端内进行搜索的方法中搜索结果的示意图。Fig. 8 is a schematic diagram of search results in a method for searching in a mobile terminal according to a third embodiment of the present invention.
图9为本发明第四实施例提供的在移动终端内进行搜索的装置的结构示意图。Fig. 9 is a schematic structural diagram of an apparatus for searching in a mobile terminal according to a fourth embodiment of the present invention.
图10为图9的装置的存储环境示意图。FIG. 10 is a schematic diagram of a storage environment of the device in FIG. 9 .
图11为本发明第五实施例提供的在移动终端内进行搜索的装置的结构示意图。Fig. 11 is a schematic structural diagram of an apparatus for searching in a mobile terminal provided by a fifth embodiment of the present invention.
图12为本发明第五实施例提供的在移动终端内进行搜索的装置中的搜索字符串获取模块的结构示意图。Fig. 12 is a schematic structural diagram of a search string acquisition module in an apparatus for searching in a mobile terminal according to a fifth embodiment of the present invention.
具体实施方式Detailed ways
为更进一步阐述本发明为实现预定发明目的所采取的技术手段及功效,以下结合附图及较佳实施例,对依据本发明的具体实施方式、结构、特征及其功效,详细说明如后。In order to further explain the technical means and effects of the present invention to achieve the intended purpose of the invention, the specific implementation, structure, features and effects of the present invention will be described in detail below in conjunction with the accompanying drawings and preferred embodiments.
本发明实施例所提供的搜索方法可应用于移动终端中实现搜索,移动终端可以包括智能手机、平板电脑、电子书阅读器、MP3播放器(MovingPicture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机、车载电脑等等。The search method provided by the embodiments of the present invention can be applied to search in mobile terminals, and the mobile terminals can include smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, moving picture experts compress standard audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) player, laptop portable computer, car computer, etc.
图1示出了一种移动终端的结构框图。如图1所示,移动终端100包括存储器102、存储控制器104,一个或多个(图中仅示出一个)处理器106、外设接口108、射频模块110、定位模块112、摄像模块114、音频模块116、触控屏幕118以及按键模块120。这些组件通过一条或多条通讯总线/信号线122相互通讯。Fig. 1 shows a structural block diagram of a mobile terminal. As shown in FIG. 1 , the mobile terminal 100 includes a memory 102, a storage controller 104, one or more (only one is shown in the figure) processors 106, a peripheral interface 108, a radio frequency module 110, a positioning module 112, and a camera module 114 , an audio module 116 , a touch screen 118 and a button module 120 . These components communicate with each other via one or more communication buses/signal lines 122 .
可以理解,图1所示的结构仅为示意,移动终端100还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。图1中所示的各组件可以采用硬件、软件或其组合实现。It can be understood that the structure shown in FIG. 1 is only for illustration, and the mobile terminal 100 may also include more or less components than those shown in FIG. 1 , or have a configuration different from that shown in FIG. 1 . Each component shown in Fig. 1 may be implemented by hardware, software or a combination thereof.
存储器102可用于存储软件程序以及模块,如本发明实施例中的在移动终端内进行搜索的方法及装置对应的程序指令/模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的在移动终端内进行搜索的方法。The memory 102 can be used to store software programs and modules, such as the program instructions/modules corresponding to the method and device for searching in the mobile terminal in the embodiment of the present invention, and the processor 102 runs the software programs and modules stored in the memory 104, Thereby executing various functional applications and data processing, that is, realizing the above-mentioned method for searching in the mobile terminal.
存储器102可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器102可进一步包括相对于处理器106远程设置的存储器,这些远程存储器可以通过网络连接至移动终端100。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。处理器106以及其他可能的组件对存储器102的访问可在存储控制器104的控制下进行。The memory 102 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 102 may further include a memory that is remotely located relative to the processor 106, and these remote memories may be connected to the mobile terminal 100 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof. Access to memory 102 by processor 106 and possibly other components may be under the control of memory controller 104 .
外设接口108将各种输入/输入装置耦合至CPU以及存储器102。处理器106运行存储器102内的各种软件、指令以执行移动终端100的各种功能以及进行数据处理。Peripherals interface 108 couples various input/output devices to CPU and memory 102 . The processor 106 runs various software and instructions in the memory 102 to execute various functions of the mobile terminal 100 and perform data processing.
在一些实施例中,外设接口108,处理器106以及存储控制器104可以在单个芯片中实现。在其他一些实例中,他们可以分别由独立的芯片实现。In some embodiments, peripherals interface 108, processor 106, and memory controller 104 may be implemented in a single chip. In some other instances, they can be implemented by independent chips respectively.
射频模块110用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。射频模块110可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。射频模块110可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for MobileCommunication,GSM)、增强型移动通信技术(Enhanced Data GSMEnvironment,EDGE),宽带码分多址技术(wideband code division multipleaccess,W-CDMA),码分多址技术(Code division access,CDMA)、时分多址技术(time division multiple access,TDMA),蓝牙,无线保真技术(Wireless,Fidelity,WiFi)(如美国电气和电子工程师协会标准IEEE802.11a,IEEE802.11b,IEEE802.11g和/或IEEE802.11n)、网络电话(Voice over internet protocal,VoIP)、全球微波互联接入(WorldwideInteroperability for Microwave Access,Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The radio frequency module 110 is used to receive and send electromagnetic waves, realize mutual conversion between electromagnetic waves and electrical signals, and communicate with communication networks or other devices. The radio frequency module 110 may include various existing circuit elements for performing these functions, such as antenna, radio frequency transceiver, digital signal processor, encryption/decryption chip, Subscriber Identity Module (SIM) card, memory and so on. The radio frequency module 110 can communicate with various networks such as the Internet, intranet, wireless network or communicate with other devices through the wireless network. The wireless network mentioned above may include a cellular telephone network, a wireless local area network or a metropolitan area network. The wireless network mentioned above can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSMEnvironment (EDGE), broadband code division multiple Access technology (wideband code division multiple access, W-CDMA), code division multiple access technology (Code division access, CDMA), time division multiple access technology (time division multiple access, TDMA), Bluetooth, wireless fidelity technology (Wireless, Fidelity, WiFi) (such as IEEE802.11a, IEEE802.11b, IEEE802.11g and/or IEEE802.11n), Internet telephony (Voice over internet protocol, VoIP), Worldwide Interoperability for Microwave Access, Wi-Max), other protocols for mail, instant messaging and short messaging, and any other suitable communication protocol, even those that have not yet been developed.
定位模块112用于获取移动终端100的当前位置。定位模块112的实例包括但不限于全球卫星定位系统(GPS)、基于无线局域网或者移动通信网的定位技术。The positioning module 112 is used to obtain the current location of the mobile terminal 100 . Examples of the positioning module 112 include but are not limited to Global Positioning System (GPS), positioning technology based on wireless local area network or mobile communication network.
摄像模块114用于拍摄照片或者视频。拍摄的照片或者视频可以存储至存储器102内,并可通过射频模块110发送。The camera module 114 is used for taking photos or videos. The photographs or videos taken can be stored in the memory 102 and sent through the radio frequency module 110 .
音频模块116向用户提供音频接口,其可包括一个或多个麦克风、一个或者多个扬声器以及音频电路。音频电路从外设接口108处接收声音数据,将声音数据转换为电信息,将电信息传输至扬声器。扬声器将电信息转换为人耳能听到的声波。音频电路还从麦克风处接收电信息,将电信号转换为声音数据,并将声音数据传输至外设接口108中以进行进一步的处理。音频数据可以从存储器102处或者通过射频模块110获取。此外,音频数据也可以存储至存储器102中或者通过射频模块110进行发送。在一些实例中,音频模块116还可包括一个耳机播孔,用于向耳机或者其他设备提供音频接口。The audio module 116 provides an audio interface to the user and may include one or more microphones, one or more speakers, and audio circuitry. The audio circuit receives sound data from the peripheral interface 108, converts the sound data into electrical information, and transmits the electrical information to the speaker. Speakers convert electrical information into sound waves that can be heard by the human ear. The audio circuit also receives electrical information from the microphone, converts the electrical signal into sound data, and transmits the sound data to the peripheral interface 108 for further processing. The audio data can be obtained from the memory 102 or through the radio frequency module 110 . In addition, the audio data can also be stored in the memory 102 or sent through the radio frequency module 110 . In some examples, the audio module 116 may further include a headphone jack for providing an audio interface for headphones or other devices.
触控屏幕118在移动终端100与用户之间同时提供一个输出及输入界面。具体地,触控屏幕118向用户显示视频输出,这些视频输出的内容可包括文字、图形、视频、及其任意组合。一些输出结果是对应于一些用户界面对象。触控屏幕118还接收用户的输入,例如用户的点击、滑动等手势操作,以便用户界面对象对这些用户的输入做出响应。检测用户输入的技术可以是基于电阻式、电容式或者其他任意可能的触控检测技术。触控屏幕118显示单元的具体实例包括但并不限于液晶显示器或发光聚合物显示器。The touch screen 118 simultaneously provides an output and input interface between the mobile terminal 100 and the user. Specifically, the touch screen 118 displays video output to the user, and the content of the video output may include text, graphics, video, and any combination thereof. Some output results correspond to some user interface objects. The touch screen 118 also receives user input, such as user gesture operations such as clicking and sliding, so that the user interface objects respond to these user inputs. The technique for detecting user input may be based on resistive, capacitive or any other possible touch detection techniques. Specific examples of the display unit of the touch screen 118 include, but are not limited to, liquid crystal displays or light emitting polymer displays.
按键模块120同样提供用户向移动终端100进行输入的接口,用户可以通过按下不同的按键以使移动终端100执行不同的功能。The button module 120 also provides an interface for the user to input to the mobile terminal 100 , and the user can make the mobile terminal 100 perform different functions by pressing different buttons.
第一实施例first embodiment
图2为本发明第一实施例提供的在移动终端内进行搜索的方法的流程图。如图2所示,本实施例的搜索方法包括以下步骤:Fig. 2 is a flowchart of a method for searching in a mobile terminal provided by the first embodiment of the present invention. As shown in Figure 2, the search method of the present embodiment includes the following steps:
步骤S11,当检测到用户的操作手势符合预置手势时,在所述浏览器的显示区域显示输入框。Step S11 , when it is detected that the user's operation gesture conforms to the preset gesture, an input box is displayed in the display area of the browser.
于本实施例一具体实施方式中,输入框同时具有地址框与搜索框的功能,移动终端检测用户在输入框中输入的字符,若用户输入的是网络地址时,则根据用户输入的网络地址访问对应的网站,若用户输入的是搜索字符串,则根据该搜索字符串进行关键字搜索。由于将地址框和搜索框合并为一个输入框,因此可简化用户搜索的操作步骤,减少浏览器界面交互控件,从而可提高更换搜索关键词以及更换搜索引擎重搜的速度,更好的满足用户对搜索操作的便捷性的需求。In a specific implementation of this embodiment, the input box has the functions of an address box and a search box at the same time. The mobile terminal detects the characters input by the user in the input box. Visit the corresponding website, and if the user enters a search string, perform a keyword search based on the search string. Since the address box and the search box are combined into one input box, it simplifies the user's search operation steps and reduces the interactive controls on the browser interface, thereby improving the speed of changing search keywords and changing search engines to re-search, and better satisfying users The need for ease of search operations.
具体地,移动终端中预置浏览器,请参照图3,于本实施例一具体实施方式中,移动终端中预置的浏览器开启时,展示给用户的交互界面可以包括:输入框、显示区域、以及操作区域。其中,输入框还可以包括:搜索引擎更换区域与搜索字符串输入与显示区域,搜索引擎更换区域可用于接收用户的更换搜索引擎的指令,显示用户选定的搜索引擎,搜索字符串输入与显示区域可用于获取并显示用户输入的搜索字符串。此外,显示区域可用于显示搜索结果。操作区域中还可包括多个预置的操作按钮,通过检测用户在操作区域中的不同操作按钮上的点击动作可获取用户发送的操作指令,并根据该操作指令,可执行与该操作指令指向的操作按钮所对应的操作,例如:前进、后退、回到起始页、新建窗口等等。可以理解地,为最大限度的显示当前网页的内容,当用户在浏览网页时,输入框处于自动隐藏状态,也即输入框不可见。移动终端在用户通过该预置的浏览器进行网页浏览时,实时检测用户对预置的浏览器进行的操作,当检测到用户的操作手势符合预置手势时,也即检测到用户通过预置的手势对该浏览器进行操作时,在该浏览器的显示区域(也可以理解为移动终端的屏幕)显示输入框。该输入框用于获取用户输入的搜索字符串、以及用户发送的搜索引擎更换指令。于本实施例一具体实施方式中,当移动终端检测到用户在触控屏上做出的快速向下的滑动手势时,将输入框显示在屏幕的上方。这样使得用户无需翻阅到页面顶部,即可进行更换搜索关键词和更换搜索引擎的操作,从而可提高搜索操作的便捷性。Specifically, the browser preset in the mobile terminal, please refer to FIG. 3. In a specific implementation manner of this embodiment, when the browser preset in the mobile terminal is opened, the interactive interface displayed to the user may include: an input box, a display area, and operating area. Wherein, the input box can also include: a search engine replacement area and a search string input and display area, the search engine replacement area can be used to receive the user's instruction to replace the search engine, display the search engine selected by the user, and search string input and display Regions can be used to capture and display user-entered search strings. Additionally, the display area can be used to display search results. The operation area can also include a plurality of preset operation buttons. By detecting the click action of the user on different operation buttons in the operation area, the operation instruction sent by the user can be obtained, and according to the operation instruction, the operation directed to the operation instruction can be executed. The corresponding operation of the operation button, for example: forward, back, return to the start page, create a new window, and so on. Understandably, in order to display the content of the current webpage to the maximum extent, when the user is browsing the webpage, the input box is automatically hidden, that is, the input box is not visible. When the user browses the webpage through the preset browser, the mobile terminal detects the operation performed by the user on the preset browser in real time. When the browser is operated by a gesture, an input box is displayed in the display area of the browser (which can also be understood as the screen of the mobile terminal). The input box is used to obtain the search string input by the user and the search engine replacement instruction sent by the user. In a specific implementation manner of this embodiment, when the mobile terminal detects a fast downward sliding gesture made by the user on the touch screen, the input box is displayed on the top of the screen. In this way, the user can perform operations of changing the search keyword and the search engine without flipping to the top of the page, thereby improving the convenience of the search operation.
步骤S12,获取并缓存所述用户通过所述输入框输入的搜索字符串。Step S12, acquiring and caching the search string input by the user through the input box.
具体地,移动终端可以获取并显示用户通过输入框输入的搜索字符串,同时将获取的搜索字符串缓存在存储器中,直到当检测到用户在该输入框中进行的删除搜索字符串的操作时,再将该搜索字符串从存储器中删除。于本实施例中,搜索字符串具体可包括:英文字母、汉字、数字、符号等。Specifically, the mobile terminal may acquire and display the search string input by the user through the input box, and at the same time cache the acquired search string in the memory until an operation of deleting the search string by the user in the input box is detected , and delete the search string from memory. In this embodiment, the search string may specifically include: English letters, Chinese characters, numbers, symbols, and the like.
步骤S13,接收所述用户触发的搜索指令,将所述搜索字符串提交给预置的搜索引擎进行搜索,并获取搜索结果。Step S13, receiving a search instruction triggered by the user, submitting the search string to a preset search engine for searching, and obtaining search results.
搜索指令可通过用户在搜索字符串输入与显示区域的点击动作触发。具体地,当移动终端检测到用户通过手指或物体(例如手写笔)在输入框中的搜索字符串输入与显示区域的任意位置的点击动作时,将用户输入的搜索字符串与该用户的标识发送给搜索服务器,通过搜索服务器将搜索字符串提交给预置的搜索引擎进行搜索并获取搜索结果。可以理解地,预置的搜索引擎可包括:搜搜、百度、宜搜、谷歌、雅虎等搜索引擎中的一种或多种。The search command can be triggered by the user clicking on the search string input and display area. Specifically, when the mobile terminal detects that the user enters the search string in the input box with a finger or an object (such as a stylus) and clicks anywhere in the display area, the search string entered by the user and the user's identification Send it to the search server, and submit the search string to the preset search engine through the search server for searching and obtain the search results. Understandably, the preset search engines may include: one or more of search engines such as Soso, Baidu, Yisou, Google, and Yahoo.
步骤S14,将所述搜索结果展示在所述显示区域的页面中。Step S14, displaying the search result on a page in the display area.
具体地,移动终端根据预置的显示规则,将获取的搜索结果进行分类、汇总、排序、字体编辑,然后显示在浏览器的显示区域的页面中。Specifically, the mobile terminal classifies, summarizes, sorts, and edits the fonts of the obtained search results according to preset display rules, and then displays them on the page in the display area of the browser.
本发明实施例提供的搜索方法,当检测到用户的操作手势符合预置手势时,在浏览器的显示区域显示输入框,使得用户只需一个简单的手势即可获取输入框,然后通过输入框进行搜索,从而可简化搜索操作,提高搜索效率。In the search method provided by the embodiment of the present invention, when it is detected that the user's operation gesture conforms to the preset gesture, the input box is displayed in the display area of the browser, so that the user can obtain the input box with only one simple gesture, and then pass the input box Search, which can simplify the search operation and improve search efficiency.
第二实施例second embodiment
图4本发明第二实施例提供的在移动终端内进行搜索的方法的流程图。如图4所示,本实施例的搜索方法包括以下步骤:FIG. 4 is a flow chart of a method for searching in a mobile terminal provided by the second embodiment of the present invention. As shown in Figure 4, the search method of the present embodiment includes the following steps:
步骤S21,当检测到用户的操作手势符合预置手势时,在所述浏览器的显示区域的顶端始终显示输入框。Step S21, when it is detected that the user's operation gesture conforms to the preset gesture, an input box is always displayed on the top of the display area of the browser.
具体地,移动终端中预置浏览器,移动终端实时检测用户对预置的浏览器进行的操作,当检测到用户通过预置的手势对该浏览器进行操作时,在该浏览器的显示区域的顶端始终显示输入框,也就是说该输入框被置顶于该浏览器的显示区域的页面中。由于输入框被置顶于浏览器的显示区域的页面中,无论该显现区域的页面如何滚动或翻页,输入框都不会消失,这样可使得用户随时能看到输入框,并通过该输入框进行搜索,而不需要如现有的搜索技术那样必须回到页首,然后通过页首的输入框进行搜索,从而可将搜索操作化繁为简,提高搜索效率。Specifically, a browser is preset in the mobile terminal, and the mobile terminal detects the user's operation on the preset browser in real time. The input box is always displayed at the top of the , that is to say, the input box is placed on top of the page in the display area of the browser. Since the input box is placed on top of the page in the display area of the browser, no matter how the page in the display area is scrolled or turned, the input box will not disappear, so that the user can see the input box at any time, and through the input box Search without having to go back to the top of the page as in the existing search technology, and then search through the input box at the top of the page, so that the search operation can be simplified and the search efficiency can be improved.
步骤S22,获取所述用户通过所述输入框输入的字符串。Step S22, acquiring the character string input by the user through the input box.
本步骤具体请参考第一实施例相应内容,此处不再赘述。For details of this step, please refer to the corresponding content in the first embodiment, and details are not repeated here.
步骤S23,判断所述字符串是否为网址。Step S23, judging whether the character string is a URL.
具体地,可根据字符串的特征来判断是否为网址,例如:若字符串是以“Http”或“WWW”开头,或包含字符“/”或“.”,或以“.com”等域名结尾,则可判定该字符串为网址。又例如:假设字符串全部由汉字构成,则可判定该字符串并非网址。Specifically, whether it is a URL can be judged according to the characteristics of the string, for example: if the string starts with "Http" or "WWW", or contains the characters "/" or ".", or a domain name such as ".com" end, it can be determined that the string is a URL. Another example: if the character string is all composed of Chinese characters, it can be determined that the character string is not a URL.
若是,则执行步骤S24:直接访问所述网址对应的网页。If yes, execute step S24: directly access the webpage corresponding to the URL.
若否,则执行步骤S25:将所述字符串作为搜索字符串缓存。If not, execute step S25: cache the character string as a search character string.
本实施例中,通过分析判断用户输入搜索字符串是否为网址,并根据判断结果或直接访问对应网页、或进行搜索,使得用户只需在一个输入框即可完成通过网址访问网页、以及关键词搜索,从而可简化用户在现有技术提供的浏览器中的地址框与搜索框之间的切换操作,进而提高搜索效率。In this embodiment, by analyzing and judging whether the search character string input by the user is a web address, and according to the judgment result, or directly accessing the corresponding webpage, or performing a search, the user only needs to complete the webpage access through the web address and the keywords in one input box. Search, thereby simplifying the user's switching operation between the address box and the search box in the browser provided by the prior art, thereby improving search efficiency.
步骤S26,接收所述用户触发的搜索指令,将所述关键词提交给预置的搜索引擎进行搜索,并获取搜索结果。Step S26, receiving a search instruction triggered by the user, submitting the keyword to a preset search engine for searching, and obtaining search results.
步骤S27,将所述搜索结果展示在所述显示区域的页面中。Step S27, displaying the search result on a page in the display area.
步骤S26至步骤S27具体请参考第一实施例中的相应内容,此处不再赘述。For details of step S26 to step S27, please refer to the corresponding content in the first embodiment, which will not be repeated here.
步骤S28,接收所述用户触发的取消搜索指令,隐藏所述输入框。Step S28, receiving a cancel search instruction triggered by the user, and hiding the input box.
于本实施例一具体实施方式中,取消搜索指令可通过用户对全屏模式按钮的点击操作触发,当移动终端检测到用户的点击全屏模式按钮的操作时,将当前浏览器的浏览模式切换为全屏模式,隐藏输入框,当然也可以采用其他的方式触发,例如点击预设的取消搜索按钮等,本发明的具体实施方式并不以此为限。In a specific implementation of this embodiment, the cancel search command can be triggered by the user clicking the full-screen mode button, and when the mobile terminal detects the user's operation of clicking the full-screen mode button, the browsing mode of the current browser is switched to full-screen mode, hiding the input box, of course, it can also be triggered in other ways, such as clicking a preset cancel search button, etc., and the specific implementation of the present invention is not limited thereto.
本发明实施例提供的搜索方法,当检测到用户的操作手势符合预置手势时,在浏览器的显示区域的顶部始终显示输入框,使得用户无论浏览到网页的任何部分,均可通过顶部的输入框进行搜索,从而可简化搜索操作,提高搜索效率。In the search method provided by the embodiment of the present invention, when it is detected that the user's operation gesture conforms to the preset gesture, the input box is always displayed on the top of the display area of the browser, so that the user can browse through any part of the web page through the Input box to search, which can simplify the search operation and improve search efficiency.
第三实施例third embodiment
图5本发明第三实施例提供的在移动终端内进行搜索的方法的流程图。如图5所示,本实施例的搜索方法包括以下步骤:FIG. 5 is a flow chart of a method for searching in a mobile terminal provided by the third embodiment of the present invention. As shown in Figure 5, the search method of this embodiment includes the following steps:
步骤S31,当检测到用户的操作手势符合预置手势时,在所述浏览器的显示区域显示输入框。Step S31 , when it is detected that the user's operation gesture conforms to the preset gesture, an input box is displayed in the display area of the browser.
具体地,结合图6,移动终端中预置浏览器,当用户通过该预置的浏览器进行网页浏览时(可以理解地,为最大限度的显示当前网页的内容,当用户在浏览网页时,输入框处于自动隐藏状态),移动终端实时检测用户对预置的浏览器进行的操作,当检测到用户通过预置的手势对该浏览器进行操作时,将如图6所示的输入框显示在该浏览器的显示区域的预设位置(例如:屏幕的顶端或底部)。该输入框可包括:搜索引擎更换区域、以及搜索字符串输入与显示区域。其中,搜索引擎更换区域用于接收用户发送的搜索引擎更换指令,显示用户选定的搜索引擎;搜索字符串输入与显示区域用于获取并显示用户输入的搜索字符串。于本实施例一具体实施方式中,预置手势可为用户通过手指或其他物体(例如手写笔)以大于预设数值的速度或频率在所述移动终端的屏幕上进行的向下滑动的手势(可以理解为向上翻页),也可以理解为用户的单个或多个手指在移动终端的屏幕上做出的长距离快速向下滑动的动作,或用户的单个或多个手指在屏幕上做出的短距离连续向下滑动的动作。可以理解地,于本实施例其它实施方式中,也可根据用户通过预置手势设置界面发送的设置指令,设置其它手势(例如:用户的单个或多个手指双击屏幕、在屏幕上自左向右或自右向左的滑动、或按照用户自定义的轨迹滑动的手势等等)为预置手势。Specifically, with reference to FIG. 6, a browser is preset in the mobile terminal, and when the user browses the webpage through the preset browser (understandably, in order to display the content of the current webpage to the maximum extent, when the user browses the webpage, The input box is in the automatic hidden state), the mobile terminal detects the user's operation on the preset browser in real time, and when it detects that the user operates the browser through the preset gesture, the input box shown in Figure 6 will be displayed At a preset position in the display area of the browser (for example: the top or bottom of the screen). The input box may include: a search engine replacement area, and a search string input and display area. Among them, the search engine replacement area is used to receive the search engine replacement instruction sent by the user, and display the search engine selected by the user; the search string input and display area is used to acquire and display the search string input by the user. In a specific implementation manner of this embodiment, the preset gesture can be a downward sliding gesture performed by the user on the screen of the mobile terminal with a finger or other objects (such as a stylus) at a speed or frequency greater than a preset value (It can be understood as turning up the page), and it can also be understood as the action of the user's single or multiple fingers on the screen of the mobile terminal for a long distance and quickly slides down, or the user's single or multiple fingers on the screen. A short-distance continuous sliding down action. It can be understood that in other implementations of this embodiment, other gestures can also be set according to the setting instructions sent by the user through the preset gesture setting interface (for example: the user's single or multiple fingers double-tap the screen, Swipe right or from right to left, or a gesture of sliding along a user-defined trajectory, etc.) are preset gestures.
步骤S32,获取并缓存所述用户通过所述输入框输入的搜索字符串。Step S32, acquiring and caching the search string input by the user through the input box.
具体地,结合图6,移动终端通过如图6所示的输入框实时获取用户在搜索字符串输入与显示区域输入的搜索字符串,将获取的搜索字符串中的字符缓存并逐一显示在该搜索字符串输入与显示区域。可以理解的,为便于用户了解输入的搜索字符串以及后续搜索,移动终端可始终在输入框的搜索字符串输入与显示区域中显示获取的用户输入的搜索字符串,直至当检测到用户的搜索字符串删除操作时,响应于该搜索字符串删除操作,删除该搜索字符串。Specifically, referring to FIG. 6, the mobile terminal obtains the search string input by the user in the search string input and display area in real time through the input box shown in FIG. Search string input and display area. It can be understood that, in order to facilitate the user to understand the input search string and subsequent searches, the mobile terminal may always display the acquired search string input by the user in the search string input and display area of the input box until the user's search string is detected. When the string deletion operation is performed, the search string is deleted in response to the search string deletion operation.
步骤S33,搜索包含所述搜索字符串的词组,根据获取的所述搜索字符串与搜索出的所述词组,生成备选关键词目录,将所述备选关键词目录展示给所述用户。Step S33, searching for a phrase containing the search string, generating a candidate keyword list according to the acquired search string and the searched phrase, and displaying the candidate keyword list to the user.
具体地,结合图6,移动终端实时对获取的用户输入的字符或搜索字符串进行联想,搜索包含该搜索字符串的词组。例如,假设用户输入了字符“中”,则移动终端通过浏览器对字符“中”进行联想,从关键字索引数据库中搜索包含字符“中”的词组关键字,比如:“中国”、“中国人”、“中通”等等;假设接着用户又输入了字符“国”,也就相当于用户输入了搜索字符串“中国”,则移动终端对搜索字符串“中国”进行联想,从关键字索引数据库中搜索包含搜索字符串“中国”的词组关键字,比如:“中国人”、“中国通”、“中国好声音”等等;以此类推。关键字索引数据库可存储于云端服务器的,其中存储有与用户输入的搜索字符串相关联的其他用户经常搜索的热点关键词、以及与热点关键词对应的新闻、视频、音频等信息的网页链接。Specifically, referring to FIG. 6 , the mobile terminal associates the acquired characters or search strings input by the user in real time, and searches for phrases containing the search strings. For example, assuming that the user has input the character "中", the mobile terminal associates the character "中" through the browser, and searches the keyword index database for phrase keywords containing the character "中", such as: "China", "China People", "Zhongtong" and so on; assuming that the user then enters the character "国", it is equivalent to the user entering the search string "China", then the mobile terminal associates the search string "China", from the key Search the word index database for phrase keywords containing the search string "China", such as: "Chinese", "China Hands", "The Voice of China" and so on; and so on. The keyword index database can be stored in the cloud server, which stores hot keywords frequently searched by other users associated with the search string entered by the user, and web links of news, video, audio and other information corresponding to the hot keywords .
移动终端根据用户输入的搜索字符串以及搜索获得的词组,按照预置的规则生成备选关键词目录,然后如图6所示,将生成的备选关键词目录显示在浏览器的显示区域的页面中,其中,若备选关键词有对应的新闻、视频、音频等信息的网页链接,则在页面中将该对应的网页链接与备选关键词相关联,并可如图6所示,对网页链接的类型(视频、音频等)予以标识。According to the search string entered by the user and the phrases obtained from the search, the mobile terminal generates a candidate keyword catalog according to preset rules, and then displays the generated candidate keyword catalog on the display area of the browser as shown in Figure 6 In the page, wherein, if the alternative keywords have corresponding webpage links of information such as news, video, audio, etc., then in the page, the corresponding webpage links are associated with the alternative keywords, and as shown in Figure 6, Identify the type of web link (video, audio, etc.).
通过上述搜索字符串联想,可以为用户提供与搜索字符串相关联的热点关键词,帮助用户更快更准确地定位出需要搜索的关键词,从而可提高搜索效率。Through the association of the above search string, hot keywords associated with the search string can be provided to the user, helping the user to locate the keyword to be searched more quickly and accurately, thereby improving the search efficiency.
步骤S34,响应于所述用户对所述备选关键词目录的选择操作,判断所述选择操作指向的备选关键词是否对应一个网页链接。Step S34, in response to the user's selection operation on the candidate keyword list, determine whether the candidate keyword pointed to by the selection operation corresponds to a web page link.
具体的,移动终端在检测到用户对显示在如图6所示的浏览器的显示区域的页面中的备选关键词目录进行的选择操作时,响应于该选择操作,判断该选择操作所指向的备选关键词是否对应一个网页链接,也即用户是需要打开一个网页链接,还是需要进行关键字搜索。Specifically, when the mobile terminal detects the selection operation performed by the user on the candidate keyword catalog displayed on the page in the display area of the browser as shown in Figure 6, in response to the selection operation, it determines that the selection operation points to Whether the candidate keyword corresponds to a web page link, that is, whether the user needs to open a web page link or perform a keyword search.
若是,则执行步骤S35:直接在所述浏览器中打开所述网页链接。If yes, execute step S35: directly open the web page link in the browser.
若用户的选择操作指向的备选关键词对应一个网页链接,则直接在浏览器中打开该网页链接,例如:假设用户的选择操作指向的是图6中的“中国最强音(视频)”,则在浏览器中打开该“中国最强音(视频)”对应的网页链接,并通过视频播放插件为用户播放该网页中的视频文件。If the alternative keyword pointed to by the user's selection operation corresponds to a webpage link, then directly open the webpage link in the browser, for example: suppose the user's selection operation points to "China's strongest voice (video)" in Figure 6 , then open the webpage link corresponding to the "China's Strongest Voice (Video)" in the browser, and play the video file in the webpage for the user through the video playback plug-in.
若否,则执行步骤S36:将所述备选关键词提交给预置的搜索引擎进行搜索,并获取搜索结果。If not, execute step S36: submit the candidate keywords to a preset search engine for searching, and obtain search results.
若用户的选择操作指向的备选关键词无对应的网页链接,则将备选关键词通过服务器提交给预置的搜索引擎进行,并获取搜索结果。If there is no corresponding web page link for the candidate keyword pointed to by the user's selection operation, then the candidate keyword is submitted to the preset search engine through the server, and the search result is obtained.
步骤S37,将所述搜索结果展示在所述显示区域的页面中。Step S37, displaying the search result on a page in the display area.
本步骤具体可参考第一实施例的相应内容,此处不再赘述。For details of this step, reference may be made to corresponding content in the first embodiment, and details are not repeated here.
步骤S38,响应于所述用户更换搜索引擎的操作,将缓存的所述搜索字符串提交给更换后的搜索引擎再次进行搜索,获取并显示搜索结果。Step S38, in response to the user's operation of changing the search engine, submit the cached search string to the changed search engine to search again, and obtain and display the search results.
具体地,结合图7与图8,移动终端首先在检测到用户在输入框的搜索引擎更换区域的更换搜索引擎的操作时,响应于该操作,生成备选搜索引擎菜单,并将该备选搜索引擎菜单展示给用户;然后,响应于用户在该备选搜索引擎菜单的选择操作,将当前搜索引擎更换为该选择操作指向的搜索引擎;接着,将该选择操作指向的搜索引擎的标识以及缓存的搜索字符串提交给服务器,通过服务器将缓存的搜索字符串提交给更换后的搜索引擎再次进行搜索,获取并显示搜索结果。搜索结果可如图8所示,其中输入框的搜索引擎更换区域显示的为更换后的搜索引擎,搜索字符串输入与显示区域显示的始终为缓存的用户输入的搜索字符串。通过浏览器在检测到用户的更换搜索引擎的操作时,直接将缓存的搜索字符串提交给更换后的搜索引擎进行搜索,使得用户在更换搜索引擎后,无需再次进行输入之前的搜索字符串的操作,即可完成搜索,从而简化了搜索操作,进而可提高搜索效率。Specifically, referring to FIG. 7 and FIG. 8 , when the mobile terminal first detects the operation of changing the search engine by the user in the search engine replacement area of the input box, in response to the operation, a menu of alternative search engines is generated, and the alternative The search engine menu is displayed to the user; then, in response to the user's selection operation in the alternative search engine menu, the current search engine is replaced with the search engine pointed to by the selection operation; then, the identification of the search engine pointed to by the selection operation and The cached search string is submitted to the server, and the server submits the cached search string to the replaced search engine for searching again, and obtains and displays the search results. The search result can be shown in FIG. 8 , where the search engine replacement area of the input box displays the replaced search engine, and the search string input and display area always displays the cached search string entered by the user. When the browser detects the user's operation of changing the search engine, it directly submits the cached search string to the replaced search engine for searching, so that the user does not need to input the previous search string again after changing the search engine. operation, the search can be completed, which simplifies the search operation and improves the search efficiency.
步骤S39,接收所述用户触发的取消搜索指令,隐藏所述输入框。Step S39, receiving a cancel search instruction triggered by the user, and hiding the input box.
于本实施例一具体实施方式中,取消搜索指令可通过用户的手指在移动终端的屏幕上的滑动手势触发,例如:用户的单个或多个手指在移动终端的屏幕上做出的向上滑动的手势(通常可以理解为向下翻页)。当移动终端检测到用户的手指在移动终端的屏幕上的向上滑动手势时,隐藏输入框。In a specific implementation of this embodiment, the cancel search instruction can be triggered by a sliding gesture of the user's finger on the screen of the mobile terminal, for example: the user's single or multiple fingers slide upward on the screen of the mobile terminal Gestures (often interpreted as page down). When the mobile terminal detects an upward sliding gesture of the user's finger on the screen of the mobile terminal, the input box is hidden.
本发明实施例提供的搜索方法,通过当检测到用户的操作手势符合预置手势时,在浏览器的显示区域显示输入框,使得用户只需一个简单的手势即可获取输入框,然后通过输入框进行关键词搜索,从而可简化搜索操作,提高搜索效率。此外,由于移动终端通过浏览器在检测到用户的更换搜索引擎的操作时,直接将缓存的搜索字符串提交给更换后的搜索引擎进行搜索,可使得用户在更换搜索引擎后,无需再次进行输入之前的搜索字符串的操作,即可完成搜索,从而可进一步简化搜索操作,提高搜索效率及搜索的便捷性。In the search method provided by the embodiment of the present invention, when it is detected that the user's operation gesture conforms to the preset gesture, the input box is displayed in the display area of the browser, so that the user can obtain the input box with only one simple gesture, and then enter the Keyword search can be carried out in the box, which can simplify the search operation and improve the search efficiency. In addition, since the mobile terminal directly submits the cached search string to the replaced search engine for searching when detecting the user's operation of changing the search engine through the browser, the user does not need to input again after changing the search engine. The previous search string operation can complete the search, thereby further simplifying the search operation, improving search efficiency and convenience.
第四实施例Fourth embodiment
图9为本发明第四实施例提供的在移动终端内进行搜索的装置的结构示意图。本实施例提供的搜索装置可以用于上述实施例中的搜索方法。如图9所示,搜索装置40包括:输入框显示模块41、搜索字符串获取模块42、搜索模块43、以及搜索结果显示模块44。Fig. 9 is a schematic structural diagram of an apparatus for searching in a mobile terminal according to a fourth embodiment of the present invention. The search device provided in this embodiment can be used in the search methods in the foregoing embodiments. As shown in FIG. 9 , the search device 40 includes: an input box display module 41 , a search string acquisition module 42 , a search module 43 , and a search result display module 44 .
其中,输入框显示模块41用于当检测到用户的操作手势符合预置手势时,在所述浏览器的显示区域显示输入框。Wherein, the input box display module 41 is configured to display the input box in the display area of the browser when it is detected that the user's operation gesture conforms to the preset gesture.
搜索字符串获取模块42用于获取并缓存所述用户通过所述输入框显示模块41显示的所述输入框输入的搜索字符串。The search string obtaining module 42 is configured to obtain and cache the search string entered by the user through the input box displayed by the input box display module 41 .
搜索模块43用于接收所述用户触发的搜索指令,将所述搜索字符串获取模块42获取的所述搜索字符串提交给预置的搜索引擎进行搜索,并获取搜索结果。The search module 43 is configured to receive a search instruction triggered by the user, submit the search string acquired by the search string acquisition module 42 to a preset search engine for searching, and obtain search results.
搜索结果显示模块44用于将所述搜索模块43获取的所述搜索结果展示在所述显示区域的页面中。The search result display module 44 is configured to display the search results acquired by the search module 43 on a page in the display area.
以上各模块可以是由软件代码实现,此时,上述的各模块可存储于存储器102内,如图10所示。以上各模块同样可以由硬件例如集成电路芯片实现。Each of the above modules may be implemented by software codes. In this case, each of the above modules may be stored in the memory 102, as shown in FIG. 10 . Each of the above modules can also be realized by hardware such as an integrated circuit chip.
本实施例对搜索装置40的各功能模块实现各自功能的具体过程,请参见上述图1至图8所示实施例中描述的具体内容,此处不再赘述。For the specific process of realizing the respective functions of each functional module of the search device 40 in this embodiment, please refer to the specific content described in the above embodiments shown in FIG. 1 to FIG. 8 , which will not be repeated here.
本发明实施例提供的搜索装置,通过当检测到用户的操作手势符合预置手势时,在浏览器的显示区域显示输入框,使得用户只需一个简单的手势即可获取输入框,然后通过输入框进行关键词搜索,从而可简化搜索操作,提高搜索效率。The search device provided by the embodiment of the present invention displays the input box in the display area of the browser when it detects that the user's operation gesture conforms to the preset gesture, so that the user can obtain the input box with only one simple gesture, and then enter the Keyword search can be carried out in the box, which can simplify the search operation and improve the search efficiency.
第五实施例fifth embodiment
图11为本发明第五实施例提供的在移动终端内进行搜索的装置的结构示意图。本实施例提供的搜索装置可以用于实现上述实施例中的搜索方法。如图11所示,搜索装置50包括:输入框显示模块51、搜索字符串获取模块52、搜索模块53、搜索结果显示模块54、以及输入框隐藏模块55。Fig. 11 is a schematic structural diagram of an apparatus for searching in a mobile terminal provided by a fifth embodiment of the present invention. The search device provided in this embodiment can be used to implement the search method in the foregoing embodiments. As shown in FIG. 11 , the search device 50 includes: an input box display module 51 , a search string acquisition module 52 , a search module 53 , a search result display module 54 , and an input box hiding module 55 .
其中,输入框显示模块51用于当检测到用户的操作手势符合预置手势时,在所述浏览器的显示区域显示输入框。Wherein, the input box display module 51 is configured to display the input box in the display area of the browser when it is detected that the user's operation gesture conforms to the preset gesture.
搜索字符串获取模块52用于获取并缓存所述用户通过所述输入框显示模块51显示的所述输入框输入的搜索字符串。如图12所示,所述搜索字符串获取模块52包括:字符串获取单元521、判断单元522、处理单元523。字符串获取单元521用于获取所述用户通过所述输入框输入的字符串;判断单元522用于判断所述字符串获取单元521获取的所述字符串是否为网址;处理单元523用于若所述判断单元522的判断结果为是,则直接访问所述网址对应的网页,若所述判断单元522的判断结果为否,则将所述字符串作为搜索字符串缓存。The search string obtaining module 52 is configured to obtain and cache the search string entered by the user through the input box displayed by the input box display module 51 . As shown in FIG. 12 , the search string acquisition module 52 includes: a string acquisition unit 521 , a judging unit 522 , and a processing unit 523 . The character string obtaining unit 521 is used to obtain the character string input by the user through the input box; the judging unit 522 is used to judge whether the character string obtained by the character string obtaining unit 521 is a website; the processing unit 523 is used to If the judging result of the judging unit 522 is yes, directly access the webpage corresponding to the website address, and if the judging result of the judging unit 522 is no, cache the character string as a search character string.
搜索模块53用于接收所述用户触发的搜索指令,将所述搜索字符串获取模块52获取的所述搜索字符串提交给预置的搜索引擎进行搜索,并获取搜索结果。The search module 53 is configured to receive a search instruction triggered by the user, submit the search string acquired by the search string acquisition module 52 to a preset search engine for searching, and obtain search results.
搜索结果显示模块54用于将所述搜索模块53获取的所述搜索结果展示在所述显示区域的页面中。The search result display module 54 is configured to display the search results acquired by the search module 53 on a page in the display area.
优选地,当所述页面滚动或翻页时,所述输入框仍显示在所述显示区域中。Preferably, when the page is scrolled or turned, the input box is still displayed in the display area.
输入框隐藏模块55,用于接收所述用户触发的取消搜索指令,隐藏所述输入框。The input box hiding module 55 is configured to receive a cancel search instruction triggered by the user, and hide the input box.
优选地,所述搜索模块53还用于响应于所述用户更换搜索引擎的操作,将所述搜索字符串获取模块52获取并缓存的所述搜索字符串提交给更换后的搜索引擎再次进行搜索,并获取搜索结果。Preferably, the search module 53 is also configured to submit the search string acquired and cached by the search string acquisition module 52 to the replaced search engine for searching again in response to the operation of the user changing the search engine , and get the search results.
优选地,所述预置手势包括:所述用户以大于预设数值的速度或频率沿预定方向在所述移动终端的屏幕上进行的滑动手势。Preferably, the preset gesture includes: the user performs a sliding gesture on the screen of the mobile terminal along a predetermined direction at a speed or frequency greater than a preset value.
本实施例对搜索装置50的各功能模块实现各自功能的具体过程,请参见上述图1至图8所示实施例中描述的具体内容,此处不再赘述。For the specific process of realizing the respective functions of each functional module of the search device 50 in this embodiment, please refer to the specific content described in the above embodiments shown in FIG. 1 to FIG. 8 , which will not be repeated here.
本发明实施例提供的搜索装置,通过当检测到用户的操作手势符合预置手势时,在浏览器的显示区域显示输入框,使得用户只需一个简单的手势即可获取输入框,然后通过输入框进行关键词搜索,从而可简化搜索操作,提高搜索效率。The search device provided by the embodiment of the present invention displays the input box in the display area of the browser when it detects that the user's operation gesture conforms to the preset gesture, so that the user can obtain the input box with only one simple gesture, and then enter the Keyword search can be carried out in the box, which can simplify the search operation and improve the search efficiency.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts in each embodiment, refer to each other, that is, Can. As for the device-type embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to part of the description of the method embodiments.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to encompass a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional same elements in the process, method, article or apparatus comprising said element.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.
以上所述,仅是本发明的较佳实施例而已,并非对本发明作任何形式上的限制,虽然本发明已以较佳实施例揭露如上,然而并非用以限定本发明,任何熟悉本专业的技术人员,在不脱离本发明技术方案范围内,当可利用上述揭示的技术内容做出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本发明技术方案内容,依据本发明的技术实质对以上实施例所作的任何简单修改、等同变化与修饰,均仍属于本发明技术方案的范围内。The above description is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Anyone familiar with this field Those skilled in the art, without departing from the scope of the technical solution of the present invention, may use the technical content disclosed above to make some changes or modify equivalent embodiments with equivalent changes, but as long as they do not depart from the technical solution of the present invention, according to the technical content of the present invention Any simple modifications, equivalent changes and modifications made to the above embodiments by the technical essence still belong to the scope of the technical solution of the present invention.
Claims (12)
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310655495.7A CN104699700A (en) | 2013-12-05 | 2013-12-05 | Searching method and device |
| CN201811435061.5A CN109325184A (en) | 2013-12-05 | 2013-12-05 | Search method and device |
| PCT/CN2014/092657 WO2015081824A1 (en) | 2013-12-05 | 2014-12-01 | Method and apparatus for searching |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310655495.7A CN104699700A (en) | 2013-12-05 | 2013-12-05 | Searching method and device |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811435061.5A Division CN109325184A (en) | 2013-12-05 | 2013-12-05 | Search method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN104699700A true CN104699700A (en) | 2015-06-10 |
Family
ID=53272877
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310655495.7A Pending CN104699700A (en) | 2013-12-05 | 2013-12-05 | Searching method and device |
| CN201811435061.5A Pending CN109325184A (en) | 2013-12-05 | 2013-12-05 | Search method and device |
Family Applications After (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811435061.5A Pending CN109325184A (en) | 2013-12-05 | 2013-12-05 | Search method and device |
Country Status (2)
| Country | Link |
|---|---|
| CN (2) | CN104699700A (en) |
| WO (1) | WO2015081824A1 (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105205137A (en) * | 2015-09-16 | 2015-12-30 | 百度在线网络技术(北京)有限公司 | Searching method and device |
| CN105320768A (en) * | 2015-10-28 | 2016-02-10 | 小米科技有限责任公司 | Search method and apparatus |
| CN106125937A (en) * | 2016-06-30 | 2016-11-16 | 联想(北京)有限公司 | A kind of information processing method and processor |
| CN106610731A (en) * | 2016-12-02 | 2017-05-03 | 珠海市魅族科技有限公司 | Character string input system and method |
| CN106775401A (en) * | 2016-12-14 | 2017-05-31 | 深圳铂睿智恒科技有限公司 | The method for fast searching of intelligent terminal, system and intelligent terminal |
| CN106970848A (en) * | 2017-03-29 | 2017-07-21 | 联想(北京)有限公司 | Input control method, device and electronic equipment |
| CN110618845A (en) * | 2018-06-20 | 2019-12-27 | 优视科技有限公司 | Application search page interaction method and device, storage medium and terminal |
| CN111873801A (en) * | 2020-07-31 | 2020-11-03 | 科大讯飞股份有限公司 | Vehicle information prompting method, device and equipment based on vehicle-mounted input method |
| WO2023051076A1 (en) * | 2021-09-29 | 2023-04-06 | 北京字跳网络技术有限公司 | Search result display method and apparatus, computer device, and storage medium |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110069680A (en) * | 2019-04-28 | 2019-07-30 | 努比亚技术有限公司 | Search processing method, mobile terminal and computer readable storage medium |
| CN112445983B (en) * | 2019-09-03 | 2023-09-26 | 百度在线网络技术(北京)有限公司 | Method, device and equipment for processing search results and computer readable storage medium |
| CN114201099A (en) * | 2020-09-01 | 2022-03-18 | 北京达佳互联信息技术有限公司 | Display method and device of search prompt information, electronic equipment and storage medium |
| CN113010763B (en) * | 2021-03-18 | 2025-01-21 | 北京小米移动软件有限公司 | Search method, device, mobile terminal and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101178712A (en) * | 2006-12-08 | 2008-05-14 | 腾讯科技(深圳)有限公司 | Method and system for mobile terminal searching network |
| CN101452453A (en) * | 2007-11-29 | 2009-06-10 | 北京搜狗科技发展有限公司 | Input method web site navigation method and input method system |
| US20130006957A1 (en) * | 2011-01-31 | 2013-01-03 | Microsoft Corporation | Gesture-based search |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103999028B (en) * | 2011-05-23 | 2018-05-15 | 微软技术许可有限责任公司 | Invisible control |
| CN102880711B (en) * | 2012-09-27 | 2016-08-03 | 北京奇虎科技有限公司 | Browser address bar inputs processing method and the processing means of data |
| CN102930058B (en) * | 2012-11-21 | 2016-01-06 | 北京奇虎科技有限公司 | A kind of method and apparatus realizing searching in the address field of browser |
| CN102982174B (en) * | 2012-12-17 | 2016-07-06 | 北京奇虎科技有限公司 | A kind of browser carries out method and the device of Webpage search |
| CN103064595A (en) * | 2012-12-24 | 2013-04-24 | 北京百度网讯科技有限公司 | Method and system for searching mobile application, and mobile terminal |
-
2013
- 2013-12-05 CN CN201310655495.7A patent/CN104699700A/en active Pending
- 2013-12-05 CN CN201811435061.5A patent/CN109325184A/en active Pending
-
2014
- 2014-12-01 WO PCT/CN2014/092657 patent/WO2015081824A1/en not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101178712A (en) * | 2006-12-08 | 2008-05-14 | 腾讯科技(深圳)有限公司 | Method and system for mobile terminal searching network |
| CN101452453A (en) * | 2007-11-29 | 2009-06-10 | 北京搜狗科技发展有限公司 | Input method web site navigation method and input method system |
| US20130006957A1 (en) * | 2011-01-31 | 2013-01-03 | Microsoft Corporation | Gesture-based search |
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017045277A1 (en) * | 2015-09-16 | 2017-03-23 | 百度在线网络技术(北京)有限公司 | Search method, device and apparatus, and non-volatile computer storage medium |
| CN105205137A (en) * | 2015-09-16 | 2015-12-30 | 百度在线网络技术(北京)有限公司 | Searching method and device |
| CN105320768A (en) * | 2015-10-28 | 2016-02-10 | 小米科技有限责任公司 | Search method and apparatus |
| CN106125937A (en) * | 2016-06-30 | 2016-11-16 | 联想(北京)有限公司 | A kind of information processing method and processor |
| CN106125937B (en) * | 2016-06-30 | 2019-05-31 | 联想(北京)有限公司 | A kind of information processing method and processor |
| CN106610731B (en) * | 2016-12-02 | 2019-12-24 | 珠海市魅族科技有限公司 | Character string input system and method |
| CN106610731A (en) * | 2016-12-02 | 2017-05-03 | 珠海市魅族科技有限公司 | Character string input system and method |
| CN106775401A (en) * | 2016-12-14 | 2017-05-31 | 深圳铂睿智恒科技有限公司 | The method for fast searching of intelligent terminal, system and intelligent terminal |
| CN106970848A (en) * | 2017-03-29 | 2017-07-21 | 联想(北京)有限公司 | Input control method, device and electronic equipment |
| CN106970848B (en) * | 2017-03-29 | 2022-04-22 | 联想(北京)有限公司 | Input control method and device and electronic equipment |
| CN110618845A (en) * | 2018-06-20 | 2019-12-27 | 优视科技有限公司 | Application search page interaction method and device, storage medium and terminal |
| CN111873801A (en) * | 2020-07-31 | 2020-11-03 | 科大讯飞股份有限公司 | Vehicle information prompting method, device and equipment based on vehicle-mounted input method |
| CN111873801B (en) * | 2020-07-31 | 2021-07-02 | 科大讯飞股份有限公司 | Vehicle information prompting method, device and equipment based on vehicle-mounted input method |
| WO2023051076A1 (en) * | 2021-09-29 | 2023-04-06 | 北京字跳网络技术有限公司 | Search result display method and apparatus, computer device, and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2015081824A1 (en) | 2015-06-11 |
| CN109325184A (en) | 2019-02-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104699700A (en) | Searching method and device | |
| US9930167B2 (en) | Messaging application with in-application search functionality | |
| US9495339B2 (en) | Method and apparatus for displaying information in a browser | |
| CN106874390B (en) | Browser history record viewing method and terminal | |
| CN102411469B (en) | Method for displaying Internet web pages and mobile terminal using the method | |
| CN103914502B (en) | The method and its terminal of the intelligent search service of use situation identification | |
| CN110989847B (en) | Information recommendation method, device, terminal equipment and storage medium | |
| CN108470041A (en) | A kind of information search method and mobile terminal | |
| CN108496150A (en) | A kind of method and terminal of screenshot capture and reading | |
| CN111316618B (en) | Network page storage method and terminal | |
| CN105094861A (en) | Webpage application program loading method, device and system | |
| WO2015027787A1 (en) | Method and device for retrieval in touchscreen device | |
| JP2016522483A (en) | Page rollback control method, page rollback control device, terminal, program, and recording medium | |
| US10956653B2 (en) | Method and apparatus for displaying page and a computer storage medium | |
| CN105095253B (en) | Webpage display method and device | |
| CN109190076A (en) | Page collecting method, device, storage medium and electronic equipment | |
| CN104216929A (en) | Method and device for intercepting page elements | |
| KR20140100315A (en) | Mobile terminal and control method thereof | |
| WO2019079958A1 (en) | File management method and apparatus, mobile terminal and computer readable storage medium | |
| CN107992615A (en) | A kind of network address recommends method, server and terminal | |
| CN108804615B (en) | Sharing method and server | |
| CN110020335B (en) | Favorite processing method and device | |
| US20130282686A1 (en) | Methods, systems and computer program product for dynamic content search on mobile internet devices | |
| CN105740242A (en) | Information search device and method based on two-dimension code, and mobile terminal | |
| CN107784037B (en) | Information processing method and device, and device for information processing |
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 |