WO2019000724A1 - Search method, electronic device, and non-volatile storage medium - Google Patents

Search method, electronic device, and non-volatile storage medium Download PDF

Info

Publication number
WO2019000724A1
WO2019000724A1 PCT/CN2017/107104 CN2017107104W WO2019000724A1 WO 2019000724 A1 WO2019000724 A1 WO 2019000724A1 CN 2017107104 W CN2017107104 W CN 2017107104W WO 2019000724 A1 WO2019000724 A1 WO 2019000724A1
Authority
WO
WIPO (PCT)
Prior art keywords
search
window
windows
display
display position
Prior art date
Application number
PCT/CN2017/107104
Other languages
French (fr)
Chinese (zh)
Inventor
许奔
Original Assignee
联想(北京)有限公司
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 联想(北京)有限公司 filed Critical 联想(北京)有限公司
Publication of WO2019000724A1 publication Critical patent/WO2019000724A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying

Definitions

  • the present disclosure relates to the field of information technology, and in particular, to a search method, an electronic device, and a non-volatile storage medium.
  • embodiments of the present disclosure are expected to provide a search method, an electronic device, and a non-volatile storage medium, at least partially solving the problem of long information search time and low efficiency.
  • a first aspect of the embodiments of the present disclosure provides a search method, where the foregoing method includes:
  • the foregoing method further includes:
  • the above search box independent of the plurality of windows in the active state described above is called in a preset manner.
  • the foregoing method further includes:
  • the foregoing method further includes:
  • a plurality of windows corresponding to the search instruction corresponding to the search box are determined.
  • the foregoing multiple windows in an active state include:
  • At least two windows of the same application that are active are active
  • At least two windows of an active state of different applications At least two windows of an active state of different applications.
  • the foregoing obtaining multiple windows in an active state includes:
  • determining that the nth active window is in response to the search box a window of the search command determining that the nth active window is in response to the search box a window of the search command; wherein, n is an integer integer less than N; and N is the total number of windows in the active state.
  • determining whether the relative positional relationship between the first display position and the second display position of the nth active window meets the preset positional relationship includes:
  • determining whether the relative positional relationship between the first display position and the second display position of the nth active window is satisfying the preset position includes:
  • the search box When the search box is overlaid on the nth active window, it is determined that the first display position of the search and the second display position of the nth active window satisfy the preset position relationship.
  • the foregoing method further includes:
  • the first display position of the search box is changed in response to the moving operation.
  • a second aspect of the embodiments of the present disclosure provides an electronic device, including:
  • a processor coupled to the display for performing one or more of the search methods of the foregoing techniques by executing a computer program.
  • a third aspect of the embodiments of the present disclosure provides an electronic device, including: a processor and a computer program;
  • the above processor is configured to perform one or more of the foregoing methods in the foregoing embodiments by executing the above computer program.
  • a fourth aspect of the embodiments of the present disclosure provides a nonvolatile storage medium, wherein the nonvolatile storage medium stores a computer program, and after the computer program is executed, one or more of the foregoing methods can be executed.
  • a fifth aspect of the embodiments of the present disclosure provides another electronic device, including:
  • a detection unit for responding to search instructions :
  • a first obtaining unit configured to obtain a key character input by a user in the search box
  • a second obtaining unit configured to obtain a plurality of windows in an active state, where each of the plurality of windows in the active state respectively corresponds to a display content that has been loaded for window output;
  • a searching unit configured to perform a search based on the key characters and the plurality of windows, to generate a first search result
  • an output unit configured to output the first search result, where the first search result is used to indicate a first window that matches the key character on the display content corresponding to the plurality of windows in the active state.
  • the electronic device further includes: an invoking unit, configured to invoke, in a preset manner, the search box that is independent of the plurality of windows in the active state.
  • an invoking unit configured to invoke, in a preset manner, the search box that is independent of the plurality of windows in the active state.
  • the multiple windows in the active state include: at least two windows in an active state of the same application; and/or at least two windows in an active state of different applications.
  • the searching unit is further configured to obtain a second search result based on the key characters and the application identifier of the unactivated application;
  • the foregoing electronic device further includes:
  • a first detecting unit configured to detect a selection operation input by the user
  • a determining unit configured to determine, according to the foregoing selecting operation, a plurality of windows corresponding to the search instruction corresponding to the search box.
  • the output unit is further configured to output the second search result, where the second search result is used to indicate the first application identifier in the un-activated application identifier, where the server corresponding to the first application identifier has the foregoing
  • the key characters match the content.
  • the second acquiring unit may be configured to acquire a first display position of the search box, obtain a second display position of the plurality of active windows, and determine the first display position and the nth active state. Whether the relative positional relationship of the second display position of the window satisfies the preset positional relationship; when the relative positional relationship between the first display position and the second display position of the nth active window satisfies the preset positional relationship And determining that the nth active window is a window responsive to the search instruction corresponding to the search box.
  • the search method, the electronic device and the non-volatile storage medium provided by the embodiments of the present disclosure obtain key characters according to the content acquired in the search box; and then match the key characters with the display contents of the plurality of windows in an active state. , thereby obtaining search results; outputting corresponding search results.
  • cross-window search within the electronic device is achieved.
  • the user only needs to input the content to be searched in the search box, and the electronic device automatically searches in these windows and returns the search result.
  • the user does not need to switch windows one by one, and input search keywords one by one to search, greatly improving
  • the search efficiency reduces the time consumed by the search and simplifies the user operation; thereby improving the intelligence of the electronic device and the satisfaction of the user.
  • FIG. 1 is a schematic flowchart diagram of a search method according to an embodiment of the present disclosure
  • FIG. 2A is a schematic diagram of display of a first search box according to an embodiment of the present disclosure
  • 2B is a schematic diagram showing display of a second search box according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of display of a third search box according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of displaying a fourth search box according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic flowchart diagram of another search method according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of another electronic device according to an embodiment of the present disclosure.
  • the techniques of this disclosure may be implemented in the form of hardware and/or software (including firmware, microcode, etc.). Additionally, the techniques of this disclosure may take the form of a computer program product on a computer readable medium storing instructions for use by or in connection with an instruction execution system.
  • a computer readable medium can be any medium that can contain, store, communicate, propagate or transport the instructions.
  • a computer readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium.
  • the computer readable medium include: a magnetic storage device such as a magnetic tape or a hard disk (HDD); an optical storage device such as a compact disk (CD-ROM); a memory such as a random access memory (RAM) or a flash memory; and/or a wired /Wireless communication link.
  • a magnetic storage device such as a magnetic tape or a hard disk (HDD)
  • an optical storage device such as a compact disk (CD-ROM)
  • a memory such as a random access memory (RAM) or a flash memory
  • RAM random access memory
  • this embodiment provides a search method, where the method includes:
  • Operation S110 responding to the search instruction.
  • Operation S120 Acquire key characters input by the user in the search box.
  • Operation S130 Acquiring a plurality of windows in an active state, each of the plurality of windows in the active state respectively corresponding to the display content for window output that has been loaded.
  • Operation S140 performing a search based on the key characters and the plurality of windows to generate a first search result.
  • Operation S150 outputting the first search result, where the first search result is used to indicate a first window that matches the key character on the display content corresponding to the plurality of windows in the active state.
  • the search method provided by this embodiment may be a search method applied to various user terminals.
  • the user terminal may include a wearable device such as a desktop personal computer (PC), a notebook computer, a tablet computer, or a mobile phone.
  • PC personal computer
  • notebook computer a notebook computer
  • tablet computer a tablet computer
  • mobile phone a mobile phone
  • the operation S110 may include:
  • a human-computer interaction interface eg, a physical keyboard, a virtual keyboard, a voice collection interface
  • An automatic search command that detects the user input of the search or detects a new content in the search box to obtain a trigger.
  • the operation S120 may specifically include:
  • the key character is acquired based on the content input by the user, for example, the subject matter of the content input by the user is extracted.
  • all of the content received by the box can be searched for as the key character.
  • the content input by the user is processed by a word bag method or the like to extract key information as the key character.
  • a window that is turned on and in an active state in the current state of the electronic device is acquired in operation S130.
  • the window in the active state in this embodiment may include: a window in which the device starts and completes content loading.
  • the electronic device detects switching from one window A to another window B in an active state, the electronic device directly displays the window B after the switching operation, and can display the display content in the window B without regenerating one.
  • the window fills the display with the contents of the window.
  • the window in the active state in the embodiment may be a window in which the electronic device has been started and the content is loaded.
  • the electronic device does not have processing threads allocated by the windows, and the processing threads are active or In the standby state, if window switching or processing related to the window operation is performed, the electronic device does not need to additionally allocate resources (for example, storage resources and/or computing resources) to the window, and may utilize the already allocated resources (for example, The established thread) operates directly on the window.
  • resources for example, storage resources and/or computing resources
  • the window in the active state may be a window in the foreground of the electronic device, for example, displayed on the topmost layer of the display interface, a window that can be directly viewed and operated by the user, or may be in a window in the background. The user can switch through the window without having to re-create the created window with the window re-established.
  • the display state of the active windows may include: displaying on the desktop in the form of a window, displaying on the desktop in the form of an icon, or displaying the minimized window on the taskbar of the desktop.
  • the background window in an active state may not be displayed at present. If the current electronic device is in the small window display mode, that is, the display area of the window provided by the electronic device is smaller than the display area of the display screen, the background window in the active state may be the window covered by the foreground window.
  • the key characters in the search box are matched and searched with the display contents in the plurality of windows in the active state to obtain the first search result.
  • the first search result herein may include: information such as search success, search failure, and the like.
  • the first search result may include: a window identifier matching the key character, and a display content matching the key character in the window.
  • the outputting the first search result herein includes: displaying the first search result, and/or outputting the first search result by voice.
  • the operation S150 may include:
  • the window successfully matched with the key character can be directly displayed.
  • the first window herein may be a window having a display content and the key character satisfying the preset matching relationship.
  • the first window may be a newly generated dedicated window for displaying a search result, for example, displaying a matching relationship with the key character in the first window (ie, satisfying the preset matching relationship) )
  • a dedicated window for displaying content may also be a display window displaying the search box.
  • the operation S150 may further include: when the search fails, the prompt information of the search failure may be displayed on the search page displaying the search box.
  • the user can search for other content in the other internal window through the search window in the electronic device.
  • user A is using a computer to write a thesis
  • writing a thesis opens the document window 1, and also opens the document window 2 and the document window 3 and the webpage window 1.
  • the document windows 1 to 3 and the webpage window 1 there may be a user A writing a thesis.
  • Required reference material If in the prior art, the user A needs to find the corresponding content to provide reference for the paper writing, the user may need to switch the foreground window to the document window 2 and the document window 3 and the webpage window 1 in turn, and then view in the window.
  • the user can directly input the content related to the search by using the search box, and the electronic device acquires the key characters, and automatically searches the document window 2 and the document window 3 and the web window 1 to generate corresponding search results. And the search results are outputted.
  • the user does not need to manually switch each window and view and search one by one in the corresponding window, which obviously improves the efficiency and intelligence of the search, simplifies the user operation, and improves the user experience and Electronic device intelligence.
  • the searching method further includes:
  • the search box that is independent of the plurality of windows in the active state is called in a preset manner.
  • the search box is independent of the searched window, and is not belonging to any of the active windows, and is an external search box of the window in the active state.
  • the external search box can be a search box for searching for an application within a device installed within the operating system, or a system search box within the operating system.
  • the active window includes an externally called search interface, and the external search box can be docked with the window through the search interface to deliver key characters to the window for information related to the displayed content in the window. Matching the search and returning to the search program corresponding to the external search box through the search interface to correspond to the search result of the single window of the window.
  • the correspondence between the search box and the window is not limited thereto.
  • the search box may be a system search box set in an operating system of the electronic device; when searching by the operating system, there may be no need to set a search for information interaction between the search box and the window on each window. interface.
  • the operating system may obtain a storage area of the display content of each window in an active state, and the operating system matches the key characters of the search box to the corresponding storage area and the display contents of the active windows, and then generates The first search result.
  • the operating system may copy the display content in the active window to the search cache area, mark the source window of each display content, and then unify the key character and the search cache. The display content in the area is search-matched, and then a search matching result with the display content of each window is obtained, thereby generating the first search result.
  • the search box is independent of each searched window, and is an external search box of the searched windows in an active state.
  • the external search box can be a search box provided for the search application inside the device, or an internal search component of the operating system.
  • the operating system here can be a widows operating system or an Android operating system or an Apple (iOS) operating system.
  • the preset mode is invoked, which may be various ways of starting the search box. Several options are provided below:
  • the search box may be a sliding frame or an upper sliding frame; the display of the sliding frame or the upper sliding frame may include: detecting a sliding operation on the desktop of the operating system, and displaying the sliding frame if a sliding operation is detected; or On the desktop of the operating system, the sliding operation is detected, and if the sliding operation is detected, the upper sliding frame is displayed.
  • invoking the search box may include: launching the in-device search application.
  • FIG. 2A is a schematic diagram showing the display of a sliding frame
  • FIG. 2B is a schematic diagram showing the display of an upper sliding frame.
  • the system search box is invoked through a pull-down menu of the operating system, or through a pull-up menu of the operating system.
  • the drop-down menu here may be in a window, the user pops up a drop-down menu by clicking on a blank space in the document window 1 as described above, and a control for calling the search box may be set in the drop-down menu.
  • This drop-down menu is a drop-down menu within the app.
  • the search box is called, at least part of the search box is suspended and displayed on the uppermost layer of the electronic device display interface, so that the user can input the content that he wants to search at any time, thereby facilitating all subsequent searches.
  • Search for content For example, when the user wants to search, the user can search for the content inside the electronic device by inputting the search box to activate the search box and input the content that he wants to search in the search box.
  • a control for scheduling the search box may be set in a pull-up menu of the operating system.
  • the search box is scheduled in a preset manner, and is a window formed by a program module that is independent of the window in the active state, and the scheduling manner is not limited to any one of the above.
  • the method further includes:
  • Operation S160 obtaining a second search result based on the key character and an application identifier of the unactivated application
  • Operation S170 outputting the second search result, where the second search result is used to indicate the first application identifier in the un-activated application identifier, where the server corresponding to the first application identifier has The content of the key characters is matched.
  • the second search result is obtained based on the search box and the application identifier that is not activated.
  • the second search result is output.
  • the content currently searched by the user may be in an application that is not started, but since the application is not activated, the electronic device may not have a way to directly return the display content having a matching relationship with the key character, so that the application identifier of the corresponding application is used as The second search result is outputted, so that the user can obtain the information that he wants to search by starting the corresponding application.
  • the method further includes:
  • the method further includes detecting a selection operation input by the user, where the selecting operation may be selecting a window that responds to the search instruction corresponding to the search box.
  • the window corresponding to the search instruction is the object to be searched, that is, the window to be searched.
  • the window in the active state of the current electronic device includes M, and according to the selection operation input by the user, N of them may be used as the searched window in response to the search instruction.
  • the window identifier of the currently active window may be displayed on the display page of the search box, and some or all of the active states may be selected by detecting a check box of the corresponding window that is input by the user.
  • the window serves as a window for responding to the search command corresponding to the search box. If the user does not check the corresponding window, by default, the search command searches all windows that have a corresponding relationship with the search box, that is, searches all windows.
  • the multiple windows in the active state include:
  • At least two windows of the same application that are active are active
  • At least two windows of an active state of different applications At least two windows of an active state of different applications.
  • the plurality of windows may be different windows of the same application, for example, multiple windows opened by the word application respectively.
  • the plurality of windows may be windows of different applications, such as a webpage window of a webpage, an application window of a social application, or a reading window of a reading application, and the like.
  • the window that is searched once in this embodiment may include: at least two windows of one application, and different windows of at least two applications.
  • the search instruction corresponding to the search box may be directed to multiple or multiple windows, and has a wide searchable range.
  • the operation S130 may further include:
  • n is a positive integer smaller than N
  • N is the total number of windows in an active state.
  • the window of the response search instruction is determined based on the user's selection operation, that is, the searched window is determined based on the user's selection operation.
  • the electronic device automatically determines the window being searched. For example, first obtaining a first display position of the search box, and then acquiring a second display position of the plurality of active windows, and automatically determining the searched window based on the relative positional relationship between the first display position and the second display position. .
  • the search box can be a search box that is displayed in a hover.
  • the floating display here can be displayed on the top layer.
  • the window being searched for may be a window that is at least partially covered by the search box.
  • the search box may be used. The distance from the window determines whether the corresponding window is a window that needs to respond to the search instruction.
  • determining whether the relative positional relationship between the first display position and the second display position of the nth active window satisfies a preset positional relationship includes:
  • the erroneous search is reduced, and when the display ratio of the coverage of the cable frame displayed on the at least one application window of the first application is greater than a preset ratio, determining that all the first applications are in the The second display position of the active state window and the first display position satisfy the preset position relationship; wherein, the display area of the N active windows is smaller than the display area of the display screen.
  • the preset ratio is 0.3. If the current application A has 3 active windows, wherein the search box is overlaid on one or more windows of the application A, the maximum window of the current coverage area of the search box is selected, and the calculation is performed.
  • the display scale is displayed. For example, if the search box has a 50% coverage on the window, it can be considered that, if it is greater than the preset ratio of 0.3, it can be considered that all the currently active windows of the application A are windows to be searched.
  • the display ratio may be 0.3, 0.4, 0.5, 0.6, preferably 0.5 or more.
  • determining whether the relative positional relationship between the first display position and the second display position of the nth active window meets a preset positional relationship includes:
  • the confidant is concerned with which windows the search box covers, and all the windows that are covered and in an active state are windows that need to be searched.
  • the method further includes:
  • the first display position of the search box is changed in response to the moving operation.
  • the search box is movable, and the search box may be moved based on a user's finger sliding operation, a mouse moving operation, etc., and then based on the position of the search box, it may be automatically determined which windows are needed.
  • the window of the search instruction is responsive to enable automatic confirmation of the searched window.
  • the method may further include:
  • the operation of moving the search box may be one of the aforementioned selection operations.
  • the selection of the window in response to the search instruction corresponding to the search box may also be implemented directly by selecting an application.
  • the method further includes: detecting a second operation of selecting the specified application, obtaining a second operation parameter; determining, according to the second operation parameter, an application that responds to the search instruction corresponding to the search box, the application is at The window of the active state is the window that needs to respond to the search instruction corresponding to the search box.
  • the application that responds to the search instruction corresponding to the box may be configured based on user input, or may be remotely configured based on a server, so the method may further include:
  • the windows are all windows that need to respond to the search command corresponding to the search box.
  • the embodiment provides an electronic device, including:
  • the detecting unit 110 is configured to respond to the search instruction:
  • a first obtaining unit 120 configured to obtain a key character input by a user in the search box
  • a second obtaining unit 130 configured to obtain a plurality of windows in an active state, each of the plurality of windows in the active state respectively corresponding to the display content that has been loaded for window output;
  • the searching unit 140 is configured to perform a search based on the key characters and the plurality of windows to generate a first search result
  • the output unit 150 is configured to output the first search result, where the first search result is used to indicate a first window that matches the key character on the display content corresponding to the plurality of windows in the active state.
  • the embodiment provides an electronic device, which can search for a plurality of display contents in a window in an active state by using a window in the electronic device, and output a response search result, so that the user can implement multiple in one search box.
  • Window cross-window information search to improve the efficiency of information search and the intelligence of electronic devices.
  • the detecting unit 110 and the first obtaining unit 120 may include: a human-computer interaction interface, and may include: a keyboard, a mouse, a voice collection and recognition module, or a touch panel, etc., and may be used to extract content input by the user.
  • the first obtaining unit 120 may further include: a processor or a processing circuit that extracts the key characters by information processing.
  • the second obtaining unit 130 and the searching unit 140 may correspond to a processor or a processing circuit, and may correspond to a processor or a processing circuit, and may be used to implement confirmation of the window in an active state, and the key
  • the characters are the search basis, and the display contents in these windows are searched, and corresponding search results are generated.
  • the output unit 150 may correspond to a display screen, and the display screen may be an electronic ink display screen, an organic light-emitting secondary light OLED display frequency, a projection display screen or a liquid crystal display screen, etc., and the first search may be output through display result.
  • the electronic device further includes:
  • a calling unit configured to invoke the search that is independent of the plurality of windows in an active state according to a preset manner frame.
  • the searching unit 140 is further configured to obtain a second search result based on the key characters and an application identifier of the unactivated application;
  • the output unit 150 is further configured to output the second search result, where the second search result is used to indicate a first application identifier in the unactivated application identifier, where the first application identifier corresponds to The server has content that matches the key characters.
  • the electronic device further includes:
  • a first detecting unit configured to detect a selection operation input by the user
  • a determining unit configured to determine, according to the selecting operation, a plurality of windows corresponding to the search instruction corresponding to the search box.
  • the plurality of windows in an active state include: at least two windows in an active state of the same application; and/or at least two windows in an active state of different applications.
  • the second obtaining unit may be configured to acquire a first display position of the search box, acquire a second display position of the plurality of active windows, and determine that the first display position and the nth position are Whether a relative positional relationship of the second display position of the active state window satisfies a preset positional relationship; a relative positional relationship of the first display position and the second display position of the nth active window is satisfied When the preset positional relationship is determined, determining that the nth active window is a window that responds to the search instruction corresponding to the search box.
  • the embodiment of the present disclosure further provides another electronic device, including:
  • the processor 220 is coupled to the display 210 for performing one or more of the search methods provided by the foregoing embodiments by executing a computer program.
  • the display 210 can be a display device that can display information, such as a liquid crystal display, an electronic ink display, a projection display, or an organic light emitting diode (OLED) display, and can be specifically used to display the window and the search box.
  • information such as a liquid crystal display, an electronic ink display, a projection display, or an organic light emitting diode (OLED) display, and can be specifically used to display the window and the search box.
  • OLED organic light emitting diode
  • the electronic device further includes: a memory, which may be a non-volatile storage medium storing various information, for example, may be used to store the computer program, or store each active state The display content in the window below, the status mark of each window, and so on.
  • a memory which may be a non-volatile storage medium storing various information, for example, may be used to store the computer program, or store each active state The display content in the window below, the status mark of each window, and so on.
  • the processor 220 can be a central processing unit, a microprocessor, a digital signal processor, a programmable array or an application processor, etc., and the processing circuit can be an application specific integrated circuit or the like.
  • the display 210 and the processor 220 are connected by a bus interface 230 such as an integrated circuit bus, and can realize the interworking of information and instructions.
  • a bus interface 230 such as an integrated circuit bus
  • the processor can implement one or more of the foregoing search methods by computer level execution.
  • the electronic device further includes an external communication interface 240 that can be used for information interaction between the electronic device and other electronic devices, the external communication interface 240 can correspond to a network interface or the like.
  • the electronic device provided in this embodiment may be various electronic devices such as a mobile phone, a notebook computer, a desktop computer, a tablet computer, or an e-book.
  • This embodiment further provides another electronic device, including: a processor and a computer program;
  • the processor is configured to execute one or more search methods provided by the foregoing embodiments by executing the computer program.
  • the processor may also be a central processing unit, a microprocessor, a digital signal processor, a programmable array or an application processor, etc.
  • the processing circuit may be an information processing function device such as an application specific integrated circuit. And / or circuit.
  • the computer program is executable code running on the processor, and the processor can implement the search method provided by one or more of the foregoing technical solutions by executing the computer program to implement an internal electronic device.
  • the information search in the window of the search box in multiple active states realizes the search of information inside the electronic device across the window, and has the characteristics of high search efficiency and simple implementation.
  • the embodiment of the present disclosure further provides a non-volatile storage medium, where the non-volatile storage medium stores a computer program, and after the computer program is executed, one or more of the foregoing embodiments may be provided. Search method.
  • the non-volatile storage medium provided by the embodiment of the present disclosure may be a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk a magnetic disk
  • optical disk a medium or the like that can store program code.
  • the non-volatile storage medium may be a non-transitory storage medium, and the computer program may be non-volatilely stored to ensure that the computer program can still be read and executed after power-off and power-on.
  • This example provides a quick way to match a search within a window, including:
  • the information search operation is simple and more suitable for existing needs, the operation mode is rich, the amount of interactive information is large, the search is more humanized, and the intelligent characteristics of electronic devices such as mobile phones are added.
  • This example provides a search method primarily in that the search is for at least one running program that has already been run. For example, When writing a thesis, you need to find a lot of information, and open multiple web pages or multiple different application interfaces to view the content. If the user writes a certain point of view when writing, the search function is started, and the keyword is input, and the result of the search will be the part related to the keyword corresponding to the content displayed on the plurality of web pages or the plurality of different applications.
  • a search box that can search across windows is provided, and when a key character input by the user in the search box is detected, the key character is combined with multiple web pages and/or multiple applications.
  • the displayed content is subjected to comparison of key characters, and the information content satisfying the matching degree requirement after the comparison is output as a search result of the cross-window search in the electronic device.
  • the plurality of windows may be a plurality of different windows corresponding to an application.
  • the browser application may correspond to a plurality of different windows, and the document editing application (for example, word) may start a plurality of words corresponding to one window; It can be a separate window for multiple different applications.
  • multiple windows searched at one time may also include different windows of different applications, and cross-application search may be implemented. Of course, this search can also search for a combination of the above two cases. 1.
  • a window of a plurality of different pages that have been loaded in an application that is already in a working state (a window corresponding to different pages that can be loaded by multiple operations of the user), that is, an application spans multiple different pages.
  • Window 2, the window corresponding to the application that is already working, that is, the window across different applications.
  • the result of the search is also a display of matching the display of the successful application or/and the corresponding content of the successfully matched application in the screen for at least one running program that has been run.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
  • the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit;
  • the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

Abstract

Provided are a search method, an electronic device, and a non-volatile storage medium. The search method comprises: responding to a search instruction (S110); acquiring a key character entered in a search box by a user (S120); acquiring multiple windows in an active state, the multiple windows in the active state having respective corresponding displayed contents which have been loaded for output therefrom (S130); performing a search operation on the basis of the key character and the multiple windows to generate a first search result (S140); and outputting the first search result (S150), the first search result indicating, among the multiple windows in the active state, a first window having the corresponding displayed content which matches the key character.

Description

搜索方法、电子设备及非易失性存储介质Search method, electronic device, and non-volatile storage medium 技术领域Technical field
本公开涉及信息技术领域,尤其涉及一种搜索方法、电子设备及非易失性存储介质。The present disclosure relates to the field of information technology, and in particular, to a search method, an electronic device, and a non-volatile storage medium.
背景技术Background technique
随着信息技术的发展,电子设备内部出现的应用越来越多,显示应用图标及窗口的桌面页也随着应用的增多而增多,这样用户若需要搜索一个信息时,需要到对应的窗口或应用中逐一进行搜索,显然这会导致窗口的频繁切换、信息搜索的时间长、效率低及用户操作繁琐等各种问题。With the development of information technology, more and more applications appear inside electronic devices, and the desktop pages displaying application icons and windows are also increasing with the increase of applications, so that if users need to search for a certain information, they need to go to the corresponding window or Searching one by one in the application, obviously this will lead to various problems such as frequent switching of windows, long time for information search, low efficiency, and cumbersome user operations.
发明内容Summary of the invention
有鉴于此,本公开实施例期望提供一种搜索方法、电子设备及非易失性存储介质,至少部分解决上述信息搜索时间长及效率低的问题。In view of this, embodiments of the present disclosure are expected to provide a search method, an electronic device, and a non-volatile storage medium, at least partially solving the problem of long information search time and low efficiency.
为达到上述目的,本公开的技术方案是这样实现的:To achieve the above object, the technical solution of the present disclosure is implemented as follows:
本公开实施例第一方面提供一种搜索方法,上述方法包括:A first aspect of the embodiments of the present disclosure provides a search method, where the foregoing method includes:
响应搜索指令:Respond to search instructions:
获取搜索框内的用户输入的关键字符;Get the key characters entered by the user in the search box;
获取处于活跃状态的多个窗口,上述处于活跃状态的多个窗口的每一个窗口各自对应有已经加载的用于窗口输出的显示内容;Obtaining a plurality of windows in an active state, each of the plurality of windows in the active state respectively corresponding to the display content that has been loaded for window output;
基于上述关键字符以及上述多个窗口进行搜索,产生第一搜索结果;Searching based on the above key characters and the plurality of windows, generating a first search result;
输出上述第一搜索结果,上述第一搜索结果用于指示上述处于活跃状态的多个窗口中所对应的显示内容上与上述关键字符匹配的第一窗口。And outputting the first search result, where the first search result is used to indicate a first window that matches the key character on the display content corresponding to the plurality of windows in the active state.
可选地,上述方法还包括:Optionally, the foregoing method further includes:
按照预设方式调用与上述处于活跃状态的多个窗口相互独立的上述搜索框。The above search box independent of the plurality of windows in the active state described above is called in a preset manner.
可选地,上述方法还包括:Optionally, the foregoing method further includes:
基于上述关键字符以及未启动应用的应用标识,获得第二搜索结果;Obtaining a second search result based on the above key characters and an application identifier of the unactivated application;
输出上述第二搜索结果,上述第二搜索结果用于指示上述未启动的应用标识中的第一应用标识,其中,上述第一应用标识所对应的服务器上具有与上述关键字符匹配的内容。And outputting the second search result, where the second search result is used to indicate the first application identifier in the un-activated application identifier, where the server corresponding to the first application identifier has content that matches the key character.
可选地,上述方法还包括:Optionally, the foregoing method further includes:
检测用户输入的选择操作;Detecting user input selection operations;
根据上述选择操作,确定用于响应上述搜索框所对应的搜索指令对应的多个窗口。 According to the above selection operation, a plurality of windows corresponding to the search instruction corresponding to the search box are determined.
可选地,上述处于活跃状态的多个窗口,包括:Optionally, the foregoing multiple windows in an active state include:
同一应用的处于活跃状态的至少两个窗口;At least two windows of the same application that are active;
和/或,and / or,
不同应用的处于活跃状态的至少两个窗口。At least two windows of an active state of different applications.
可选地,上述获取处于活跃状态的多个窗口,包括:Optionally, the foregoing obtaining multiple windows in an active state includes:
获取上述搜索框的第一显示位置;Obtaining the first display position of the above search box;
获取多个处于活跃状态的窗口的第二显示位置;Obtaining a second display position of a plurality of active windows;
判断上述第一显示位置和第n个处于活跃状态的窗口的上述第二显示位置的相对位置关系是否满足预设位置关系;Determining whether a relative positional relationship between the first display position and the second display position of the nth active window satisfies a preset positional relationship;
当上述第一显示位置和第n个处于活跃状态的窗口的上述第二显示位置的相对位置关系满足上述预设位置关系时,确定上述第n个处于活跃状态的窗口为响应上述搜索框所对应的搜索指令的窗口;,其中,上述n为小于N的整整数;上述N为处于上述活跃状态的窗口的总数。When the relative positional relationship between the first display position and the second display position of the nth active window satisfies the preset positional relationship, determining that the nth active window is in response to the search box a window of the search command; wherein, n is an integer integer less than N; and N is the total number of windows in the active state.
可选地,上述判断上述第一显示位置和第n个处于活跃状态的窗口的上述第二显示位置的相对位置关系是否满足预设位置关系,包括:Optionally, determining whether the relative positional relationship between the first display position and the second display position of the nth active window meets the preset positional relationship includes:
当上述索框的覆盖显示在第一应用的至少一个应用窗口上的显示比例大于预设比例时,则确定上述第一应用的所有处于活跃状态的窗口的第二显示位置与上述第一显示位置满足上述预设位置关系;其中,上述N个处于活跃状态下的窗口的显示面积小于显示屏的显示面积。Determining, when the coverage of the frame is displayed on the at least one application window of the first application, that the display ratio is greater than a preset ratio, determining a second display position of all the active windows of the first application and the first display position The preset positional relationship is satisfied; wherein, the display area of the N active windows is smaller than the display area of the display screen.
可选地,上述判断上述第一显示位置和第n个处于活跃状态的窗口的上述第二显示位置的相对位置关系是否满足预设位置关,包括:Optionally, determining whether the relative positional relationship between the first display position and the second display position of the nth active window is satisfying the preset position, includes:
根据上述第一显示位置和上述第二显示位置,判断上述搜索框是否覆盖在第n个处于活跃状态的窗口之上;Determining, according to the first display position and the second display position, whether the search box is overlaid on the nth active window;
当上述搜索框覆盖在上述第n个处于活跃状态的窗口上时,确定上述搜索的第一显示位置与第n个处于活跃状态的窗口的上述第二显示位置满足上述预设位置关系。When the search box is overlaid on the nth active window, it is determined that the first display position of the search and the second display position of the nth active window satisfy the preset position relationship.
可选地,上述方法还包括:Optionally, the foregoing method further includes:
检测移动上述搜索框的移动操作;Detecting a movement operation of moving the above search box;
响应上述移动操作,改变上述搜索框的上述第一显示位置。The first display position of the search box is changed in response to the moving operation.
本公开实施例第二方面提供一种电子设备,包括:A second aspect of the embodiments of the present disclosure provides an electronic device, including:
显示器,用于显示信息;a display for displaying information;
处理器,与上述显示器连接,用于通过执行计算机程序,执行前述技方案中的一个或多个搜索方法。 A processor coupled to the display for performing one or more of the search methods of the foregoing techniques by executing a computer program.
本公开实施例第三方面提供一种电子设备,包括:处理器及计算机程序;A third aspect of the embodiments of the present disclosure provides an electronic device, including: a processor and a computer program;
上述处理器,用于通过执行上述计算机程序,能够执行前述技方案中的一个或多个搜索方法。The above processor is configured to perform one or more of the foregoing methods in the foregoing embodiments by executing the above computer program.
本公开实施例第四方面提供一种非易失性存储介质,上述非易失性存储介质存有计算机程序,上述计算机程序被执行后,能够执行前述技方案中的一个或多个搜索方法。A fourth aspect of the embodiments of the present disclosure provides a nonvolatile storage medium, wherein the nonvolatile storage medium stores a computer program, and after the computer program is executed, one or more of the foregoing methods can be executed.
本公开实施例第五方面提供了另一种电子设备,包括:A fifth aspect of the embodiments of the present disclosure provides another electronic device, including:
检测单元,用于响应搜索指令:A detection unit for responding to search instructions:
第一获取单元,用于获得搜索框内的用户输入的关键字符;a first obtaining unit, configured to obtain a key character input by a user in the search box;
第二获取单元,用于获得处于活跃状态的多个窗口,上述处于活跃状态的多个窗口的每一个窗口各自对应有已经加载的用于窗口输出的显示内容;a second obtaining unit, configured to obtain a plurality of windows in an active state, where each of the plurality of windows in the active state respectively corresponds to a display content that has been loaded for window output;
搜索单元,用于基于上述关键字符以及上述多个窗口进行搜索,产生第一搜索结果;a searching unit, configured to perform a search based on the key characters and the plurality of windows, to generate a first search result;
输出单元,用于输出上述第一搜索结果,上述第一搜索结果用于指示上述处于活跃状态的多个窗口中所对应的显示内容上与上述关键字符匹配的第一窗口。And an output unit, configured to output the first search result, where the first search result is used to indicate a first window that matches the key character on the display content corresponding to the plurality of windows in the active state.
可选地,上述电子设备还包括:调用单元,用于按照预设方式调用与上述处于活跃状态的多个窗口相互独立的上述搜索框。Optionally, the electronic device further includes: an invoking unit, configured to invoke, in a preset manner, the search box that is independent of the plurality of windows in the active state.
可选地,上述处于活跃状态的多个窗口,包括:同一应用的处于活跃状态的至少两个窗口;和/或,不同应用的处于活跃状态的至少两个窗口。Optionally, the multiple windows in the active state include: at least two windows in an active state of the same application; and/or at least two windows in an active state of different applications.
可选地,上述搜索单元,还用于基于上述关键字符以及未启动应用的应用标识,获得第二搜索结果;Optionally, the searching unit is further configured to obtain a second search result based on the key characters and the application identifier of the unactivated application;
可选地,上述电子设备还包括:Optionally, the foregoing electronic device further includes:
第一检测单元,用于检测用户输入的选择操作;a first detecting unit, configured to detect a selection operation input by the user;
确定单元,用于根据上述选择操作,确定用于响应上述搜索框所对应的搜索指令对应的多个窗口。And a determining unit, configured to determine, according to the foregoing selecting operation, a plurality of windows corresponding to the search instruction corresponding to the search box.
上述输出单元,还用于输出上述第二搜索结果,上述第二搜索结果用于指示上述未启动的应用标识中的第一应用标识,其中,上述第一应用标识所对应的服务器上具有与上述关键字符匹配的内容。The output unit is further configured to output the second search result, where the second search result is used to indicate the first application identifier in the un-activated application identifier, where the server corresponding to the first application identifier has the foregoing The key characters match the content.
可选地,上述第二获取单元,可用于获取上述搜索框的第一显示位置;获取多个处于活跃状态的窗口的第二显示位置;判断上述第一显示位置和第n个处于活跃状态的窗口的上述第二显示位置的相对位置关系是否满足预设位置关系;当上述第一显示位置和第n个处于活跃状态的窗口的上述第二显示位置的相对位置关系满足上述预设位置关系时,确定上述第n个处于活跃状态的窗口为响应上述搜索框所对应的搜索指令的窗口。 Optionally, the second acquiring unit may be configured to acquire a first display position of the search box, obtain a second display position of the plurality of active windows, and determine the first display position and the nth active state. Whether the relative positional relationship of the second display position of the window satisfies the preset positional relationship; when the relative positional relationship between the first display position and the second display position of the nth active window satisfies the preset positional relationship And determining that the nth active window is a window responsive to the search instruction corresponding to the search box.
本公开实施例提供的搜索方法、电子设备及非易失性存储介质,会根据搜索框内获取的内容获得关键字符;然后将关键字符与多个处于活跃状态下的窗口的显示内容进行匹配搜索,从而获得搜索结果;输出对应的搜索结果。显然在本实施例中,实现了在电子设备内的跨窗口搜索。这样用户只要在该搜索框内输入想要搜索的内容,电子设备就会自动在这些窗口内进行搜索,并返回搜索结果,显然不用用户逐一切换窗口,逐一输入搜索关键字进行搜索,大大的提升了搜索效率,减少了搜索所消耗的时间,简化了用户操作;进而提升了电子设备的智能性及用户使用满意度。The search method, the electronic device and the non-volatile storage medium provided by the embodiments of the present disclosure obtain key characters according to the content acquired in the search box; and then match the key characters with the display contents of the plurality of windows in an active state. , thereby obtaining search results; outputting corresponding search results. It is apparent that in the present embodiment, cross-window search within the electronic device is achieved. In this way, the user only needs to input the content to be searched in the search box, and the electronic device automatically searches in these windows and returns the search result. Obviously, the user does not need to switch windows one by one, and input search keywords one by one to search, greatly improving The search efficiency reduces the time consumed by the search and simplifies the user operation; thereby improving the intelligence of the electronic device and the satisfaction of the user.
附图说明DRAWINGS
图1为本公开实施例提供的一种搜索方法的流程示意图;FIG. 1 is a schematic flowchart diagram of a search method according to an embodiment of the present disclosure;
图2A为本公开实施例提供的第一种搜索框的显示示意图;2A is a schematic diagram of display of a first search box according to an embodiment of the present disclosure;
图2B为本公开实施例提供的第二种搜索框的显示示意图;2B is a schematic diagram showing display of a second search box according to an embodiment of the present disclosure;
图3为本公开实施例提供的第三种搜索框的显示示意图;FIG. 3 is a schematic diagram of display of a third search box according to an embodiment of the present disclosure;
图4为本公开实施例提供的第四种搜索框的显示示意图;4 is a schematic diagram of displaying a fourth search box according to an embodiment of the present disclosure;
图5为本公开实施例提供的另一种搜索方法的流程示意图;FIG. 5 is a schematic flowchart diagram of another search method according to an embodiment of the present disclosure;
图6为本公开实施例提供的一种电子设备的结构示意图;以及FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
图7为本公开实施例提供的另一种电子设备的结构示意图。FIG. 7 is a schematic structural diagram of another electronic device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
以下结合说明书附图及具体实施例对本公开的技术方案做进一步的详细阐述。但是应该理解,这些描述只是示例性的,而并非要限制本公开的范围。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本公开的概念。The technical solutions of the present disclosure are further elaborated below in conjunction with the drawings and specific embodiments. It should be understood, however, that the description is only illustrative, and is not intended to limit the scope of the disclosure. In addition, descriptions of well-known structures and techniques are omitted in the following description in order to avoid unnecessarily obscuring the concept of the present disclosure.
在此使用的术语仅仅是为了描述具体实施例,而并非意在限制本公开。在此使用的术语“包括”、“包含”等表明了所述特征、步骤、操作和/或部件的存在,但是并不排除存在或添加一个或多个其他特征、步骤、操作或部件。The terminology used herein is for the purpose of describing the particular embodiments, The use of the terms "comprising", "comprising" or "an"
在此使用的所有术语(包括技术和科学术语)具有本领域技术人员通常所理解的含义,除非另外定义。应注意,这里使用的术语应解释为具有与本说明书的上下文相一致的含义,而不应以理想化或过于刻板的方式来解释。All terms (including technical and scientific terms) used herein have the meaning commonly understood by one of ordinary skill in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted as having a meaning consistent with the context of the present specification and should not be interpreted in an ideal or too rigid manner.
在使用类似于“A、B和C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B和C中至少一个的系统” 应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。在使用类似于“A、B或C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B或C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。本领域技术人员还应理解,实质上任意表示两个或更多可选项目的转折连词和/或短语,无论是在说明书、权利要求书还是附图中,都应被理解为给出了包括这些项目之一、这些项目任一方、或两个项目的可能性。例如,短语“A或B”应当被理解为包括“A”或“B”、或“A和B”的可能性。Where an expression similar to "at least one of A, B, and C, etc." is used, it should generally be interpreted in accordance with the meaning of the expression as commonly understood by those skilled in the art (for example, "having A, B, and C" At least one of the systems" It should include, but is not limited to, A alone, B alone, C alone, A and B, A and C, B and C, and/or systems with A, B, C, etc.). Where an expression similar to "at least one of A, B or C, etc." is used, it should generally be interpreted according to the meaning of the expression as commonly understood by those skilled in the art (for example, "having A, B or C" "Systems of at least one of" shall include, but are not limited to, systems having A alone, B alone, C alone, A and B, A and C, B and C, and/or A, B, C, etc. ). Those skilled in the art will also appreciate that transitional conjunctions and/or phrases that are arbitrarily arbitrarily representing two or more optional items, whether in the specification, claims, or drawings, are to be construed as The possibility of one of the projects, either or both of these projects. For example, the phrase "A or B" should be understood to include the possibility of "A" or "B", or "A and B."
附图中示出了一些方框图和/或流程图。应理解,方框图和/或流程图中的一些方框或其组合可以由计算机程序指令来实现。这些计算机程序指令可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,从而这些指令在由该处理器执行时可以创建用于实现这些方框图和/或流程图中所说明的功能/操作的装置。Some block diagrams and/or flowcharts are shown in the drawings. It will be understood that some blocks or combinations of the block diagrams and/or flowcharts can be implemented by computer program instructions. These computer program instructions may be provided to a general purpose computer, a special purpose computer or a processor of other programmable data processing apparatus such that when executed by the processor, the instructions may be used to implement the functions illustrated in the block diagrams and/or flowcharts. / operating device.
因此,本公开的技术可以硬件和/或软件(包括固件、微代码等)的形式来实现。另外,本公开的技术可以采取存储有指令的计算机可读介质上的计算机程序产品的形式,该计算机程序产品可供指令执行系统使用或者结合指令执行系统使用。在本公开的上下文中,计算机可读介质可以是能够包含、存储、传送、传播或传输指令的任意介质。例如,计算机可读介质可以包括但不限于电、磁、光、电磁、红外或半导体系统、装置、器件或传播介质。计算机可读介质的具体示例包括:磁存储装置,如磁带或硬盘(HDD);光存储装置,如光盘(CD-ROM);存储器,如随机存取存储器(RAM)或闪存;和/或有线/无线通信链路。Thus, the techniques of this disclosure may be implemented in the form of hardware and/or software (including firmware, microcode, etc.). Additionally, the techniques of this disclosure may take the form of a computer program product on a computer readable medium storing instructions for use by or in connection with an instruction execution system. In the context of the present disclosure, a computer readable medium can be any medium that can contain, store, communicate, propagate or transport the instructions. For example, a computer readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the computer readable medium include: a magnetic storage device such as a magnetic tape or a hard disk (HDD); an optical storage device such as a compact disk (CD-ROM); a memory such as a random access memory (RAM) or a flash memory; and/or a wired /Wireless communication link.
如图1所示,本实施例提供一种搜索方法,所述方法包括:As shown in FIG. 1 , this embodiment provides a search method, where the method includes:
操作S110:响应搜索指令。Operation S110: responding to the search instruction.
操作S120:获取搜索框内的用户输入的关键字符。Operation S120: Acquire key characters input by the user in the search box.
操作S130:获取处于活跃状态的多个窗口,所述处于活跃状态的多个窗口的每一个窗口各自对应有已经加载的用于窗口输出的显示内容。Operation S130: Acquiring a plurality of windows in an active state, each of the plurality of windows in the active state respectively corresponding to the display content for window output that has been loaded.
操作S140:基于所述关键字符以及所述多个窗口进行搜索,产生第一搜索结果。Operation S140: performing a search based on the key characters and the plurality of windows to generate a first search result.
操作S150:输出所述第一搜索结果,所述第一搜索结果用于指示所述处于活跃状态的多个窗口中所对应的显示内容上与所述关键字符匹配的第一窗口。Operation S150: outputting the first search result, where the first search result is used to indicate a first window that matches the key character on the display content corresponding to the plurality of windows in the active state.
本实施例提供的所述搜索方法可为应用于各种用户终端中的搜索方法。所述用户终端可包括:台式的个人电脑(PC)、笔记本电脑、平板电脑或者手机等可穿戴式设备的。The search method provided by this embodiment may be a search method applied to various user terminals. The user terminal may include a wearable device such as a desktop personal computer (PC), a notebook computer, a tablet computer, or a mobile phone.
所述操作S110可包括: The operation S110 may include:
显示搜索框,且所述搜索框进入到预备状态,以接收用户从人机交互接口(例如,实体键盘、虚拟键盘、语音采集接口)输入的内容;Displaying a search box, and the search box enters a preliminary state to receive content input by the user from a human-computer interaction interface (eg, a physical keyboard, a virtual keyboard, a voice collection interface);
检测确认搜索的用户输入,或在搜索框内检测到新的信息内容获得触发的自动搜索指令。An automatic search command that detects the user input of the search or detects a new content in the search box to obtain a trigger.
所述操作S120具体可包括:The operation S120 may specifically include:
在获取到所述搜索指令之后,基于用户输入的内容,获取所述关键字符,例如,提取所述用户输入的内容的主旨内容。After the search instruction is acquired, the key character is acquired based on the content input by the user, for example, the subject matter of the content input by the user is extracted.
在一些实施例中,可以搜索框接收到的所有内容作为所述关键字符。在另一些实施例中,对用户输入的内容利用词袋法等处理,提取出关键信息作为所述关键字符。In some embodiments, all of the content received by the box can be searched for as the key character. In other embodiments, the content input by the user is processed by a word bag method or the like to extract key information as the key character.
在操作S130中将获取出电子设备当前状态下,开启的且处于活跃状态的窗口。A window that is turned on and in an active state in the current state of the electronic device is acquired in operation S130.
在本实施例中所述处于活跃状态的窗口可包括:设备启动且完成内容加载的窗口。这样的话,若电子设备检测到从一个窗口A切换到另一个处于活跃状态的窗口B,电子设备直接进行切换操作后显示窗口B,就可以看到窗口B中的显示内容,而不用重新生成一个窗口并向该窗口内填充显示内容。The window in the active state in this embodiment may include: a window in which the device starts and completes content loading. In this case, if the electronic device detects switching from one window A to another window B in an active state, the electronic device directly displays the window B after the switching operation, and can display the display content in the window B without regenerating one. The window fills the display with the contents of the window.
总之,本实施例中所述处于活跃状态的窗口,可为电子设备已经启动且完成内容加载的窗口,通常情况下,电子设备均未这些窗口分配的处理线程,且这些处理线程处于活跃状态或待命状态,若进行窗口切换或与该窗口操作相关的处理时,电子设备不用再额外重新为该窗口分配资源(例如,存储资源和/或计算资源),可利用已经分配好的资源(例如,已建立好的线程)直接对该窗口进行操作。In summary, the window in the active state in the embodiment may be a window in which the electronic device has been started and the content is loaded. Generally, the electronic device does not have processing threads allocated by the windows, and the processing threads are active or In the standby state, if window switching or processing related to the window operation is performed, the electronic device does not need to additionally allocate resources (for example, storage resources and/or computing resources) to the window, and may utilize the already allocated resources (for example, The established thread) operates directly on the window.
在本实施例中所述处于活跃状态的窗口,可为处于电子设备前台的窗口,例如,显示在显示界面的最顶层,可供用户直接观看及操作的窗口,也可以处于在后台的窗口,用户可以通过窗口切换,不用在进行窗口重新建立的情况下就可以调出来的已创建的窗口。In the embodiment, the window in the active state may be a window in the foreground of the electronic device, for example, displayed on the topmost layer of the display interface, a window that can be directly viewed and operated by the user, or may be in a window in the background. The user can switch through the window without having to re-create the created window with the window re-established.
当然这些处于活跃状态的窗口的显示状态,可包括:以窗口的形式显示在桌面上,也可以图标的形式显示在桌面上,或者,以最小化窗口的形式显示在桌面的任务栏上。Of course, the display state of the active windows may include: displaying on the desktop in the form of a window, displaying on the desktop in the form of an icon, or displaying the minimized window on the taskbar of the desktop.
若所述电子设备为手机等移动设备,处于活跃状态的后台窗口,当前可以不显示。若当前电子设备处于小窗口显示模式,即电子设备的提供的窗口的显示面积是小于显示屏的显示面积的,则处于活跃状态的后台窗口,可为被前台窗口所覆盖的窗口。If the electronic device is a mobile device such as a mobile phone, the background window in an active state may not be displayed at present. If the current electronic device is in the small window display mode, that is, the display area of the window provided by the electronic device is smaller than the display area of the display screen, the background window in the active state may be the window covered by the foreground window.
在本实施例中的操作S140中,会将搜索框内的关键字符,与处于活跃状态下的多个窗口内显示内容进行匹配搜索,得到第一搜索结果。In the operation S140 in the embodiment, the key characters in the search box are matched and searched with the display contents in the plurality of windows in the active state to obtain the first search result.
这里的第一搜索结果,可包括:搜索成功、搜索失败等信息。例如,当搜索成功时,则所述第一搜索结果可包括:与所述关键字符相匹配窗口的窗口标识、该窗口内与所述关键字符相匹配的显示内容。 The first search result herein may include: information such as search success, search failure, and the like. For example, when the search is successful, the first search result may include: a window identifier matching the key character, and a display content matching the key character in the window.
在完成搜索后,会输出所述第一搜索结果。这里的输出所述第一搜索结果,包括:显示输出所述第一搜索结果,和/或语音输出所述第一搜索结果。After the search is completed, the first search result is output. The outputting the first search result herein includes: displaying the first search result, and/or outputting the first search result by voice.
例如,所述操作S150可包括:For example, the operation S150 may include:
当搜索成功时,(即在多个处于活跃状态的窗口中至少有一个窗口的有一处显示内容与所述关键字符满足预设匹配关系),可直接显示与该关键字符匹配成功过的窗口的对应部分内容;这里的第一窗口可为有显示内容与所述关键字符满足所述预设匹配关系的窗口。在另一些实施例中,所述第一窗口可为新生成的专用显示搜索结果的新窗口,例如,在该第一窗口内显示与该关键字符具有匹配关系(即满足所述预设匹配关系)的显示内容的专用窗口。当然,所述第一窗口还可为显示有所述搜索框的显示窗口,当搜索成功时,可以直接将与该关键字符具有匹配关系的显示内容,在搜索框的下方显示。When the search is successful, (ie, at least one window of the plurality of active windows has a display content and the key characters satisfy a preset matching relationship), the window successfully matched with the key character can be directly displayed. Corresponding part of the content; the first window herein may be a window having a display content and the key character satisfying the preset matching relationship. In other embodiments, the first window may be a newly generated dedicated window for displaying a search result, for example, displaying a matching relationship with the key character in the first window (ie, satisfying the preset matching relationship) ) A dedicated window for displaying content. Of course, the first window may also be a display window displaying the search box. When the search is successful, the display content having a matching relationship with the key character may be directly displayed below the search box.
所述操作S150还可包括:当搜索失败时,可在显示所述搜索框的搜索页面显示搜索失败的提示信息。The operation S150 may further include: when the search fails, the prompt information of the search failure may be displayed on the search page displaying the search box.
利用本实施例所述的搜索方法,用户可以在打开多个应用,或打开一个应用的窗口时,可以通过电子设备内的该搜索窗口,搜索其他内窗口内是否有当前自己需要的内容。例如,用户A利用电脑正在写论文,写论文开启了文档窗口1,同时还开启了文档窗口2和文档窗口3及网页窗口1,文档窗口1至3及网页窗口1内可能有用户A写论文所需的参考资料。若在现有技术中需要用户A想要找到对应的内容给论文撰写提供参考时,用户可能需要将前台窗口依次切换为文档窗口2和文档窗口3及网页窗口1,再到这些窗口内进行查看和/或搜索,这样的话显然效率低,若用户当前不知道在哪一个窗口内有自己想要的内容,则需要逐一窗口进行切换进行搜索,显然用户操作繁琐。而在本实施例中用户可以直接利用所述搜索框输入与搜索相关的内容,电子设备会获取到关键字符,自动到文档窗口2和文档窗口3及网页窗口1进行搜索,产生对应的搜索结果,并将搜索结果输出,显然不用用户手动切换每一个窗口,并在对应的窗口内进行逐一查看和搜索,显然大大的提升了搜索的效率及智能性,简化了用户操作,提升了用户体验及电子设备智能性。With the search method described in this embodiment, when a plurality of applications are opened, or a window of an application is opened, the user can search for other content in the other internal window through the search window in the electronic device. For example, user A is using a computer to write a thesis, writing a thesis opens the document window 1, and also opens the document window 2 and the document window 3 and the webpage window 1. In the document windows 1 to 3 and the webpage window 1, there may be a user A writing a thesis. Required reference material. If in the prior art, the user A needs to find the corresponding content to provide reference for the paper writing, the user may need to switch the foreground window to the document window 2 and the document window 3 and the webpage window 1 in turn, and then view in the window. And / or search, this is obviously inefficient, if the user does not currently know which window has the content that he wants, then you need to switch to search one by one window, obviously the user operation is cumbersome. In this embodiment, the user can directly input the content related to the search by using the search box, and the electronic device acquires the key characters, and automatically searches the document window 2 and the document window 3 and the web window 1 to generate corresponding search results. And the search results are outputted. Obviously, the user does not need to manually switch each window and view and search one by one in the corresponding window, which obviously improves the efficiency and intelligence of the search, simplifies the user operation, and improves the user experience and Electronic device intelligence.
可选地,所述搜索方法还包括:Optionally, the searching method further includes:
按照预设方式调用与所述处于活跃状态的多个窗口相互独立的所述搜索框。The search box that is independent of the plurality of windows in the active state is called in a preset manner.
在本实施例中所述搜索框为与被搜索的窗口是相互独立的,是不属于任意一个所述处于活跃状态的窗口的,是所述处于活跃状态下的所述窗口的外部搜索框,该外部搜索框可为由一个安装在操作系统内的设备内搜索应用的搜索框,或操作系统内的系统搜索框。In the embodiment, the search box is independent of the searched window, and is not belonging to any of the active windows, and is an external search box of the window in the active state. The external search box can be a search box for searching for an application within a device installed within the operating system, or a system search box within the operating system.
这些处于活跃状态的窗口包括有外部调用的搜索接口,该外部搜索框,可以通过该搜索接口,与窗口进行对接,从而将关键字符递交给该窗口内,进行与窗口内的显示内容的信息 匹配搜索,并通过该搜索接口返回给该外部搜索框对应的搜索程序以对应窗口的单个窗口的搜索结果。当然,所述搜索框与窗口之间的对应关系,不局限于此。The active window includes an externally called search interface, and the external search box can be docked with the window through the search interface to deliver key characters to the window for information related to the displayed content in the window. Matching the search and returning to the search program corresponding to the external search box through the search interface to correspond to the search result of the single window of the window. Of course, the correspondence between the search box and the window is not limited thereto.
在还有一些实施例中,所述搜索框可为电子设备的操作系统内设置的系统搜索框;操作系统进行搜索时,可以不用在各个窗口上设置有供搜索框与窗口进行信息交互的搜索接口。所述操作系统可以获取到各个处于活跃状态的窗口的显示内容的存储区域,操作系统将该搜索框的关键字符,到对应的存储区域与这些处于活跃状态的窗口的显示内容进行匹配,然后产生所述第一搜索结果。在还有一些实施例中,所述操作系统可以将处于活跃状态的窗口内的显示内容,同一复制到搜索缓存区域,并标记每一个显示内容的来源窗口,然后统一将该关键字符与搜索缓存区内的显示内容进行搜索匹配,然后得到与各个窗口的显示内容的搜索匹配结果,从而产生所述第一搜索结果。In some embodiments, the search box may be a system search box set in an operating system of the electronic device; when searching by the operating system, there may be no need to set a search for information interaction between the search box and the window on each window. interface. The operating system may obtain a storage area of the display content of each window in an active state, and the operating system matches the key characters of the search box to the corresponding storage area and the display contents of the active windows, and then generates The first search result. In still other embodiments, the operating system may copy the display content in the active window to the search cache area, mark the source window of each display content, and then unify the key character and the search cache. The display content in the area is search-matched, and then a search matching result with the display content of each window is obtained, thereby generating the first search result.
总之,在本实施例中所述搜索框为独立于各个被搜索的窗口的,是这些处于活跃状态下的被搜索的窗口的外部搜索框。该外部搜索框可为设备内部的搜索应用提供的搜索框,也可以为操作系统的一个内部搜索组件。这里的操作系统可为widows操作系统或安卓操作系统或苹果(iOS)操作系统。In summary, in the present embodiment, the search box is independent of each searched window, and is an external search box of the searched windows in an active state. The external search box can be a search box provided for the search application inside the device, or an internal search component of the operating system. The operating system here can be a widows operating system or an Android operating system or an Apple (iOS) operating system.
在本实施例中所述预设方式调用,可为各种启动所述搜索框的方式,以下提供几种可选方式:In the embodiment, the preset mode is invoked, which may be various ways of starting the search box. Several options are provided below:
可选方式一:Optional one:
所述搜索框可为下滑框或上滑框;这里的滑框或上滑框的显示可包括:在操作系统的桌面,检测下滑操作,若检测到下滑操作,显示所述下滑框;或者,在所述操作系统的桌面,检测上滑操作,若检测到上滑操作,显示所述上滑框。The search box may be a sliding frame or an upper sliding frame; the display of the sliding frame or the upper sliding frame may include: detecting a sliding operation on the desktop of the operating system, and displaying the sliding frame if a sliding operation is detected; or On the desktop of the operating system, the sliding operation is detected, and if the sliding operation is detected, the upper sliding frame is displayed.
可选方式二:Option 2:
当所述搜索框可为设备内部搜索应用提供的搜索框时,调用所述搜索框可包括:启动所述设备内搜索应用。When the search box is a search box provided by the device internal search application, invoking the search box may include: launching the in-device search application.
图2A所示为一个下滑框的显示示意图;图2B所示为一个上滑框的显示示意图。FIG. 2A is a schematic diagram showing the display of a sliding frame; FIG. 2B is a schematic diagram showing the display of an upper sliding frame.
可选方式三:Option 3:
当所述搜索框为系统搜索框时,通过操作系统的下拉菜单调用所述系统搜索框,或者,通过操作系统的上拉菜单。When the search box is a system search box, the system search box is invoked through a pull-down menu of the operating system, or through a pull-up menu of the operating system.
如图3所示,这里的下拉菜单可为在一个窗口,用户通过点击如上述文档窗口1中的空白处弹出下拉菜单,在下拉菜单内可设置有调用所述搜索框的控件。这种下拉菜单为应用内的下拉菜单。在本实施例中,所述搜索框被调用之后,该搜索框的至少部分悬浮显示在电子设备显示界面的最上层,这样方便用户随时输入自己想要搜索的内容,从而方便后续所有搜 索内容的搜索。例如,用户想要搜索时,可以通过作用于悬浮显示的部分,激活搜索框就可以在搜索框内输入自己想要搜索的内容,从而实现电子设备内部的搜索。As shown in FIG. 3, the drop-down menu here may be in a window, the user pops up a drop-down menu by clicking on a blank space in the document window 1 as described above, and a control for calling the search box may be set in the drop-down menu. This drop-down menu is a drop-down menu within the app. In this embodiment, after the search box is called, at least part of the search box is suspended and displayed on the uppermost layer of the electronic device display interface, so that the user can input the content that he wants to search at any time, thereby facilitating all subsequent searches. Search for content. For example, when the user wants to search, the user can search for the content inside the electronic device by inputting the search box to activate the search box and input the content that he wants to search in the search box.
如图4所示,在操作系统的上拉菜单内可设置有调度所述搜索框的控件。As shown in FIG. 4, a control for scheduling the search box may be set in a pull-up menu of the operating system.
总之,所述搜索框是用预设方式调度的,是独立于所述处于活跃状态的窗口之外的程序模块所形成的窗口,调度方式不局限于上述任意一种。In summary, the search box is scheduled in a preset manner, and is a window formed by a program module that is independent of the window in the active state, and the scheduling manner is not limited to any one of the above.
可选地,如图5所示,所述方法还包括:Optionally, as shown in FIG. 5, the method further includes:
操作S160:基于所述关键字符以及未启动应用的应用标识,获得第二搜索结果;Operation S160: obtaining a second search result based on the key character and an application identifier of the unactivated application;
操作S170:输出所述第二搜索结果,所述第二搜索结果用于指示所述未启动的应用标识中的第一应用标识,其中,所述第一应用标识所对应的服务器上具有与所述关键字符匹配的内容。Operation S170: outputting the second search result, where the second search result is used to indicate the first application identifier in the un-activated application identifier, where the server corresponding to the first application identifier has The content of the key characters is matched.
在本实施例中,为了方便搜索还会基于所述搜索框与未启动应用额应用标识,获得第二搜索结果。输出所述第二搜索结果。例如,用户当前所搜索的内容,可能在未启动的应用中有,但是由于该应用未启动,电子设备可能没有办法直接返回与该关键字符具有匹配关系的显示内容,从而对应应用的应用标识作为第二搜索结果输出,方便用户通过启动对应的应用获得自己想要搜索的信息等。In this embodiment, in order to facilitate the search, the second search result is obtained based on the search box and the application identifier that is not activated. The second search result is output. For example, the content currently searched by the user may be in an application that is not started, but since the application is not activated, the electronic device may not have a way to directly return the display content having a matching relationship with the key character, so that the application identifier of the corresponding application is used as The second search result is outputted, so that the user can obtain the information that he wants to search by starting the corresponding application.
可选地,所述方法还包括:Optionally, the method further includes:
检测用户输入的选择操作;Detecting user input selection operations;
根据所述选择操作,确定用于响应所述搜索框所对应的搜索指令对应的多个窗口。And determining, according to the selecting operation, a plurality of windows corresponding to the search instruction corresponding to the search box.
在本实施例中,所述方法还包括检测用户输入的选择操作,这里的选择操作,可为选择响应所述搜索框所对应的搜索指令的窗口。所述搜索指令所对应的窗口,为被搜索的对象,即被搜索的窗口。In this embodiment, the method further includes detecting a selection operation input by the user, where the selecting operation may be selecting a window that responds to the search instruction corresponding to the search box. The window corresponding to the search instruction is the object to be searched, that is, the window to be searched.
例如,当前电子设备中处于活跃状态的窗口包括M个,根据用户输入的选择操作,可以从其中的N个作为响应所述搜索指令的被搜索窗口。For example, the window in the active state of the current electronic device includes M, and according to the selection operation input by the user, N of them may be used as the searched window in response to the search instruction.
在一些实施例中,在所述搜索框的显示页面可以显示有当前处于活跃状态的窗口的窗口标识,可以通过检测用户输入的勾选对应窗口的复选框,选择部分或全部处于活跃状态的窗口,作为本次响应所述搜索框对应的搜索指令的窗口。若用户未勾选对应的窗口,即默认情况下,所述搜索指令会搜索与搜索框有对应关系的所有窗口,即搜索全部的窗口。In some embodiments, the window identifier of the currently active window may be displayed on the display page of the search box, and some or all of the active states may be selected by detecting a check box of the corresponding window that is input by the user. The window serves as a window for responding to the search command corresponding to the search box. If the user does not check the corresponding window, by default, the search command searches all windows that have a corresponding relationship with the search box, that is, searches all windows.
可选地,所述处于活跃状态的多个窗口,包括:Optionally, the multiple windows in the active state include:
同一应用的处于活跃状态的至少两个窗口;At least two windows of the same application that are active;
和/或,and / or,
不同应用的处于活跃状态的至少两个窗口。 At least two windows of an active state of different applications.
在本实施例中,这些多个窗口可为同一个应用的不同窗口,例如,word应用分别打开的多个窗口。In this embodiment, the plurality of windows may be different windows of the same application, for example, multiple windows opened by the word application respectively.
在一些实施例中,所述多个窗口可为不同应用的窗口,例如,网页的网页窗口,社交应用的应用窗口,或阅读应用的阅读窗口等。In some embodiments, the plurality of windows may be windows of different applications, such as a webpage window of a webpage, an application window of a social application, or a reading window of a reading application, and the like.
在本实施例中一次性被搜索的窗口,可包括:一个应用的至少两个窗口,及至少两个应用的不同窗口。The window that is searched once in this embodiment may include: at least two windows of one application, and different windows of at least two applications.
显然在本实施例中搜索框对应的搜索指令指向的窗口可为多个及多种,具有可搜索范围广的特点。Obviously, in the embodiment, the search instruction corresponding to the search box may be directed to multiple or multiple windows, and has a wide searchable range.
在一些实施例中,所述操作S130还可包括:In some embodiments, the operation S130 may further include:
获取所述搜索框的第一显示位置;Obtaining a first display position of the search box;
获取多个处于活跃状态的窗口的第二显示位置;Obtaining a second display position of a plurality of active windows;
判断所述第一显示位置和第n个处于活跃状态的窗口的所述第二显示位置的相对位置关系是否满足预设位置关系;Determining whether a relative positional relationship between the first display position and the second display position of the nth active window satisfies a preset positional relationship;
当所述第一显示位置和第n个处于活跃状态的窗口的所述第二显示位置的相对位置关系满足所述预设位置关系时,确定所述第n个处于活跃状态的窗口为响应所述搜索框所对应的搜索指令的窗口,n为小于N的正整数,N为处于活跃状态下的窗口的总数。When the relative positional relationship between the first display position and the second display position of the nth active window satisfies the preset positional relationship, determining that the nth active window is a response The window of the search instruction corresponding to the search box, n is a positive integer smaller than N, and N is the total number of windows in an active state.
在前一个实施例中是基于用户的选择操作确定本次响应搜索指令的窗口,即基于用户的选择操作确定被搜索的窗口。在本实施例中,电子设备会自动确定被搜索的窗口。具体如,首先获取搜索框的第一显示位置,再获取多个处于活跃状态的窗口的第二显示位置,基于第一显示位置和第二显示位置的相对位置关系,自动确定出被搜索的窗口。In the former embodiment, the window of the response search instruction is determined based on the user's selection operation, that is, the searched window is determined based on the user's selection operation. In this embodiment, the electronic device automatically determines the window being searched. For example, first obtaining a first display position of the search box, and then acquiring a second display position of the plurality of active windows, and automatically determining the searched window based on the relative positional relationship between the first display position and the second display position. .
例如,所述搜索框可为悬浮显示的搜索框。这里的悬浮显示可为显示在最上层。被搜索的窗口可为:至少部分被所述搜索框搜覆盖的窗口。For example, the search box can be a search box that is displayed in a hover. The floating display here can be displayed on the top layer. The window being searched for may be a window that is at least partially covered by the search box.
在另一些实施例中,用户在操作多个窗口时,若用户想要搜索哪一些窗口的内容,用户可能习惯将这些搜索框移动到对应的窗口附件,故在本实施例中可以通过搜索框与窗口之间的距离,确定出对应的窗口是否为需要响应搜索之指令的窗口。In other embodiments, when the user operates a plurality of windows, if the user wants to search for the contents of some windows, the user may be accustomed to moving the search boxes to the corresponding window attachments, so in the present embodiment, the search box may be used. The distance from the window determines whether the corresponding window is a window that needs to respond to the search instruction.
在一些实施例中,所述判断所述第一显示位置和第n个处于活跃状态的窗口的所述第二显示位置的相对位置关系是否满足预设位置关系,包括:In some embodiments, determining whether the relative positional relationship between the first display position and the second display position of the nth active window satisfies a preset positional relationship includes:
当所述索框的覆盖显示在第一应用的至少一个应用窗口上时,则确定所述第一应用的所有处于活跃状态的窗口的第二显示位置与所述第一显示位置满足所述预设位置关系;其中,所述N个处于活跃状态下的窗口的显示面积小于显示屏的显示面积。Determining, when the overlay of the cable frame is displayed on the at least one application window of the first application, determining that the second display location of the active window of the first application and the first display location meet the pre- A positional relationship is set; wherein a display area of the N active states is smaller than a display area of the display screen.
此时,若一个搜索框覆盖文档应用的一个窗口,则可认为文档应用的所有处于活跃状态 下的窗口,都属于需要响应所述搜索指令被搜索的窗口。At this point, if a search box covers a window of the document application, then all of the document applications are considered active. The lower windows belong to the window that needs to be searched in response to the search command.
进一步地为了避免不需要的搜索,减少误搜索,当所述索框的覆盖显示在第一应用的至少一个应用窗口上的显示比例大于预设比例时,则确定所述第一应用的所有处于活跃状态的窗口的第二显示位置与所述第一显示位置满足所述预设位置关系;其中,所述N个处于活跃状态下的窗口的显示面积小于显示屏的显示面积。Further, in order to avoid unnecessary search, the erroneous search is reduced, and when the display ratio of the coverage of the cable frame displayed on the at least one application window of the first application is greater than a preset ratio, determining that all the first applications are in the The second display position of the active state window and the first display position satisfy the preset position relationship; wherein, the display area of the N active windows is smaller than the display area of the display screen.
例如,所述预设比例为0.3,若当前应用A共有3个处于活跃状态的窗口,其中搜索框覆盖在应用A的一个或多个窗口上,选择搜索框当前覆盖面积最大窗口,计算所述显示显示比例。例如,搜索框有百分50%覆盖在该窗口上,则可认为显然,大于预设比例0.3,则可认为当前应用A所有的处于活跃状态的窗口,都是需要被搜索的窗口。For example, the preset ratio is 0.3. If the current application A has 3 active windows, wherein the search box is overlaid on one or more windows of the application A, the maximum window of the current coverage area of the search box is selected, and the calculation is performed. The display scale is displayed. For example, if the search box has a 50% coverage on the window, it can be considered that, if it is greater than the preset ratio of 0.3, it can be considered that all the currently active windows of the application A are windows to be searched.
通过预设比例的设置,可以进一步减少因为搜索框不小心小部分覆盖到不需要搜索的应用时导致的不必要的搜索。在本实施例中,所述显示比例可选为0.3、0.4、0.5、0.6,优选为0.5以上。By setting the preset ratio, you can further reduce the unnecessary search caused by the inadvertent small part of the search box covering the application that does not need to be searched. In this embodiment, the display ratio may be 0.3, 0.4, 0.5, 0.6, preferably 0.5 or more.
在另一些实施例中,所述判断所述第一显示位置和第n个处于活跃状态的窗口的所述第二显示位置的相对位置关系是否满足预设位置关系,包括:In other embodiments, determining whether the relative positional relationship between the first display position and the second display position of the nth active window meets a preset positional relationship includes:
根据所述第一显示位置和所述第二显示位置,判断所述搜索框是否覆盖在第n个处于活跃状态的窗口之上;Determining, according to the first display position and the second display position, whether the search box is overlaid on the nth active window;
当所述搜索框覆盖在所述第n个处于活跃状态的窗口上时,确定所述搜索的第一显示位置与第n个处于活跃状态的窗口的所述第二显示位置满足所述预设位置关系。Determining that the first display position of the search and the second display position of the nth active window satisfy the preset when the search box is overlaid on the nth active window Positional relationship.
在本实施例中不在关注当前搜索框覆盖在哪些应用的窗口上显示,而是知己而关注搜索框覆盖了哪些窗口,被覆盖的且处于活跃状态下的所有窗口都是需要被搜索的窗口。In this embodiment, instead of focusing on which applications the current search box is overlaid on the window of the application, the confidant is concerned with which windows the search box covers, and all the windows that are covered and in an active state are windows that need to be searched.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
检测移动所述搜索框的移动操作;Detecting a movement operation of moving the search box;
响应所述移动操作,改变所述搜索框的所述第一显示位置。The first display position of the search box is changed in response to the moving operation.
在本实施例中,所述搜索框是可移动的,可以基于用户的手指滑动操作、鼠标移动操作等可以移动所述搜索框,然后基于搜索框的位置,可以自动的确定出哪些窗口是需要响应所述搜索指令的窗口,从而实现被搜索窗口的自动确认。In this embodiment, the search box is movable, and the search box may be moved based on a user's finger sliding operation, a mouse moving operation, etc., and then based on the position of the search box, it may be automatically determined which windows are needed. The window of the search instruction is responsive to enable automatic confirmation of the searched window.
可选地,所述方法还可包括:Optionally, the method may further include:
检测移动所述搜索框的第一操作,获得第一操作参数;Detecting a first operation of moving the search box to obtain a first operation parameter;
根据所述第一操作参数,将所述搜索框移动到所述第一应用的显示区域内,并将所述搜索框覆盖显示在所述第一应用之上。这里的移动所述搜索框的操作,可为前述的选择操作的一种。 And moving the search box into a display area of the first application according to the first operation parameter, and displaying the search box overlay on the first application. Here, the operation of moving the search box may be one of the aforementioned selection operations.
可选地,在一些实施例中,还可以直接通过选择应用,来实现响应搜索框所对应的搜索指令的窗口的选择。例如,所述方法还包括:检测选择所述指定应用的第二操作,获得第二操作参数;根据所述第二操作参数,确定响应所述搜索框所对应的搜索指令的应用,该应用处于活跃状态的窗口,即为需要响应所述搜索框所对应搜索指令的窗口。Optionally, in some embodiments, the selection of the window in response to the search instruction corresponding to the search box may also be implemented directly by selecting an application. For example, the method further includes: detecting a second operation of selecting the specified application, obtaining a second operation parameter; determining, according to the second operation parameter, an application that responds to the search instruction corresponding to the search box, the application is at The window of the active state is the window that needs to respond to the search instruction corresponding to the search box.
可选地,在一些实施例中,响应所述框所对应的搜索指令的应用可为基于用户输入配置的,也可以是基于服务器的远程配置的,故所述方法还可包括:Optionally, in some embodiments, the application that responds to the search instruction corresponding to the box may be configured based on user input, or may be remotely configured based on a server, so the method may further include:
当,向所述服务器发送查询请求;Sending a query request to the server;
接收所述查询请求接收所述服务器返回的所述应用标识,从而获得需要响应所述搜索框所对应的搜索指令的应用,从而进一步基于应用标识,确定该应用标识所对应的所有处于活跃状态的窗口,均为需要响应所述搜索框所对应的搜索指令的窗口。Receiving the query request to receive the application identifier returned by the server, so as to obtain an application that needs to respond to the search instruction corresponding to the search box, so as to further determine, according to the application identifier, all the active identifiers corresponding to the application identifier The windows are all windows that need to respond to the search command corresponding to the search box.
如图6所示,本实施例提供一种电子设备,包括:As shown in FIG. 6, the embodiment provides an electronic device, including:
检测单元110,用于响应搜索指令:The detecting unit 110 is configured to respond to the search instruction:
第一获取单元120,用于获得搜索框内的用户输入的关键字符;a first obtaining unit 120, configured to obtain a key character input by a user in the search box;
第二获取单元130,用于获得处于活跃状态的多个窗口,所述处于活跃状态的多个窗口的每一个窗口各自对应有已经加载的用于窗口输出的显示内容;a second obtaining unit 130, configured to obtain a plurality of windows in an active state, each of the plurality of windows in the active state respectively corresponding to the display content that has been loaded for window output;
搜索单元140,用于基于所述关键字符以及所述多个窗口进行搜索,产生第一搜索结果;The searching unit 140 is configured to perform a search based on the key characters and the plurality of windows to generate a first search result;
输出单元150,用于输出所述第一搜索结果,所述第一搜索结果用于指示所述处于活跃状态的多个窗口中所对应的显示内容上与所述关键字符匹配的第一窗口。The output unit 150 is configured to output the first search result, where the first search result is used to indicate a first window that matches the key character on the display content corresponding to the plurality of windows in the active state.
本实施例提供一种电子设备,该电子设备可以利用电子设备内的窗口,搜索多个处于活跃状态的窗口内的显示内容,并输出响应的搜索结果,方便用户在一个搜索框内实现多个窗口的跨窗口的信息搜索,提升信息搜索的效率及电子设备的智能性。The embodiment provides an electronic device, which can search for a plurality of display contents in a window in an active state by using a window in the electronic device, and output a response search result, so that the user can implement multiple in one search box. Window cross-window information search to improve the efficiency of information search and the intelligence of electronic devices.
所述检测单元110及第一获取单元120可包括:人机交互接口,可包括:键盘、鼠标、语音采集及识别模块或触摸面板等,可用于提取用户输入的内容。在一些实施例中,所述第一获取单元120还可包括:处理器或处理电路,通过信息处理提取所述关键字符。The detecting unit 110 and the first obtaining unit 120 may include: a human-computer interaction interface, and may include: a keyboard, a mouse, a voice collection and recognition module, or a touch panel, etc., and may be used to extract content input by the user. In some embodiments, the first obtaining unit 120 may further include: a processor or a processing circuit that extracts the key characters by information processing.
所述第二获取单元130及搜索单元140,可对应于处理器或处理电路,可对应于处理器或处理电路,可以用于实现所述处于活跃状态下的窗口的确认,及以所述关键字符为搜索依据,对这些窗口内的显示内容进行搜索,并产生对应的搜索结果。The second obtaining unit 130 and the searching unit 140 may correspond to a processor or a processing circuit, and may correspond to a processor or a processing circuit, and may be used to implement confirmation of the window in an active state, and the key The characters are the search basis, and the display contents in these windows are searched, and corresponding search results are generated.
所述输出单元150可对应于显示屏,所述显示屏可为电子墨水显示屏、有机发光二级光OLED显示频该、投影显示屏或液晶显示屏等,可以通过显示输出所述第一搜索结果。The output unit 150 may correspond to a display screen, and the display screen may be an electronic ink display screen, an organic light-emitting secondary light OLED display frequency, a projection display screen or a liquid crystal display screen, etc., and the first search may be output through display result.
在一些实施例中,所述电子设备还包括:In some embodiments, the electronic device further includes:
调用单元,用于按照预设方式调用与所述处于活跃状态的多个窗口相互独立的所述搜索 框。a calling unit, configured to invoke the search that is independent of the plurality of windows in an active state according to a preset manner frame.
可选地,所述搜索单元140,还用于基于所述关键字符以及未启动应用的应用标识,获得第二搜索结果;Optionally, the searching unit 140 is further configured to obtain a second search result based on the key characters and an application identifier of the unactivated application;
所述输出单元150,还用于输出所述第二搜索结果,所述第二搜索结果用于指示所述未启动的应用标识中的第一应用标识,其中,所述第一应用标识所对应的服务器上具有与所述关键字符匹配的内容。The output unit 150 is further configured to output the second search result, where the second search result is used to indicate a first application identifier in the unactivated application identifier, where the first application identifier corresponds to The server has content that matches the key characters.
可选地,所述电子设备还包括:Optionally, the electronic device further includes:
第一检测单元,用于检测用户输入的选择操作;a first detecting unit, configured to detect a selection operation input by the user;
确定单元,用于根据所述选择操作,确定用于响应所述搜索框所对应的搜索指令对应的多个窗口。And a determining unit, configured to determine, according to the selecting operation, a plurality of windows corresponding to the search instruction corresponding to the search box.
可选地,所述处于活跃状态的多个窗口,包括:同一应用的处于活跃状态的至少两个窗口;和/或,不同应用的处于活跃状态的至少两个窗口。Optionally, the plurality of windows in an active state include: at least two windows in an active state of the same application; and/or at least two windows in an active state of different applications.
可选地,所述第二获取单元,可用于获取所述搜索框的第一显示位置;获取多个处于活跃状态的窗口的第二显示位置;判断所述第一显示位置和第n个处于活跃状态的窗口的所述第二显示位置的相对位置关系是否满足预设位置关系;当所述第一显示位置和第n个处于活跃状态的窗口的所述第二显示位置的相对位置关系满足所述预设位置关系时,确定所述第n个处于活跃状态的窗口为响应所述搜索框所对应的搜索指令的窗口。Optionally, the second obtaining unit may be configured to acquire a first display position of the search box, acquire a second display position of the plurality of active windows, and determine that the first display position and the nth position are Whether a relative positional relationship of the second display position of the active state window satisfies a preset positional relationship; a relative positional relationship of the first display position and the second display position of the nth active window is satisfied When the preset positional relationship is determined, determining that the nth active window is a window that responds to the search instruction corresponding to the search box.
如图7所示,本公开实施例还提供另一种电子设备,包括:As shown in FIG. 7, the embodiment of the present disclosure further provides another electronic device, including:
显示器210,用于显示信息;a display 210 for displaying information;
处理器220,与所述显示器210连接,用于通过执行计算机程序,执行前述实施例提供的一个或多个搜索方法。The processor 220 is coupled to the display 210 for performing one or more of the search methods provided by the foregoing embodiments by executing a computer program.
所述显示器210可为液晶显示器、电子墨水显示器、投影显示器或有机发光二级管(OLED)显示器等各种可以显示信息的显示装置,具体可以用于显示所述窗口及搜索框。The display 210 can be a display device that can display information, such as a liquid crystal display, an electronic ink display, a projection display, or an organic light emitting diode (OLED) display, and can be specifically used to display the window and the search box.
在一些实施例中,所述电子设备还包括:存储器,所述存储器可为存储有各种信息的非易失性存储介质,例如,可以用于存储所述计算机程序,或存储各个处于活跃状态下的窗口内的显示内容,各个窗口的状态标记等。In some embodiments, the electronic device further includes: a memory, which may be a non-volatile storage medium storing various information, for example, may be used to store the computer program, or store each active state The display content in the window below, the status mark of each window, and so on.
所述处理器220可为中央处理器、微处理器、数字信号处理器、可编程阵列或应用处理器等,所述处理电路可为专用集成电路等。The processor 220 can be a central processing unit, a microprocessor, a digital signal processor, a programmable array or an application processor, etc., and the processing circuit can be an application specific integrated circuit or the like.
所述显示器210与所述处理器220之间通过集成电路总线等总线接口230连接,能够实现信息及指令的互通。The display 210 and the processor 220 are connected by a bus interface 230 such as an integrated circuit bus, and can realize the interworking of information and instructions.
所述处理器,可通过计算机程度的执行,实现前述一个或多个搜索方法。 The processor can implement one or more of the foregoing search methods by computer level execution.
在一些实施例中所述电子设备还包括外部通信接口240,该外部通信接口240可用于所述电子设备与其他电子设备进行信息交互,该外部通信接口240可对应于网络接口等。In some embodiments, the electronic device further includes an external communication interface 240 that can be used for information interaction between the electronic device and other electronic devices, the external communication interface 240 can correspond to a network interface or the like.
本实施例提供的所述电子设备可为手机、笔记本电脑、台式电脑、平板电脑或电子书等各种电子设备。The electronic device provided in this embodiment may be various electronic devices such as a mobile phone, a notebook computer, a desktop computer, a tablet computer, or an e-book.
本实施例还提供另一种电子设备,包括:处理器及计算机程序;This embodiment further provides another electronic device, including: a processor and a computer program;
所述处理器,用于通过执行所述计算机程序,能够执行前述实施例提供的一个或多个搜索方法。The processor is configured to execute one or more search methods provided by the foregoing embodiments by executing the computer program.
在本实施例中所述处理器同样可为中央处理器、微处理器、数字信号处理器、可编程阵列或应用处理器等,所述处理电路可为专用集成电路等具有信息处理功能的器件和/或电路。In this embodiment, the processor may also be a central processing unit, a microprocessor, a digital signal processor, a programmable array or an application processor, etc., and the processing circuit may be an information processing function device such as an application specific integrated circuit. And / or circuit.
所述计算机程序为运行在所述处理器上的可执行代码,所述处理器可以通过所述计算机程序的执行,实现前述的一个或多个技术方案提供的搜搜方法,实现电子设备内部一个搜索框在多个活跃状态下的窗口内的信息搜索,实现了电子设备内部的信息跨窗口搜索,具有搜索效率高及实现简便的特点。The computer program is executable code running on the processor, and the processor can implement the search method provided by one or more of the foregoing technical solutions by executing the computer program to implement an internal electronic device. The information search in the window of the search box in multiple active states realizes the search of information inside the electronic device across the window, and has the characteristics of high search efficiency and simple implementation.
可选地,本公开实施例还提供一种非易失性存储介质,所述非易失性存储介质存有计算机程序,所述计算机程序被执行后,能够前述实施例提供的一个或多个搜索方法。Optionally, the embodiment of the present disclosure further provides a non-volatile storage medium, where the non-volatile storage medium stores a computer program, and after the computer program is executed, one or more of the foregoing embodiments may be provided. Search method.
本公开实施例提供的非易失性存储介质,可为移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质等。The non-volatile storage medium provided by the embodiment of the present disclosure may be a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. A medium or the like that can store program code.
所述非易失性存储介质可选为非瞬间存储介质,可非易失性存储所述计算机程序,从而确保所述计算机程序在断电重新上电后依然能够读取并执行The non-volatile storage medium may be a non-transitory storage medium, and the computer program may be non-volatilely stored to ensure that the computer program can still be read and executed after power-off and power-on.
以下结合上述任意一个实施例提供几个具体示例:Several specific examples are provided below in connection with any of the above embodiments:
示例1:Example 1:
本示例提供一种快速匹配窗口内搜索的方法,包括:This example provides a quick way to match a search within a window, including:
对于多窗口而言,可设置悬浮搜索框,用户在搜索框内输入要搜索的内容后,直接将该搜索框拖动到该窗口上方,则将直接对该窗口内部进行搜索,非常方便。For multi-window, you can set the hover search box. After the user enters the content to be searched in the search box, drag the search box directly to the top of the window, and then search the inside of the window directly, which is very convenient.
更进一步,如果用户需要对多个窗口进行搜索,只需将搜索框拉长,同时悬浮在多个窗口上,即可在多个窗口进行同时搜索,非常方便。Furthermore, if the user needs to search for multiple windows, it is very convenient to simply drag the search box and hover over multiple windows to perform simultaneous search in multiple windows.
采用本示例提供的搜索方法后,信息搜索操作简便且更适应现有需求,操作模式丰富,交互信息量大,搜索更加人性化,且增加了如手机等电子设备的智能特性等优点。After the search method provided by the example, the information search operation is simple and more suitable for existing needs, the operation mode is rich, the amount of interactive information is large, the search is more humanized, and the intelligent characteristics of electronic devices such as mobile phones are added.
示例2:Example 2:
本示例提供一种搜索方法,主要在于搜索是针对已经运行的至少一个运行的程序。比如, 写论文的时候需要找好多资料,会打开多个网页或者多个不同应用界面来查看内容。如果用户在写的时候写某一个观点时,启动搜索功能,输入关键词,搜索的结果将是该多个网页上或者多个不同应用所显示内容所对应的与关键词相关的部分。为了简化搜索,在实施例中提供了一种可以跨窗口搜索的搜索框,当检测到用户在该搜索框内输入的关键字符时,会将该关键字符与多个网页和/或多个应用所显示的内容进行关键字符的比对,将比对之后满足匹配度要求的信息内容作为电子设备内的跨窗口搜索的搜索结果输出。This example provides a search method primarily in that the search is for at least one running program that has already been run. For example, When writing a thesis, you need to find a lot of information, and open multiple web pages or multiple different application interfaces to view the content. If the user writes a certain point of view when writing, the search function is started, and the keyword is input, and the result of the search will be the part related to the keyword corresponding to the content displayed on the plurality of web pages or the plurality of different applications. In order to simplify the search, in the embodiment, a search box that can search across windows is provided, and when a key character input by the user in the search box is detected, the key character is combined with multiple web pages and/or multiple applications. The displayed content is subjected to comparison of key characters, and the information content satisfying the matching degree requirement after the comparison is output as a search result of the cross-window search in the electronic device.
多个窗口可以是一应用对应的多个不同的窗口,例如,浏览器应用,可以对应多个不同窗口,文档编辑应用(例如,word)可以启动多个word各自对应一个窗口;多个窗口也可以是多个不同应用各自的窗口。在一些实施例中一次性搜索的多个窗口,也可以包括不同个应用的不同窗口,可以实现跨应用搜索。当然该一次搜索也可以针对上述两种情况的组合进行搜索。1、一个已经处于工作状态的应用内已经加载完成的多个不同的页面的窗口(可以通过用户的多次操作所加载的不同页面所对应的窗口),即,一个应用下跨多个不同页面的窗口;2、已经处于工作状态的应用程序所对应的窗口,即,跨不同应用的窗口。搜索的结果也是在屏幕针对已经运行的至少一个运行的程序中匹配成功的应用程序的展示或/和匹配成功的应用程序的对应内容的展示。The plurality of windows may be a plurality of different windows corresponding to an application. For example, the browser application may correspond to a plurality of different windows, and the document editing application (for example, word) may start a plurality of words corresponding to one window; It can be a separate window for multiple different applications. In some embodiments, multiple windows searched at one time may also include different windows of different applications, and cross-application search may be implemented. Of course, this search can also search for a combination of the above two cases. 1. A window of a plurality of different pages that have been loaded in an application that is already in a working state (a window corresponding to different pages that can be loaded by multiple operations of the user), that is, an application spans multiple different pages. Window; 2, the window corresponding to the application that is already working, that is, the window across different applications. The result of the search is also a display of matching the display of the successful application or/and the corresponding content of the successfully matched application in the screen for at least one running program that has been run.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本公开各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; The unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分操作可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取非易失性存储介质中,该程序在执行时,执行包括上述方法实施例的操作。A person skilled in the art can understand that all or part of the operations of implementing the foregoing method embodiments may be performed by hardware related to program instructions, and the foregoing programs may be stored in a computer readable non-volatile storage medium. At the time of execution, the operations including the above method embodiments are performed.
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉 本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以所述权利要求的保护范围为准。 The above description is only a specific embodiment of the present disclosure, but the scope of protection of the present disclosure is not limited thereto, and any familiarity A person skilled in the art can easily conceive changes or substitutions within the scope of the present disclosure. Therefore, the scope of protection of the present disclosure should be determined by the scope of the claims.

Claims (12)

  1. 一种搜索方法,包括:A search method that includes:
    响应搜索指令:Respond to search instructions:
    获取搜索框内的用户输入的关键字符;Get the key characters entered by the user in the search box;
    获取处于活跃状态的多个窗口,所述处于活跃状态的多个窗口的每一个窗口各自对应有已经加载的用于窗口输出的显示内容;Acquiring a plurality of windows in an active state, each of the plurality of windows in an active state respectively corresponding to the display content for window output that has been loaded;
    基于所述关键字符以及所述多个窗口进行搜索,产生第一搜索结果;以及Generating a search based on the key characters and the plurality of windows to generate a first search result;
    输出所述第一搜索结果,所述第一搜索结果用于指示所述处于活跃状态的多个窗口中所对应的显示内容上与所述关键字符匹配的第一窗口。And outputting the first search result, where the first search result is used to indicate a first window that matches the key character on the display content corresponding to the plurality of windows in the active state.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    按照预设方式调用与所述处于活跃状态的多个窗口相互独立的所述搜索框。The search box that is independent of the plurality of windows in the active state is called in a preset manner.
  3. 根据权利要求2所述的方法,其中,所述方法还包括:The method of claim 2, wherein the method further comprises:
    基于所述关键字符以及未启动应用的应用标识,获得第二搜索结果;以及Obtaining a second search result based on the key character and an application identifier of the un-launched application;
    输出所述第二搜索结果,所述第二搜索结果用于指示所述未启动的应用标识中的第一应用标识,其中,所述第一应用标识所对应的服务器上具有与所述关键字符匹配的内容。And outputting the second search result, where the second search result is used to indicate the first application identifier in the un-activated application identifier, where the server corresponding to the first application identifier has the key character Matching content.
  4. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    检测用户输入的选择操作;以及Detecting user input selection operations;
    根据所述选择操作,确定用于响应所述搜索框所对应的搜索指令对应的多个窗口。And determining, according to the selecting operation, a plurality of windows corresponding to the search instruction corresponding to the search box.
  5. 根据权利要求1所述的方法,其中,所述处于活跃状态的多个窗口,包括:The method of claim 1 wherein said plurality of windows in an active state comprises:
    同一应用的处于活跃状态的至少两个窗口;At least two windows of the same application that are active;
    和/或,and / or,
    不同应用的处于活跃状态的至少两个窗口。At least two windows of an active state of different applications.
  6. 根据权利要求1所述的方法,其中,所述获取处于活跃状态的多个窗口,包括:The method of claim 1, wherein the obtaining a plurality of windows in an active state comprises:
    获取所述搜索框的第一显示位置;Obtaining a first display position of the search box;
    获取多个处于活跃状态的窗口的第二显示位置;Obtaining a second display position of a plurality of active windows;
    判断所述第一显示位置和第n个处于活跃状态的窗口的所述第二显示位置的相对位置关系是否满足预设位置关系;以及Determining whether a relative positional relationship between the first display position and the second display position of the nth active window satisfies a preset positional relationship;
    当所述第一显示位置和第n个处于活跃状态的窗口的所述第二显示位置的相对位置关系满足所述预设位置关系时,确定所述第n个处于活跃状态的窗口为响应所述搜索框所对应的搜索指令的窗口,其中,所述n为小于N的整整数;所述N为处于所述活跃状态的窗口的总 数。When the relative positional relationship between the first display position and the second display position of the nth active window satisfies the preset positional relationship, determining that the nth active window is a response a window of a search instruction corresponding to the search box, wherein the n is an integer integer less than N; and the N is a total of windows in the active state number.
  7. 根据权利要求6所述的方法,其中,The method of claim 6 wherein
    所述判断所述第一显示位置和第n个处于活跃状态的窗口的所述第二显示位置的相对位置关系是否满足预设位置关系,包括:Determining whether the relative positional relationship between the first display position and the second display position of the nth active window meets the preset positional relationship includes:
    当所述索框的覆盖显示在第一应用的至少一个应用窗口上时,则确定所述第一应用的所有处于活跃状态的窗口的第二显示位置与所述第一显示位置满足所述预设位置关系;其中,所述N个处于活跃状态下的窗口的显示面积小于显示屏的显示面积。Determining, when the overlay of the cable frame is displayed on the at least one application window of the first application, determining that the second display location of the active window of the first application and the first display location meet the pre- A positional relationship is set; wherein a display area of the N active states is smaller than a display area of the display screen.
  8. 根据权利要求6所述的方法,其中,The method of claim 6 wherein
    所述判断所述第一显示位置和第n个处于活跃状态的窗口的所述第二显示位置的相对位置关系是否满足预设位置关,包括:Determining whether the relative positional relationship between the first display position and the second display position of the nth active window meets the preset position, includes:
    根据所述第一显示位置和所述第二显示位置,判断所述搜索框是否覆盖在第n个处于活跃状态的窗口之上;以及Determining, according to the first display position and the second display position, whether the search box is overlaid on the nth active window;
    当所述搜索框覆盖在所述第n个处于活跃状态的窗口上时,确定所述搜索的第一显示位置与第n个处于活跃状态的窗口的所述第二显示位置满足所述预设位置关系。Determining that the first display position of the search and the second display position of the nth active window satisfy the preset when the search box is overlaid on the nth active window Positional relationship.
  9. 根据权利要求6、7或8所述的方法,其中,所述方法还包括:The method of claim 6, 7 or 8, wherein the method further comprises:
    检测移动所述搜索框的移动操作;以及Detecting a movement operation of moving the search box;
    响应所述移动操作,改变所述搜索框的所述第一显示位置。The first display position of the search box is changed in response to the moving operation.
  10. 一种电子设备,包括:An electronic device comprising:
    显示器,用于显示信息;a display for displaying information;
    处理器,与所述显示器连接,用于通过执行计算机程序,执行权利要求1至9任一项提供的搜索方法。A processor coupled to the display for performing the search method of any one of claims 1 to 9 by executing a computer program.
  11. 一种非易失性存储介质,其上存有计算机程序,所述计算机程序被执行后,能够执行权利要求1至9任一项提供的搜索方法。A non-volatile storage medium having stored thereon a computer program capable of executing the search method provided in any one of claims 1 to 9 after being executed.
  12. 一种电子设备,包括:An electronic device comprising:
    检测单元,用于响应搜索指令:A detection unit for responding to search instructions:
    第一获取单元,用于获得搜索框内的用户输入的关键字符;a first obtaining unit, configured to obtain a key character input by a user in the search box;
    第二获取单元,用于获得处于活跃状态的多个窗口,所述处于活跃状态的多个窗口的每一个窗口各自对应有已经加载的用于窗口输出的显示内容;a second obtaining unit, configured to obtain a plurality of windows in an active state, each of the plurality of windows in the active state respectively corresponding to the display content that has been loaded for window output;
    搜索单元,用于基于所述关键字符以及所述多个窗口进行搜索,产生第一搜索结果;以及a searching unit, configured to perform a search based on the key characters and the plurality of windows to generate a first search result;
    输出单元,用于输出所述第一搜索结果,所述第一搜索结果用于指示所述处于活跃状态 的多个窗口中所对应的显示内容上与所述关键字符匹配的第一窗口。 An output unit, configured to output the first search result, where the first search result is used to indicate that the The first window corresponding to the key character on the display content corresponding to the plurality of windows.
PCT/CN2017/107104 2017-06-26 2017-10-20 Search method, electronic device, and non-volatile storage medium WO2019000724A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710493657.XA CN107220377B (en) 2017-06-26 2017-06-26 Search method, electronic device, and computer storage medium
CN201710493657.X 2017-06-26

Publications (1)

Publication Number Publication Date
WO2019000724A1 true WO2019000724A1 (en) 2019-01-03

Family

ID=59951103

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/107104 WO2019000724A1 (en) 2017-06-26 2017-10-20 Search method, electronic device, and non-volatile storage medium

Country Status (2)

Country Link
CN (1) CN107220377B (en)
WO (1) WO2019000724A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220377B (en) * 2017-06-26 2021-03-19 联想(北京)有限公司 Search method, electronic device, and computer storage medium
CN109918001B (en) * 2019-03-28 2022-07-29 北京小米移动软件有限公司 Interface display method, device and storage medium
CN115729408A (en) * 2021-08-31 2023-03-03 华为技术有限公司 Searching method and electronic equipment
CN113987221A (en) * 2021-10-28 2022-01-28 腾讯科技(深圳)有限公司 Information search processing method, information search processing apparatus, information search processing device, storage medium, and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08314679A (en) * 1995-05-18 1996-11-29 Hitachi Ltd Application management control method
CN102004776A (en) * 2010-11-22 2011-04-06 何吴迪 Window expression oriented cloud computing window system constructing method
CN103679722A (en) * 2013-12-10 2014-03-26 苏州盛景空间信息技术有限公司 Normalized cross correlation point matching method based on multiple irregular windows
CN106445273A (en) * 2016-07-11 2017-02-22 深圳市金立通信设备有限公司 Display method and terminal
CN107220377A (en) * 2017-06-26 2017-09-29 联想(北京)有限公司 Searching method, electronic equipment and computer-readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130198640A1 (en) * 2012-01-28 2013-08-01 Thomas S. Brugler Movable search GUI element for restricting search scope
CN105824851A (en) * 2015-01-09 2016-08-03 北京蓝光引力网络股份有限公司 Various desktop positions of search box
CN104933090A (en) * 2015-05-18 2015-09-23 深圳市金立通信设备有限公司 Information searching method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08314679A (en) * 1995-05-18 1996-11-29 Hitachi Ltd Application management control method
CN102004776A (en) * 2010-11-22 2011-04-06 何吴迪 Window expression oriented cloud computing window system constructing method
CN103679722A (en) * 2013-12-10 2014-03-26 苏州盛景空间信息技术有限公司 Normalized cross correlation point matching method based on multiple irregular windows
CN106445273A (en) * 2016-07-11 2017-02-22 深圳市金立通信设备有限公司 Display method and terminal
CN107220377A (en) * 2017-06-26 2017-09-29 联想(北京)有限公司 Searching method, electronic equipment and computer-readable storage medium

Also Published As

Publication number Publication date
CN107220377A (en) 2017-09-29
CN107220377B (en) 2021-03-19

Similar Documents

Publication Publication Date Title
US11740914B2 (en) Positioning user interface components based on application layout and user workflows
US9999021B2 (en) Electronic device and method of providing notification by electronic device
US9383827B1 (en) Multi-modal command display
EP2990930B1 (en) Scraped information providing method and apparatus
KR102544780B1 (en) Method for controlling user interface according to handwriting input and electronic device for the same
KR102064952B1 (en) Electronic device for operating application using received data
KR102249054B1 (en) Quick tasks for on-screen keyboards
US11630576B2 (en) Electronic device and method for processing letter input in electronic device
WO2019000724A1 (en) Search method, electronic device, and non-volatile storage medium
US11620034B2 (en) Systems and methods for providing tab previews via an operating system user interface
CN104850296B (en) Method and device for displaying page content
US11455075B2 (en) Display method when application is exited and terminal
US20140354554A1 (en) Touch Optimized UI
US20150309690A1 (en) Method and system for searching information records
CN109032450B (en) Mobile terminal and floating mark display method thereof
US20180356901A1 (en) Unified input and invoke handling
US9600172B2 (en) Pull down navigation mode
WO2016040710A1 (en) Actionable item switcher view
US11460971B2 (en) Control method and electronic device
KR101934240B1 (en) Method of displaying a keyword and apparatus thereof
WO2023082817A1 (en) Application program recommendation method
CN115033153B (en) Application program recommendation method and electronic device
WO2023207178A1 (en) Call service guidance method, electronic device, and storage medium
WO2015164607A1 (en) Method and system for searching information records

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 01/04/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17915337

Country of ref document: EP

Kind code of ref document: A1