CN107220377B - Search method, electronic device, and computer storage medium - Google Patents

Search method, electronic device, and computer storage medium Download PDF

Info

Publication number
CN107220377B
CN107220377B CN201710493657.XA CN201710493657A CN107220377B CN 107220377 B CN107220377 B CN 107220377B CN 201710493657 A CN201710493657 A CN 201710493657A CN 107220377 B CN107220377 B CN 107220377B
Authority
CN
China
Prior art keywords
search
window
windows
active state
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710493657.XA
Other languages
Chinese (zh)
Other versions
CN107220377A (en
Inventor
许奔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710493657.XA priority Critical patent/CN107220377B/en
Publication of CN107220377A publication Critical patent/CN107220377A/en
Priority to PCT/CN2017/107104 priority patent/WO2019000724A1/en
Application granted granted Critical
Publication of CN107220377B publication Critical patent/CN107220377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The embodiment of the invention discloses a searching method, electronic equipment and a computer storage medium, wherein the searching method comprises the following steps: in response to the search instruction: acquiring key characters input by a user in a search box; acquiring a plurality of windows in an active state, wherein each window of the plurality of windows in the active state corresponds to loaded display content for window output; searching based on the key characters and the windows to generate a first search result; and outputting the first search result, wherein the first search result is used for indicating a first window which is matched with the key character on the corresponding display content in the plurality of windows in the active state.

Description

Search method, electronic device, and computer storage medium
Technical Field
The present invention relates to the field of information technologies, and in particular, to a search method, an electronic device, and a computer storage medium.
Background
With the development of information technology, more and more applications appear in electronic equipment, and desktop pages displaying application icons and windows also increase with the increase of applications, so that a user needs to search for one information in a corresponding window or application one by one, which obviously causes various problems of frequent switching of windows, long information searching time, low efficiency, complex user operation and the like.
Disclosure of Invention
In view of the above, embodiments of the present invention are directed to a searching method, an electronic device, and a computer storage medium, which at least partially solve the above problems of long information searching time and low efficiency.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a first aspect of an embodiment of the present invention provides a search method, where the method includes:
in response to the search instruction:
acquiring key characters input by a user in a search box;
acquiring a plurality of windows in an active state, wherein each window of the plurality of windows in the active state corresponds to loaded display content for window output;
searching based on the key characters and the windows to generate a first search result;
and outputting the first search result, wherein the first search result is used for indicating a first window which is matched with the key character on the corresponding display content in the plurality of windows in the active state.
Optionally, the method further comprises:
and calling the search boxes which are independent from the plurality of windows in the active state according to a preset mode.
Optionally, the method further comprises:
obtaining a second search result based on the key character and the application identifier of the un-started application;
and outputting the second search result, wherein the second search result is used for indicating a first application identifier in the un-started application identifiers, and a server corresponding to the first application identifier has content matched with the key characters.
Optionally, the method further comprises:
detecting a selection operation input by a user;
and determining a plurality of windows corresponding to the search instructions for responding to the search box according to the selection operation.
Optionally, the plurality of windows in an active state includes:
at least two windows of the same application in an active state;
and/or the presence of a gas in the gas,
at least two windows of different applications that are in an active state.
Optionally, the acquiring a plurality of windows in an active state includes:
acquiring a first display position of the search box;
acquiring second display positions of a plurality of windows in an active state;
judging whether the relative position relation between the first display position and the second display position of the nth window in the active state meets a preset position relation or not;
when the relative position relation between the first display position and the second display position of the nth window in the active state meets the preset position relation, determining the nth window in the active state as a window responding to a search instruction corresponding to the search frame; wherein N is an integer less than N; the N is the total number of windows in the active state.
Optionally, the determining whether a relative positional relationship between the first display position and the second display position of the nth window in an active state satisfies a preset positional relationship includes:
when the display proportion of the cable frame, which covers and is displayed on at least one application window of a first application, is larger than a preset proportion, determining that second display positions of all windows in an active state of the first application and the first display position meet the preset position relation; and the display area of the N windows in the active state is smaller than that of the display screen.
Optionally, the determining whether a relative position relationship between the first display position and the second display position of the nth window in an active state satisfies a preset position relationship includes:
judging whether the search box is covered on the nth window in an active state or not according to the first display position and the second display position;
when the search frame is covered on the nth window in the active state, determining that the first display position of the search and the second display position of the nth window in the active state meet the preset position relation.
Optionally, the method further comprises:
detecting a moving operation of moving the search box;
changing the first display position of the search box in response to the moving operation.
A second aspect of an embodiment of the present invention provides an electronic device, including:
a display for displaying information;
and the processor is connected with the display and used for executing one or more searching methods in the technical scheme by executing a computer program.
A third aspect of embodiments of the present invention provides an electronic device, including: a processor and a computer program;
the processor is configured to execute the computer program, so as to be able to perform one or more search methods in the foregoing technical solutions.
A fourth aspect of the embodiments of the present invention provides a computer storage medium, where a computer program is stored, and the computer program is executed to perform one or more search methods in the foregoing technical solutions.
According to the searching method, the electronic equipment and the computer storage medium provided by the embodiment of the invention, the key characters can be obtained according to the content acquired in the searching box; then, matching and searching the key characters and the display contents of the windows in the active state to obtain a search result; and outputting the corresponding search result. It is apparent that in the present embodiment, cross-window searching within the electronic device is enabled. Therefore, as long as a user inputs the content to be searched in the search box, the electronic equipment can automatically search in the windows and return the search result, obviously, the user does not need to switch the windows one by one and inputs the search keywords one by one for searching, the search efficiency is greatly improved, the time consumed by searching is reduced, and the user operation is simplified; thereby improving the intelligence of the electronic equipment and the user satisfaction degree.
Drawings
Fig. 1 is a schematic flowchart of a searching method according to an embodiment of the present invention;
FIG. 2A is a schematic diagram illustrating a first search box according to an embodiment of the present invention;
FIG. 2B is a diagram illustrating a second search box according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a display of a third search box according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a display of a fourth search box according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of another searching method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
The technical solution of the present invention is further described in detail with reference to the drawings and the specific embodiments of the specification.
As shown in fig. 1, the present embodiment provides a search method, where the method includes:
step S110: in response to the search instruction:
step S120: acquiring key characters input by a user in a search box;
step S130: acquiring a plurality of windows in an active state, wherein each window of the plurality of windows in the active state corresponds to loaded display content for window output;
step S140: searching based on the key characters and the windows to generate a first search result;
step S150: and outputting the first search result, wherein the first search result is used for indicating a first window which is matched with the key character on the corresponding display content in the plurality of windows in the active state.
The search method provided by the embodiment can be a search method applied to various user terminals. The user terminal may include: a desktop Personal Computer (PC), a notebook computer, a tablet computer, or a wearable device such as a mobile phone.
The step S110 may include:
displaying a search box, and enabling the search box to enter a preparation state so as to receive content input by a user from a human-computer interaction interface (e.g. a physical keyboard, a virtual keyboard, a voice acquisition interface);
user input confirming the search is detected, or an automatic search instruction triggered by the detection of new information content in the search box is detected.
The step 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 content of the content input by the user is extracted.
In some embodiments, all of the content received by the search box may be searched as the key character. In other embodiments, the content input by the user is processed by a bag-of-words method, etc., and the key information is extracted as the key character.
In step S130, a window that is opened and in an active state in the current state of the electronic device is obtained.
In this embodiment, the window in the active state may include: the device starts and completes the window for content loading. In this way, if the electronic device detects that the window is switched from one window a to another window B in an active state, the electronic device directly performs a switching operation to display the window B, and then the display content in the window B can be seen without regenerating a window and filling the display content into the window.
In summary, the window in the active state in this embodiment may be a window that has been started and completed loading content by the electronic device, and in general, the electronic device does not have processing threads allocated to the windows, and the processing threads are in an active state or a standby state, and if window switching or processing related to the window operation is performed, the electronic device does not need to additionally allocate resources (e.g., storage resources and/or computing resources) to the window again, and may directly operate the window by using the allocated resources (e.g., established threads).
In this embodiment, the window in the active state may be a window in the foreground of the electronic device, for example, a window displayed on the topmost layer of the display interface and available for the user to directly view and operate, or a window in the background, and the user may switch the window, so that the window may be created without reestablishing the window.
Of course, the display status of these active windows may include: the task bar is displayed on the desktop in the form of a window, or displayed on the desktop in the form of an icon, or displayed on the task bar of the desktop in the form of a minimized window.
If the electronic device is a mobile device such as a mobile phone, a background window in an active state may not be displayed currently. 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 that of the display screen, the background window in the active state may be the window covered by the foreground window.
In step S140 in this embodiment, a matching search is performed on the key characters in the search box and the content displayed in the plurality of windows in the active state, so as to obtain a first search result.
The first search result herein may include: search success, search failure, and the like. For example, when the search is successful, then the first search result may include: and the window identification of the window matched with the key character and the display content matched with the key character in the window.
After the search is completed, the first search result is output. Here, outputting the first search result includes: and displaying and outputting the first search result, and/or outputting the first search result in a voice mode.
For example, the step S150 may include:
when the search is successful, (namely, one display content of at least one window in the plurality of windows in the active state meets a preset matching relation with the key character), the corresponding part of the content of the window which is matched with the key character to be successful can be directly displayed; the first window may be a window in which the display content and the key character satisfy the preset matching relationship. In other embodiments, the first window may be a new window for displaying the search result, for example, a dedicated window for displaying the display content having a matching relationship with the key character (i.e., satisfying the preset matching relationship) in the first window. Of course, the first window may also be a display window on which the search box is displayed, and when the search is successful, the display content having a matching relationship with the key character may be directly displayed below the search box.
The step S150 may further include: when the search fails, prompt information of the search failure can be displayed on a search page displaying the search box.
By using the searching method of the embodiment, when a user opens a plurality of applications or opens a window of one application, the user can search whether contents required by the user currently exist in other internal windows through the searching window in the electronic device. For example, a user a writes a paper by using a computer, the writing of the paper opens a document window 1, and also opens a document window 2, a document window 3 and a web page window 1, and reference data required for the user a to write the paper may be in the document windows 1 to 3 and the web page window 1. If it is necessary for the user a to find corresponding content to provide reference for writing a thesis in the prior art, the user may need to sequentially switch the foreground window to the document window 2, the document window 3, and the web page window 1, and then check and/or search in these windows, which is obviously inefficient. In this embodiment, a user can directly input content related to search by using the search box, the electronic device can acquire the key characters, automatically search in the document window 2, the document window 3 and the webpage window 1, generate corresponding search results, and output the search results, obviously, the user does not need to manually switch each window, and check and search in the corresponding window one by one, so that the search efficiency and the intelligence are obviously greatly improved, the user operation is simplified, and the user experience and the intelligence of the electronic device are improved.
Optionally, the method further comprises:
and calling the search boxes which are independent from the plurality of windows in the active state according to a preset mode.
In this embodiment, the search box is independent from the searched window, is not belonging to any one of the active windows, and is an external search box of the active window, where the external search box may be a search box of a device-in-device search application installed in an operating system or a system search box in the operating system.
The windows in the active state comprise search interfaces called by the outside, the external search box can be in butt joint with the windows through the search interfaces, so that key characters are submitted into the windows, information matching search with display contents in the windows is carried out, and search results of a single window corresponding to the window are returned to a search program corresponding to the external search box through the search interfaces. Of course, the correspondence between the search box and the window is not limited thereto.
In still other embodiments, the search box may be a system search box provided within an operating system of the electronic device; when the operating system searches, a search interface for information interaction between the search box and the windows does not need to be arranged on each window. The operating system may acquire a storage region of the display content of each active window, match the key characters of the search box with the display content of the active windows in the corresponding storage region, and then generate the first search result. In still other embodiments, the operating system may copy the display contents in the active window to the search cache region, mark the source window of each display content, search and match the key characters with the display contents in the search cache region, and obtain the search matching result with the display contents of each window, thereby generating the first search result.
In summary, the search box in this embodiment is independent of the searched windows, and is an outer search box of the searched windows in the active state. The external search box may be a search box provided by a search application internal to the device or may be an internal search component of the operating system. The operating system here may be a windows operating system or an android operating system or an apple (iOS) operating system.
In this embodiment, the preset mode call may be used for various modes of starting the search box, and several optional modes are provided as follows:
the first alternative is as follows:
the search box can be a lower sliding box or an upper sliding box; the display of the slide frame or the slide frame herein may include: detecting a downslide operation on a desktop of an operating system, and if the downslide operation is detected, displaying a downslide frame; or detecting an upward sliding operation on a desktop of the operating system, and displaying the upward sliding frame if the upward sliding operation is detected.
The second option is:
when the search box may be a search box provided by a device-internal search application, invoking the search box may include: starting the search-in-device application.
FIG. 2A is a schematic view of a display of a slide-down frame; FIG. 2B is a schematic diagram of a display of a slide-up frame.
The optional mode three:
and when the search box is a system search box, calling the system search box through a pull-down menu of an operating system, or calling the system search box through a pull-up menu of the operating system.
As shown in fig. 3, the pull-down menu may be a window in which the user pops up by clicking a blank space in the document window 1, and a control for calling the search box may be provided in the pull-down menu. Such a drop down menu is a drop down menu within an application. In this embodiment, after the search box is called, at least a part of the search box is displayed in a floating manner on the uppermost layer of the display interface of the electronic device, so that a user can conveniently input content which the user wants to search at any time, and therefore all subsequent search contents can be conveniently searched. For example, when a user wants to search, the user can activate the search box by acting on the floating display part to input the content which the user wants to search in the search box, so that the internal search of the electronic device is realized.
As shown in FIG. 4, a control for scheduling the search box may be provided within a pull-up menu of the operating system.
In short, the search box is scheduled in a preset manner, and is independent of the window formed by the program module outside the window in the active state, and the scheduling manner is not limited to any one of the above manners.
Optionally, as shown in fig. 5, the method further includes:
step S160: obtaining a second search result based on the key character and the application identifier of the un-started application;
step S170: and outputting the second search result, wherein the second search result is used for indicating a first application identifier in the un-started application identifiers, and a server corresponding to the first application identifier has content matched with the key characters.
In this embodiment, for convenience of search, a second search result is obtained based on the search box and the identifier of the application that is not started. And outputting the second search result. For example, the content currently searched by the user may be in an application that is not started, but since the application is not started, the electronic device may have no 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 output as a second search result, which is convenient for the user to obtain the information that the user wants to search by starting the corresponding application, and the like.
Optionally, the method further comprises:
detecting a selection operation input by a user;
and determining a plurality of windows corresponding to the search instructions for responding to the search box according to the selection operation.
In this embodiment, the method further includes detecting a selection operation input by the user, where the selection operation may be a window for selecting a search instruction corresponding to the response search box. And the window corresponding to the search instruction is a searched object, namely a searched window.
For example, the windows currently in an active state in the electronic device include M windows, and N of the windows may be searched for in response to the search instruction according to a selection operation input by the user.
In some embodiments, a window identifier of a window currently in an active state may be displayed on a display page of the search box, and a check box for checking a corresponding window input by a user may be detected to select a part or all of the windows in the active state as a window for responding to a search instruction corresponding to the search box this time. If the user does not check the corresponding window, that is, under the default condition, the search instruction searches all windows corresponding to the search box, that is, searches all windows.
Optionally, the plurality of windows in an active state includes:
at least two windows of the same application in an active state;
and/or the presence of a gas in the gas,
at least two windows of different applications that are in an active state.
In this embodiment, the multiple windows may be different windows of the same application, for example, multiple windows opened by a word application respectively.
In some embodiments, the multiple windows may be windows of different applications, such as a web page window of a web page, an application window of a social application, or a reading window of a reading application, etc.
The windows searched at a time in this embodiment may include: at least two windows of one application, and different windows of at least two applications.
Obviously, in this embodiment, the number of the windows to which the search instruction corresponding to the search box points may be multiple or multiple, and the search box has the characteristic of a wide searchable range.
In some embodiments, the step S130 may further include:
acquiring a first display position of the search box;
acquiring second display positions of a plurality of windows in an active state;
judging whether the relative position relation between the first display position and the second display position of the nth window in the active state meets a preset position relation or not;
when the relative position relation between the first display position and the second display position of the nth window in the active state meets the preset position relation, determining that the nth window in the active state is a window responding to a search instruction corresponding to the search frame, wherein N is a positive integer smaller than N, and N is the total number of the windows in the active state.
In the former embodiment, the window responding to the search instruction this time is determined based on the selection operation of the user, that is, the searched window is determined based on the selection operation of the user. In this embodiment, the electronic device may automatically determine the searched window. Specifically, for example, a first display position of the search box is first obtained, then second display positions of the windows in the active state are obtained, and the searched window is automatically determined based on a relative position relationship between the first display position and the second display positions.
For example, the search box may be a search box that is displayed in suspension. The floating display here may be displayed on the uppermost layer. The searched window may be: a window at least partially covered by the search box.
In other embodiments, when a user operates multiple windows, if the user wants to search the contents of which window, the user may be used to move the search boxes to the corresponding window attachments, so in this embodiment, it may be determined whether the corresponding window is a window that needs to respond to the search instruction according to the distance between the search boxes and the windows.
In some embodiments, the determining whether a relative positional relationship between the first display position and the second display position of the nth window in an active state satisfies a preset positional relationship includes:
when the covering of the cable frame is displayed on at least one application window of a first application, determining that second display positions of all active windows of the first application and the first display position meet the preset position relation; and the display area of the N windows in the active state is smaller than that of the display screen.
At this time, if one search box covers one window of the document application, all the windows in the active state of the document application may be considered to belong to the windows that need to be searched in response to the search instruction.
Further, in order to avoid unnecessary searching and reduce false searching, when the display proportion of the cable frame, which covers and is displayed on at least one application window of the first application, is greater than a preset proportion, it is determined that the second display positions of all windows in an active state of the first application and the first display position satisfy the preset position relationship; and the display area of the N windows in the active state is smaller than that of the display screen.
For example, the preset ratio is 0.3, if the current application a has 3 active windows, where the search box is covered on one or more windows of the application a, the window with the largest current coverage area of the search box is selected, and the display ratio is calculated. For example, if the search box is covered by 50% of the window, it may be considered that obviously, if the ratio is greater than the preset ratio of 0.3, it may be considered that all the windows in the active state of the current application a are the windows that need to be searched.
By setting the preset proportion, unnecessary search caused by careless small part of the search box covering the application which does not need to search can be further reduced. In the present embodiment, the display ratio may be selected from 0.3, 0.4, 0.5, 0.6, and preferably 0.5 or more.
In other embodiments, the determining whether a relative positional relationship between the first display position and the second display position of the nth window in an active state satisfies a preset positional relationship includes:
judging whether the search box is covered on the nth window in an active state or not according to the first display position and the second display position;
when the search frame is covered on the nth window in the active state, determining that the first display position of the search and the second display position of the nth window in the active state meet the preset position relation.
In the embodiment, the window which is focused on which the current search box is covered is not displayed, but the window which is focused on which the search box is covered is known, and all the windows which are covered and in the active state are the windows which need to be searched.
In some embodiments, the method further comprises:
detecting a moving operation of moving the search box;
changing the first display position of the search box in response to the moving operation.
In this embodiment, the search box is movable, the search box may be moved based on a finger sliding operation, a mouse moving operation, and the like of a user, and then based on a position of the search box, which windows are windows that need to respond to the search instruction may be automatically determined, thereby implementing automatic confirmation of the searched windows.
Optionally, the method may further comprise:
detecting a first operation of moving the search box to obtain a first operation parameter;
and moving the search box to the display area of the first application according to the first operation parameter, and displaying the search box on the first application in an overlaying manner. The operation of moving the search box may be one of the selection operations described above.
Optionally, in some embodiments, the selection of the window responding to the search instruction corresponding to the search box may also be implemented directly by selecting the application. For example, the method further comprises: detecting a second operation of selecting the specified application to obtain a second operation parameter; and determining the application responding to the search instruction corresponding to the search box according to the second operation parameter, wherein the window in an active state of the application is the window needing to respond to the search instruction corresponding to the search box.
Optionally, in some embodiments, the application responding to the search instruction corresponding to the box may be configured based on a user input, or may be configured remotely based on a server, so the method may further include:
when the request is received, sending a query request to the server;
and receiving the application identifier returned by the server by the query request, so as to obtain the application needing to respond to the search instruction corresponding to the search box, and further determining all active windows corresponding to the application identifier to be windows needing to respond to the search instruction corresponding to the search box based on the application identifier.
As shown in fig. 6, the present embodiment provides an electronic apparatus including:
a detection unit 110 for, in response to a search instruction:
a first obtaining unit 120, configured to obtain a key character input by a user in a search box;
a second obtaining unit 130, configured to obtain multiple windows in an active state, where each of the multiple windows in the active state corresponds to a display content that has been loaded for window output;
a searching unit 140, configured to perform a search based on the key characters and the windows, and generate a first search result;
an output unit 150, configured to output the first search result, where the first search result is used to indicate a first window that is matched with the key character on the display content corresponding to the window in the active state.
The embodiment provides an electronic device, which can search display contents in a plurality of windows in an active state by using windows in the electronic device, and output a search result of a response, so that a user can conveniently realize cross-window information search of the plurality of windows in one search box, and the efficiency of information search and the intelligence of the electronic device are improved.
The detection unit 110 and the first obtaining unit 120 may include: a human-machine interaction interface, which may include: the system comprises a keyboard, a mouse, a voice acquisition and recognition module or a touch panel and the like, and can be used for extracting the content input by a user. In some embodiments, the first obtaining unit 120 may further include: and the processor or the processing circuit extracts the key characters through information processing.
The second obtaining unit 130 and the searching unit 140 may correspond to a processor or a processing circuit, or a processor or a processing circuit, and may be configured to implement the confirmation of the windows in the active state, search the display contents in the windows according to the key characters, and generate corresponding search results.
The output unit 150 may correspond to a display screen, which may be an electronic ink display screen, an Organic Light Emitting Diode (OLED) display screen, a projection display screen, a liquid crystal display screen, or the like, and may output the first search result by displaying.
In some embodiments, the electronic device further comprises:
and the calling unit is used for calling the search boxes which are mutually independent from the plurality of windows in the active state according to a preset mode.
Optionally, the search unit 140 is further configured to obtain a second search result based on the key character and an application identifier of an application that is not started;
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 un-started application identifiers, where a server corresponding to the first application identifier has content matching the key character.
Optionally, the electronic device further comprises:
a detection unit for detecting a selection operation input by a user;
and the determining unit is used for determining a plurality of windows corresponding to the search instruction corresponding to the response search box according to the selection operation.
Optionally, the plurality of windows in an active state includes: at least two windows of the same application in an active state; and/or at least two windows of different applications that are active.
Optionally, the second obtaining unit may be configured to obtain a first display position of the search box; acquiring second display positions of a plurality of windows in an active state; judging whether the relative position relation between the first display position and the second display position of the nth window in the active state meets a preset position relation or not; and when the relative position relation between the first display position and the second display position of the nth window in the active state meets the preset position relation, determining the nth window in the active state as a window responding to a search instruction corresponding to the search frame.
As shown in fig. 7, an embodiment of the present invention further provides another electronic device, including:
a display 210 for displaying information;
a processor 220, connected to the display 210, for executing one or more search methods provided by the foregoing embodiments by executing a computer program.
The display 210 may be a liquid crystal display, an electronic ink display, a projection display, or an Organic Light Emitting Diode (OLED) display, and may be used to display the window and the search box.
In some embodiments, the electronic device further comprises: the memory may be a storage medium storing various information, for example, may be used to store the computer program, or store display contents in each window in an active state, status marks of each window, and the like.
The processor 220 may be a central processing unit, a microprocessor, a digital signal processor, a programmable array or an application processor, etc., and the processing circuitry may be an application specific integrated circuit, etc.
The display 210 and the processor 220 are connected by a bus interface 230 such as an integrated circuit bus, which can realize the communication of information and instructions.
The processor, through computer-level execution, may implement one or more of the aforementioned search methods.
In some embodiments, the electronic device further includes an external communication interface 240, the external communication interface 240 may be used for the electronic device to perform information interaction with other electronic devices, the external communication interface 240 may correspond to a network interface, and the like.
The electronic device provided by the embodiment can be various electronic devices such as a mobile phone, a notebook computer, a desktop computer, a tablet computer or an electronic book.
The present embodiment also provides another electronic device, including: a processor and a computer program;
the processor, configured to execute the computer program, is capable of performing one or more search methods provided by the foregoing embodiments.
The processor in this embodiment may also be a central processing unit, a microprocessor, a digital signal processor, a programmable array or an application processor, and the processing circuit may be an application specific integrated circuit and/or a device having an information processing function.
The computer program is an executable code running on the processor, and the processor can implement the search method provided by one or more technical schemes through the execution of the computer program, implement information search of a search box in the electronic equipment in a window under multiple active states, implement information cross-window search in the electronic equipment, and have the characteristics of high search efficiency and simple and convenient implementation.
Optionally, an embodiment of the present invention further provides a computer storage medium, where a computer program is stored, and after the computer program is executed, the computer program can perform one or more search methods provided in the foregoing embodiments.
The computer storage medium provided by the embodiment of the present invention may be various media capable of storing program codes, such as a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
The computer storage medium can be selected as a non-instant storage medium and can store the computer program in a non-volatile manner, so that the computer program can still be read and executed after being powered off and powered on again
Several specific examples are provided below in connection with any of the above embodiments:
example 1:
the present example provides a method of searching within a fast matching window, comprising:
for multiple windows, a floating search box can be set, and after a user inputs contents to be searched in the search box, the user directly drags the search box to the upper part of the window, so that the inside of the window can be directly searched, and the method is very convenient.
Furthermore, if a user needs to search a plurality of windows, the user can search the windows at the same time only by lengthening the search box and suspending the search box on the windows at the same time, which is very convenient.
After the searching method provided by the example is adopted, the information searching operation is simple and convenient, the existing requirements are met, the operation mode is rich, the interactive information quantity is large, the searching is more humanized, and the intelligent characteristics of electronic equipment such as a mobile phone and the like are improved.
Example 2:
the present example provides a search method mainly in that a search is for at least one running program that has run. For example, when writing a paper, a user needs to find a lot of data, and opens multiple web pages or multiple different application interfaces to view the content. If the user writes a certain viewpoint during writing, a search function is started, keywords are input, and the search result is the part which corresponds to the content displayed on the multiple webpages or different applications and is related to the keywords. In order to simplify the search, in the embodiment, a search box capable of searching across windows is provided, when a keyword input by a user in the search box is detected, the keyword is compared with content displayed by a plurality of webpages and/or a plurality of applications, and information content meeting the matching degree requirement after comparison is output as a search result of the cross-window search in the electronic device.
The multiple windows may be multiple different windows corresponding to one application, for example, a browser application, and may correspond to multiple different windows, and the document editing application (e.g., a word) may start multiple words each corresponding to one window; the multiple windows may also be respective windows of multiple different applications. Multiple windows, searched at once, may also include different windows for different applications in some embodiments, which may enable cross-application searching. Of course, the single search may be performed for a combination of the two cases. 1. A window (a window corresponding to a different page that can be loaded by a user through multiple operations) of multiple different pages already loaded in an application already in a working state, that is, a window spanning multiple different pages under one application; 2. the windows corresponding to the applications that are already in the working state, i.e., the windows across different applications. The result of the search is also the presentation of the application program matching successfully or/and the presentation of the corresponding content of the application program matching successfully in the screen for the at least one running program that has already run.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention 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 integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (9)

1. A method of searching, the method comprising:
in response to the search instruction:
acquiring key characters input by a user in a search box;
acquiring a plurality of windows in an active state, wherein each window of the plurality of windows in the active state corresponds to loaded display content for window output;
wherein the obtaining of the plurality of windows in the active state comprises: acquiring a first display position of the search box; acquiring second display positions of a plurality of windows in an active state;
judging whether the relative position relation between the first display position and the second display position of the nth window in the active state meets a preset position relation or not;
when the relative position relation between the first display position and the second display position of the nth window in the active state meets the preset position relation, determining the nth window in the active state as a window responding to a search instruction corresponding to the search box, wherein N is a whole integer smaller than N; the N is the total number of windows in the active state;
searching based on the key characters and the windows to generate a first search result;
and outputting the first search result, wherein the first search result is used for indicating a first window which is matched with the key character on the corresponding display content in the plurality of windows in the active state.
2. The method of claim 1,
the method further comprises the following steps:
and calling the search boxes which are independent from the plurality of windows in the active state according to a preset mode.
3. The method of claim 2,
the method further comprises the following steps:
obtaining a second search result based on the key character and the application identifier of the un-started application;
and outputting the second search result, wherein the second search result is used for indicating a first application identifier in the un-started application identifiers, and a server corresponding to the first application identifier has content matched with the key characters.
4. The method of claim 1, further comprising:
detecting a selection operation input by a user;
and determining a plurality of windows corresponding to the search instructions for responding to the search box according to the selection operation.
5. The method of claim 1,
the plurality of windows in an active state, comprising:
at least two windows of the same application in an active state;
and/or the presence of a gas in the gas,
at least two windows of different applications that are in an active state.
6. The method of claim 1,
the determining whether the relative position relationship between the first display position and the second display position of the nth window in the active state satisfies a preset position relationship includes:
when the covering of the cable frame is displayed on at least one application window of a first application, determining that second display positions of all active windows of the first application and the first display position meet the preset position relation; and the display area of the N windows in the active state is smaller than that of the display screen.
7. The method of claim 1,
the determining whether the relative position relationship between the first display position and the second display position of the nth window in the active state satisfies a preset position relationship includes:
judging whether the search box is covered on the nth window in an active state or not according to the first display position and the second display position;
when the search frame is covered on the nth window in the active state, determining that the first display position of the search and the second display position of the nth window in the active state meet the preset position relation.
8. The method of claim 1, 6 or 7,
the method further comprises the following steps:
detecting a moving operation of moving the search box;
changing the first display position of the search box in response to the moving operation.
9. An electronic device, comprising:
a display for displaying information;
a processor, coupled to the display, for executing the search method provided by any one of claims 1 to 8 by executing a computer program.
CN201710493657.XA 2017-06-26 2017-06-26 Search method, electronic device, and computer storage medium Active CN107220377B (en)

Priority Applications (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
PCT/CN2017/107104 WO2019000724A1 (en) 2017-06-26 2017-10-20 Search method, electronic device, and non-volatile storage medium

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN107220377A CN107220377A (en) 2017-09-29
CN107220377B true CN107220377B (en) 2021-03-19

Family

ID=59951103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710493657.XA Active CN107220377B (en) 2017-06-26 2017-06-26 Search method, electronic device, and computer 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933090A (en) * 2015-05-18 2015-09-23 深圳市金立通信设备有限公司 Information searching method and terminal
CN105824851A (en) * 2015-01-09 2016-08-03 北京蓝光引力网络股份有限公司 Various desktop positions of search box
CN106445273A (en) * 2016-07-11 2017-02-22 深圳市金立通信设备有限公司 Display method and terminal

Family Cites Families (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
US20130198640A1 (en) * 2012-01-28 2013-08-01 Thomas S. Brugler Movable search GUI element for restricting search scope
CN103679722B (en) * 2013-12-10 2016-09-14 苏州盛景空间信息技术有限公司 A kind of Point matching method of normalized crosscorrelation based on irregular multiwindow
CN107220377B (en) * 2017-06-26 2021-03-19 联想(北京)有限公司 Search method, electronic device, and computer storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106445273A (en) * 2016-07-11 2017-02-22 深圳市金立通信设备有限公司 Display method and terminal

Also Published As

Publication number Publication date
CN107220377A (en) 2017-09-29
WO2019000724A1 (en) 2019-01-03

Similar Documents

Publication Publication Date Title
US11782581B2 (en) Display control method and device, electronic device and storage medium
CN105320417B (en) Page switching method and client
CN107220377B (en) Search method, electronic device, and computer storage medium
US20170177600A1 (en) Method, system, and device for processing data in connection with an application
CN102929924A (en) Method and device for generating word selecting searching result based on browsing content
CN102929925A (en) Search method and device based on browsing content
CN102929926A (en) Word-taking search method and device based on browsed contents
CN103064620A (en) Touch screen operation method and touch screen terminal
CN108710457B (en) Interaction method and terminal equipment
CN104360805A (en) Application icon management method and application icon management device
US11455075B2 (en) Display method when application is exited and terminal
CN102945243A (en) Contact information identification method based on browsing contents
US20150309690A1 (en) Method and system for searching information records
US20140089841A1 (en) Device and method for providing application interface based on writing input
CN104750378A (en) Automatic input mode switching method and device for input method
CN110992112B (en) Advertisement information processing method and device
CN106775213B (en) A kind of method and terminal switching desktop
US20150058793A1 (en) Method, apparatus and recording medium for a scrolling screen
CN107797750A (en) A kind of screen content identifying processing method, apparatus, terminal and medium
CN111782427A (en) Content operation method and device and computer readable storage medium
CN104216646A (en) Method and device for creating application program based on gesture
WO2016173307A1 (en) Message copying method and device, and smart terminal
CN111401323A (en) Character translation method, device, storage medium and electronic equipment
CN104267867A (en) Content input method and device
CN103037107A (en) Label editing system and work method thereof for smart touch screen mobile phone

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant