WO2023029993A1 - 一种搜索方法和电子设备 - Google Patents
一种搜索方法和电子设备 Download PDFInfo
- Publication number
- WO2023029993A1 WO2023029993A1 PCT/CN2022/112958 CN2022112958W WO2023029993A1 WO 2023029993 A1 WO2023029993 A1 WO 2023029993A1 CN 2022112958 W CN2022112958 W CN 2022112958W WO 2023029993 A1 WO2023029993 A1 WO 2023029993A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- search
- electronic device
- application
- keyword
- content
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 230000004044 response Effects 0.000 claims abstract description 26
- 238000007667 floating Methods 0.000 claims description 151
- 230000006870 function Effects 0.000 claims description 34
- 230000015654 memory Effects 0.000 claims description 29
- 238000004590 computer program Methods 0.000 claims description 10
- 239000000725 suspension Substances 0.000 claims description 4
- 238000004891 communication Methods 0.000 description 25
- 238000012545 processing Methods 0.000 description 23
- 238000010586 diagram Methods 0.000 description 16
- 238000010295 mobile communication Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 238000013461 design Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000010267 cellular communication Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/43—Querying
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Definitions
- the present application relates to the technical field of human-computer interaction, and in particular to a search method and electronic equipment.
- the existing The technology involves displaying the floating search panel when the user selects text information, loading the text information selected by the user into the search box of the floating search panel, performing a search when the user clicks the search button or pressing the confirmation key, and displays the search results Displayed in a new browser tab or new browser window.
- the user experience of this solution is not good.
- the present application provides a search method and an electronic device, which can realize a unified search entry in cross-application scenarios and improve user experience.
- a search method is provided, the method is applied to an electronic device, including:
- the electronic device expands and displays a search floating box, and the search floating box is suspended on the first application interface of the electronic device;
- the electronic device detects keywords input by the user in the search suspension
- the electronic device In response to a second operation, the electronic device highlights the first target information of the first application interface according to the keyword, and the second operation instructs the electronic device to search according to the keyword;
- the electronic device displays a second application interface, the search floating box hovers over the second application interface and the search floating box keeps the keyword unchanged.
- the first target information in this application is the information matching the keyword in the first application interface.
- the search floating frame provided is independent of the application scene, and switching the search scene will not affect the current search state. Therefore, when the electronic device switches to display the second application interface, the search floating frame is suspended on the second application interface and the search floating The keywords in the frame remain unchanged, which can realize a unified search entry in cross-application scenarios, improve search efficiency, and further improve user experience.
- the first application interface includes multimedia content in different content forms
- the first target information is the keyword matching the keyword in the multimedia content in different content forms information.
- the first application interface displayed by the electronic device includes multimedia content in different content forms
- the first target information of the first application interface displayed by the electronic device according to the keyword is the multimedia content in different content forms and the keyword Matched information can support searches in different content forms, so that search content in different content forms can be displayed in the same search result, improving search efficiency, and further improving user experience.
- the electronic device highlights the first target information of the first application interface according to the keyword, including:
- the electronic device uses an engine corresponding to the content form to search for the content of the content form according to the keywords;
- the electronic device highlights the first target information according to the search result.
- the electronic device uses the engine corresponding to any content form in the multimedia content of different content forms to search the content of the content form according to keywords, and highlights the first target information according to the search results, which can be unified
- the search portal supports searches in different content forms, so that search content in different content forms can be displayed in the same search result, improving search efficiency and further improving user experience.
- the multimedia content includes at least two of the following:
- the method further includes:
- the electronic device In response to the electronic device displaying the second application interface, the electronic device highlights the second target information of the second application interface according to the keyword; or,
- the electronic device In response to a fourth operation, the electronic device highlights the second target information of the second application interface according to the keyword, and the fourth operation instructs the electronic device to search according to the keyword.
- the method further includes:
- the electronic device retracts the search floating frame so that the search floating frame is in a floating window state, and the search floating frame is suspended on the application interface currently displayed on the electronic device.
- the search floating box of this application is independent of application scenarios, the search floating box in this application can be collapsed independently of system activities, improving search efficiency and further improving user experience.
- the method further includes:
- the electronic device closes the search floating box.
- the search floating box of this application is independent of application scenarios, the search floating box in this application can be closed independently of system activities, improving search efficiency and further improving user experience.
- an apparatus which is included in an electronic device, and has a function of realizing the behavior of the electronic device in the above aspect and possible implementation manners of the above aspect.
- the functions may be implemented by hardware, or may be implemented by executing corresponding software through hardware.
- Hardware or software includes one or more modules or units corresponding to the functions described above.
- an electronic device including: one or more processors; memory; one or more application programs; and one or more computer programs. Wherein one or more computer programs are stored in the memory, the one or more computer programs comprising instructions. When the instruction is executed by the electronic device, the electronic device is made to execute the method in any possible implementation of the first aspect above.
- a chip system including at least one processor, and when program instructions are executed in the at least one processor, the method in the possible implementation of any one of the above first aspects can be performed on the electronic device The above functions are realized.
- a computer storage medium including computer instructions.
- the computer instructions When the computer instructions are run on the electronic device, the electronic device is made to execute the method in any possible implementation of the first aspect above.
- a computer program product is provided.
- the computer program product is run on an electronic device, the electronic device is made to execute the method in any possible design of the first aspect above.
- FIG. 1 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
- FIG. 2 is a schematic diagram of a software structure of an electronic device provided by an embodiment of the present application.
- Fig. 3 is a schematic diagram of a set of GUI provided by the embodiment of the present application.
- Fig. 4 is a schematic diagram of another group of GUI provided by the embodiment of the present application.
- Fig. 5 is a schematic diagram of another set of GUI provided by the embodiment of the present application.
- Fig. 6 is a schematic diagram of another set of GUI provided by the embodiment of the present application.
- Fig. 7 is a schematic diagram of another set of GUI provided by the embodiment of the present application.
- Fig. 8 is a schematic diagram of a search method provided by an embodiment of the present application.
- FIG. 9 is a schematic diagram of another search method provided by the embodiment of the present application.
- Fig. 10 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
- Fig. 11 is a schematic block diagram of another electronic device provided by an embodiment of the present application.
- first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as “first” and “second” may explicitly or implicitly include one or more of these features.
- the search method provided by the embodiment of the present application can be applied to mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) devices, notebook computers, super mobile personal computers ( Ultra-mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA) and other electronic devices, the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
- FIG. 1 shows a schematic structural diagram of an electronic device 100 .
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
- the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
- the illustrated components can be realized in hardware, software or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. In the embodiment of the present application, the detection of keywords, separation of multimedia files, and matching of keywords through corresponding engines according to the separated results can be implemented by the processor 110 .
- the controller may be the nerve center and command center of the electronic device 100 .
- the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is a cache memory.
- the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
- processor 110 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input and output
- subscriber identity module subscriber identity module
- SIM subscriber identity module
- USB universal serial bus
- the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
- Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
- at least part of the functional modules of the mobile communication module 150 may be set in the processor 110.
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
- a modem processor may include a modulator and a demodulator.
- the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
- the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
- the modem processor may be a stand-alone device.
- the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
- the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
- the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display text, images, videos, etc., for example, the first target information and/or the second target information in this application can be displayed, and the search floating box in this application can also be displayed.
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
- the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
- the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
- Video codecs are used to compress or decompress digital video.
- the electronic device 100 may support one or more video codecs.
- the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
- MPEG moving picture experts group
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
- the internal memory 121 may be used to store computer-executable program codes including instructions.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 .
- the internal memory 121 may include an area for storing programs and an area for storing data.
- the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
- the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
- the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
- Touch sensor 180K also known as "touch panel”.
- the touch sensor 180K can be arranged on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called “touch screen”.
- the touch sensor 180K is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to the touch operation can be provided through the display screen 194 .
- the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
- the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
- the embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
- FIG. 2 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
- the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
- the application layer can consist of a series of application packages.
- the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer can include window managers, content providers, view systems, phone managers, resource managers, notification managers, and so on.
- a window manager is used to manage window programs.
- the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
- Content providers are used to store and retrieve data and make it accessible to applications.
- Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
- the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
- the view system can be used to build applications.
- a display interface can consist of one or more views.
- a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
- the phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
- the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
- the notification manager is used to notify the download completion, message reminder, etc.
- the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
- prompting text information in the status bar issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
- a system library can include multiple function modules. For example: surface manager (surface manager), media library (media libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
- the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
- the existing The technology involves displaying the floating search panel when the user selects text information, loading the text information selected by the user into the search box of the floating search panel, performing a search when the user clicks the search button or pressing the confirmation key, and displays the search results Displayed in a new browser tab or new browser window.
- the user experience of this solution is not good.
- the present application provides a search method and an electronic device, which can realize a unified search entry in cross-application scenarios and improve user experience.
- Fig. 3 shows a set of graphical user interface (graphical user interface, GUI) of the mobile phone, wherein, (a) in Fig. 3 to (i) in Fig. Search method in this application.
- GUI graphical user interface
- the GUI is the desktop of the mobile phone.
- the search floating box can be started to display a GUI as shown in (b) in FIG. 3 , which can be called a search interface.
- the search floating box is suspended on the top layer of the application.
- the search floating box can be independent of any application in the mobile phone.
- the user can move the search floating box frame to any position.
- the user can also open an application in the mobile phone, and use the search floating box to search under the application.
- the user may click on the application of the gallery, and when the mobile phone detects that the user clicks the icon 302 of the gallery, the GUI as shown in (c) in FIG. 3 may be displayed.
- the interface displays different photo albums, including: all photos, cameras, videos, screen captures, and the like. It is worth noting that at this time, the search floating box is still floating on the top layer of the application. In this interface, users can search for any content about photos.
- the user may input the keyword "landscape" in the search floating box, and click the search control.
- the mobile phone detects that the user clicks the icon 303 of the search control, it may display a GUI as shown in (e) in FIG. 3 .
- the search floating box may be in a collapsed state or an exit state, he may click other controls in the search floating box or use other methods.
- the search suspension box is in a retracted state, and is suspended on the top layer of the application.
- GUI as shown in (h) in FIG. 3 can be displayed.
- the user can also make the search floating box in the exit state by sliding. Referring to the GUI shown in (i) in FIG. Swipe in the direction of the arrow shown in the figure, so that the search floating box is in the exit state. After the mobile phone detects the user's operation of sliding the icon 306 of the search floating frame, the GUI as shown in (h) in FIG. 3 can still be displayed.
- Fig. 4 shows another set of GUIs of the mobile phone, where (a) to (f) in Fig. 4 shows that the search floating box in the mobile phone implements the search method in this application.
- the GUI is the desktop of the mobile phone.
- the search floating box can be started to display a GUI as shown in (b) in FIG. 4 , which can be called a search interface.
- the search floating box is suspended on the top layer of the application.
- the search floating box can be independent of any application in the mobile phone.
- the user can move the search floating box frame to any position.
- the user can also open an application in the mobile phone, and use the search floating box to search under the application.
- the user may click on the Notepad application, and when the mobile phone detects that the user clicks on the Notepad icon 402, the GUI as shown in (c) in FIG. 4 may be displayed.
- the interface displays different note contents, including: 2021 design trend selection (covered by the search floating box in the figure), meeting minutes, travel check-in, etc. It is worth noting that at this time, the search floating box is still floating on the top layer of the application. In this interface, users can search for any content about the notepad.
- the user may input the keyword "meeting" in the search floating box, and click the search control.
- the mobile phone detects that the user clicks the icon 403 of the search control, it may display a GUI as shown in (e) in FIG. 4 .
- Fig. 5 shows another set of GUIs of the mobile phone, wherein (a) to (f) in Fig. 5 show that the search floating box in the mobile phone implements the search method in this application.
- the GUI is the desktop of the mobile phone.
- the search floating box can be started to display a GUI as shown in (b) in FIG. 5 , which can be called a search interface.
- the search floating box is suspended on the top layer of the application.
- the search floating box can be independent of any application in the mobile phone.
- the user can move the search floating box frame to any position.
- the user can also open an application in the mobile phone, and use the search floating box to search under the application.
- the user may click on the application of the address book, and when the mobile phone detects that the user clicks the icon 502 of the address book, the GUI as shown in (c) in FIG. 5 may be displayed.
- the interface displays different contacts, including: Ahong, Ahuang, Alan and so on. It is worth noting that at this time, the search floating box is still floating on the top layer of the application. In this interface, users can search for contact information about a contact.
- the user can input the keyword "white” in the search floating box, and click the search control.
- the mobile phone detects that the user clicks the icon 503 of the search control, it may display a GUI as shown in (e) in FIG. 5 .
- Fig. 6 shows another set of GUIs of the mobile phone, where (a) to (f) in Fig. 6 shows that the search floating box in the mobile phone implements the search method in this application.
- the GUI is the desktop of the mobile phone.
- the search floating box can be started to display a GUI as shown in (b) in FIG. 6 , which can be called a search interface.
- the search floating box is suspended on the top layer of the application.
- the search floating box can be independent of any application in the mobile phone.
- the user can move the search floating box frame to any position.
- the user can also open an application in the mobile phone, and use the search floating box to search under the application.
- the user may click on the browser application, and when the mobile phone detects that the user clicks on the browser icon 602, the GUI as shown in (c) in FIG. 6 may be displayed.
- the interface displays different news contents. It is worth noting that at this time, the search floating box is still floating on the top layer of the application. In this interface, users can search for content.
- the user may input the keyword "travel" in the search floating box, and click the search control.
- the mobile phone detects that the user clicks the icon 603 of the search control, it may display a GUI as shown in (e) in FIG. 6 .
- the search floating box of this application can search for them, that is, the unified search entry can improve the search efficiency. Further, Can improve user experience.
- search floating box provided by this application is independent of the search scene, and the current state of the search floating box will not be affected when the search scene is switched.
- search floating box provided by this application is independent of the search scene, and the current state of the search floating box will not be affected when the search scene is switched.
- Fig. 7 shows another set of GUIs of the mobile phone, wherein (a) to (g) in Fig. 7 shows that the search floating box in the mobile phone implements the search method in this application.
- the GUI is the desktop of the mobile phone.
- the search floating box can be started to display a GUI as shown in (b) in FIG. 7 , which can be called a search interface.
- the search floating box is suspended on the top layer of the application, and the user can open an application in the mobile phone, and use the search floating box to search under the application.
- the user may click on the Notepad application, and when the mobile phone detects that the user clicks on the Notepad icon 702, the GUI as shown in (c) in FIG. 7 may be displayed.
- the interface displays different notes, including: 2021 design trend selection (covered by the search floating box in the figure), meeting minutes, travel check-in, etc. It is worth noting that at this time, the search floating box is still floating on the top layer of the application. In this interface, users can search for any content about the notepad.
- the user may input the keyword "travel" in the search floating box, and click the search control.
- the mobile phone detects that the user clicks the icon 703 of the search control, it may display a GUI as shown in (e) in FIG. 7 .
- the interface displays different content about various news, and at this time, the content in the search floating box is still "travel". Further, the user can search for content about "travel" under the "browser" application.
- the mobile phone detects that the user clicks the icon 704 of the search control, it may display a GUI as shown in (g) in FIG. 7 .
- the content in the search floating box remains unchanged, and the search results of the switched applications can be directly displayed.
- the GUI as shown in (g) in FIG. 7 may be directly displayed.
- the search floating box can remain unchanged, and the search and search results based on the changed search scene Keywords related to the content and highlighted.
- Fig. 8 shows a schematic diagram of a search method 800 provided by an embodiment of the present application, and the method 800 may include steps S810-S850.
- the search entry in this application can be understood as the search floating box in the above embodiment
- the query information can be understood as the keyword in the above embodiment, such as the keyword “scenery” in the GUI shown in (d) in Figure 3 above. ", or, the keyword “meeting” in the GUI shown in (d) in the above-mentioned Figure 4, or, the keyword “white” in the GUI shown in (d) in the above-mentioned Figure 5, or, Figure 6
- an application displayed on the interface may be entered from the main interface for the first time (as shown in Fig. 3-6 above), or Switching from other applications to the application (as shown in FIG. 7 above) may also be a thread switching within the application, which is not limited.
- step S820 If yes, execute step S820, if not, return to step S810.
- the search floating frame actively obtains the content of the current page.
- the search floating box can actively acquire the content displayed on the current page, and the content can include display elements and display positions.
- the application opened in the above Figure 3 is a gallery, and the interface displays different albums, then the search floating box can obtain all the albums included in the current page and the location corresponding to each album; another example, the above Figure 4
- the application opened in . the interface displays different contacts, then the search floating box can obtain all the contacts included in the current page and the location corresponding to each contact; for another example, the application opened in the above Figure 6 is a browser, The interface displays different news content, and the search floating box can obtain all the news included in the current page and their corresponding positions.
- the display element and display position may also be obtained through the current application, and the current application sends the obtained content to the search floating box.
- the application opened in Figure 3 above is a gallery, and the interface displays different photo albums, then the photo album application can obtain all the photo albums included in the current page and the location corresponding to each photo album, and will obtain The received content is sent to the search floating box.
- the search floating box after the search floating box acquires the content of the current page, it may decompose the acquired content, which may include the separation of multimedia content such as pictures, texts, and videos.
- the opened application in FIG. 3 above is a gallery, and the interface displays different photo albums, which include pictures and videos. Therefore, the search floating box can decompose it and separate the pictures and videos.
- the application opened in Figure 6 above is a browser, and the interface displays different news content, including text, pictures, and videos. Therefore, the search floating box can decompose it and separate text, pictures, and videos.
- multimedia content in different content forms shown in the above example is only illustrative, and may also include other multimedia content that may appear in the future, without limitation.
- each content form in different content forms has its own corresponding engine, and each corresponding engine is used to search keywords.
- a search in the form of a corresponding picture is required, and the search floating box can search by calling a picture search engine to find pictures related to "scenery" and highlight them; as shown in Figure 4 above It is necessary to search in the form of text, and the search floating box can search by calling the text search engine to find the content related to "conference” and highlight it; as shown in Figure 5 above, it is necessary to search in the form of text and pictures , the search floating box can be searched by calling the text search engine and image search engine to find the content related to "white” and highlight it; as shown in Figure 6 above, it is necessary to search in the form of text and image, search The floating box can search by calling a text search engine and an image search engine, find content related to "travel", and highlight it.
- the search floating frame provided is independent of the application scene, and switching the search scene will not affect the current search state. Therefore, when the electronic device switches to display the second application interface, the search floating frame is suspended on the second application interface and the search floating The box keeps the keywords unchanged, which can realize the unified search entry in cross-application scenarios and improve search efficiency; in addition, when searching in new scenarios, the interface will display the latest matching results in real time according to different application scenarios, thereby improving user experience .
- FIG. 9 shows a schematic flowchart of a search method 900 .
- the method 900 may include:
- the electronic device expands and displays a search floating box, and the search floating box is suspended on the first application interface of the electronic device.
- the first operation in this embodiment of the present application may include different operations.
- the first operation may include the operation of the user clicking the icon 301 of the search floating box on the desktop in the above-mentioned Figure 3 and the user clicking the gallery operation of the icon 302; if the electronic device displayed the first application interface before the first operation, the first operation may include the operation in which the user clicks the icon 301 of the search floating box on the desktop in FIG. 3; limit.
- the first application interface in the embodiment of the present application is the interface of the application, such as the gallery interface in the above-mentioned Figure 3, the Notepad interface in the above-mentioned Figure 4, the address book interface in the above-mentioned Figure 5, and the browser in the above-mentioned Figure 6 interface etc.
- the electronic device detects a keyword input by the user in the search hover.
- the keywords in this embodiment of the application may be "scenery" in the above-mentioned Figure 3, "meeting” in the above-mentioned Figure 4, "white” in the above-mentioned Figure 5, "travel” in the above-mentioned Figure 6, etc.
- the electronic device In response to a second operation, the electronic device highlights the first target information of the first application interface according to the keyword, and the second operation instructs the electronic device to search according to the keyword.
- the second operation in the embodiment of the present application may be the operation in which the user clicks the icon 303 of the search control in the above-mentioned FIG. 3 , or the operation in which the user clicks the icon 403 of the search control in the above-mentioned FIG.
- the highlighted first target information is related to keywords.
- the keyword input by the user is "scenery”
- the highlighted first target information is related to the "scenery”.
- the two albums “All Photos” and “Petals” are highlighted, and the first target information in this application includes the albums “All Photos” and "Petals”. Two photo albums.
- the keyword input by the user in Figure 4 is "meeting”
- the highlighted first target information is information related to “meeting”, as shown in (e) in Figure 4 above, the "meeting minutes” item If the column is highlighted, the first target information in this application includes the column "meeting minutes”.
- the electronic device displays a second application interface, the search floating box hovers over the second application interface, and the search floating box keeps the keyword unchanged.
- the third operation in the embodiment of the present application may include the operation of the user exiting the first application and opening the second application, displaying the second application interface on the electronic device, the search floating box hovering over the second application interface and the search
- the floating frame keeps the keyword unchanged.
- the interface displays different content about various news (which can be understood as the second application interface in this application).
- the content in the search floating box is still “travel”.
- the user can search for content about "travel” under the "browser” application.
- the search floating frame provided is independent of the application scene, and switching the search scene will not affect the current search state. Therefore, when the electronic device switches to display the second application interface, the search floating frame is suspended on the second application interface and the search floating The keywords in the frame remain unchanged, which can realize a unified search entry in cross-application scenarios, improve search efficiency, and further improve user experience.
- the first application interface includes multimedia content in different content forms
- the first target information is information matching the keyword in the multimedia content in different content forms.
- the electronic device highlights the first target information of the first application interface according to the keyword, including:
- the electronic device uses an engine corresponding to the content form to search for the content of the content form according to the keywords;
- the electronic device highlights the first target information according to the search result.
- the method 900 further includes:
- the electronic device acquires the first information of the first application interface and the location of the first information
- the electronic device highlights the first target information according to the search result, including:
- the electronic device highlights the first target information in combination with the location of the search result.
- the first target information is information in the first information, that is, the first information includes the first target information.
- the application opened in Figure 3 is a gallery
- the interface displays different albums
- the first information may include the album displayed on the interface
- the input in Figure 3 The keyword is "scenery”
- the search floating box can call the image search engine to search, find pictures related to "scenery”, and highlight them, refer to (e) in Figure 3, the interface displays " If the two albums "All Photos” and "Petals" are highlighted, the first target information may include the two albums “All Photos” and "Petals”.
- the multimedia content includes at least two of the following: text, pictures, and videos.
- the method 900 further includes:
- the electronic device In response to the electronic device displaying the second application interface, the electronic device highlights the second target information of the second application interface according to the keyword; or,
- the electronic device In response to a fourth operation, the electronic device highlights the second target information of the second application interface according to the keyword, and the fourth operation instructs the electronic device to search according to the keyword.
- the electronic device in response to the electronic device displaying the second application interface, the electronic device highlights the second target information of the second application interface according to keywords.
- the search floating box The content of remains unchanged, and the search results of the switched application can be directly displayed.
- the GUI as shown in (g) in FIG. 7 may be directly displayed.
- the electronic device in response to the fourth operation, highlights the second target information of the second application interface according to the keyword.
- the fourth operation in the embodiment of the present application may include the operation of the user clicking the icon of the search control. Still referring to the above-mentioned FIG. ) shown in the GUI.
- search floating box can be in other states, please refer to the following for details.
- the method 900 further includes:
- the electronic device retracts the search floating frame so that the search floating frame is in a floating window state, and the search floating frame is suspended on the application interface currently displayed on the electronic device.
- the fifth operation in the embodiment of the present application may be an operation in which the user clicks the icon of the minimized control.
- a GUI as shown in (g) in FIG. 3 can be displayed. Referring to the GUI shown in (g) in FIG. 3 , it can be seen that, at this time, the search suspension box is in a retracted state, and is suspended on the top layer of the application.
- the search floating box is suspended on the first application interface after responding to the fifth operation; if the electronic device displays the first application interface before performing the fifth operation is the second application interface, after responding to the fifth operation, the search floating box is suspended on the second application interface.
- the electronic device displays the main interface before performing the fifth operation then after responding to the fifth operation, the search floating box is suspended on the main interface.
- the search floating box of this application is independent of application scenarios, the search floating box in this application can be collapsed independently of system activities, improving search efficiency and further improving user experience.
- the method 900 further includes:
- the electronic device closes the search floating box.
- the sixth operation in the embodiment of the present application may be the operation of the user clicking the icon of the exit control or the operation of the user sliding.
- the GUI shown in (h) in Figure 3 can be displayed; as in (i) in Figure 3 above, when the mobile phone detects the user's operation of sliding the icon 306 of the search floating box, it can still display the GUI shown in Figure 3.
- GUI shown in (h) in 3. Referring to the GUI shown in (h) in FIG. 3 , it can be seen that at this time, the search floating box is in the exit state, and there is no search floating box on the interface, that is, the electronic device closes the search floating box.
- the search floating box of this application is independent of application scenarios, the search floating box in this application can be closed independently of system activities, improving search efficiency and further improving user experience.
- the electronic device includes hardware and/or software modules corresponding to each function.
- the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions in combination with the embodiments for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
- the functional modules of the electronic device may be divided according to the above method example.
- each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
- the above integrated modules may be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic, and is only a logical function division, and there may be other division methods in actual implementation.
- FIG. 10 shows a possible composition diagram of the electronic device 1200 involved in the above embodiment.
- the electronic device 1200 may include: a display module 1210 and detection module 1220.
- the display module 1210 may be used to support the electronic device 1200 to execute the above step S910 or S930 or S940, etc., and/or other processes for the technologies described herein.
- the detection module 1220 may be used to support the electronic device 1200 to execute the above step S920, etc., and/or other processes for the technologies described herein.
- the electronic device provided in this embodiment is used to execute the above-mentioned method of the present application, so the same effect as the above-mentioned implementation method can be achieved.
- the electronic device may include a processing module, a memory module and a communication module.
- the processing module may be used to control and manage the actions of the electronic device, for example, may be used to support the electronic device to execute the steps performed by the above-mentioned units.
- the memory module can be used to support electronic devices to execute stored program codes and data, and the like.
- the communication module can be used to support the communication between the electronic device and other devices.
- the processing module may be a processor or a controller. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
- the processor can also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (digital signal processing, DSP) and a microprocessor, and the like.
- the storage module may be a memory.
- the communication module may be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and a Wi-Fi chip.
- the electronic device involved in this embodiment may be a device having the structure shown in FIG. 1 .
- FIG. 11 shows a schematic diagram of another possible composition of the electronic device 1400 involved in the above embodiment. As shown in FIG. It may also be referred to as a display unit) 1440 , a peripheral interface 1450 , a storage unit 1460 , a power supply 1470 , a video decoder 1480 and an audio decoder 1490 .
- the communication unit 1410 is used to establish a communication channel, so that the electronic device 1400 can connect to a remote server through the communication channel, and download media data from the remote server.
- the communication unit 1410 may include communication modules such as a WLAN module, a Bluetooth module, an NFC module, and a baseband module, and a radio frequency (Radio Frequency, referred to as RF) circuit corresponding to the communication module, for performing wireless local area network communication, Bluetooth communication, NFC communication, infrared communication and/or cellular communication system communication, such as wideband code division multiple access (W-CDMA) and/or high speed downlink packet access (HSDPA).
- the communication module 1410 is used to control the communication of various components in the electronic device, and can support direct memory access.
- the input unit 1420 may be used to implement user interaction with the electronic device and/or input information into the electronic device.
- the input unit may be a touch panel, or other human-computer interaction interface, such as physical input keys, a microphone, etc., or other external information acquisition devices, such as a camera.
- the processing unit 1430 is the control center of the electronic device, which can use various interfaces and lines to connect various parts of the entire electronic device, by running or executing the software programs and/or modules stored in the storage unit, and calling the stored in the storage unit data to perform various functions of electronic devices and/or to process data.
- the above steps S810 , S820 , S830 , S840 , etc. may be implemented by the processing unit 1430 .
- the output unit 1440 includes but not limited to an image output unit and a sound output unit.
- the image output unit is used for outputting text, pictures and/or videos.
- the touch panel used in the input unit 1420 may also serve as the display panel of the output unit 1440 at the same time. For example, when the touch panel detects a touch or approach gesture operation on it, it transmits to the processing unit to determine the type of the touch event, and then the processing unit provides corresponding visual output on the display panel according to the type of the touch event.
- the input unit 1420 and the output unit 1440 are used as two independent components to realize the input and output functions of the electronic device, in some embodiments, the touch panel and the display panel can be integrated to realize Input and output functions of electronic devices.
- the image output unit can display various graphical user interfaces as virtual control components, including but not limited to windows, scrolling shafts, icons, and scrapbooks, for users to operate by touch.
- the storage unit 1460 can be used to store software programs and modules, and the processing unit executes various functional applications of the electronic device and implements data processing by running the software programs and modules stored in the storage unit.
- This embodiment also provides a computer storage medium, in which computer instructions are stored, and when the computer instructions are run on the electronic device, the electronic device is made to execute the above-mentioned relevant method steps to implement the method in the above-mentioned embodiment.
- This embodiment also provides a computer program product, which, when running on a computer, causes the computer to execute the above-mentioned related steps, so as to implement the method in the above-mentioned embodiment.
- an embodiment of the present application also provides a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, The processor can execute the computer-executable instructions stored in the memory, so that the chip executes the methods in the foregoing method embodiments.
- the electronic device, computer storage medium, computer program product or chip provided in this embodiment is all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the corresponding method provided above The beneficial effects in the method will not be repeated here.
- the disclosed devices and methods may be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of modules or units is only a logical function division. In actual implementation, there may be other division methods.
- multiple units or components can be combined or It may be integrated into another device, or some features may be omitted, or not implemented.
- the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
- a unit described as a separate component may or may not be physically separated, and a component shown as a unit may be one physical unit or multiple physical units, which may be located in one place or distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
- an integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium.
- the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods in various embodiments of the present application.
- the aforementioned storage medium includes: various media that can store program codes such as U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Multimedia (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请提供了一种搜索方法和电子设备,所述方法应用于电子设备,该方法包括:响应于第一操作,所述电子设备展开显示搜索悬浮框,所述搜索悬浮框悬浮于所述电子设备的第一应用界面;所述电子设备检测用户在所述搜索悬浮输入的关键词;响应于第二操作,所述电子设备根据所述关键词突出显示所述第一应用界面的第一目标信息,所述第二操作指示所述电子设备根据所述关键词进行搜索;响应于第三操作,所述电子设备显示第二应用界面,所述搜索悬浮框悬浮于所述第二应用界面且所述搜索悬浮框保持所述关键词不变。本申请的方案,可以实现跨应用场景下,统一搜索入口,提升用户体验。
Description
本申请要求于2021年08月31日提交中国专利局、申请号为202111014659.9、申请名称为“一种搜索方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及人机交互技术领域,尤其涉及一种搜索方法和电子设备。
随着终端应用越来越丰富、不同应用承载信息越来越多的背景下,在不同应用之间切换、在某个应用下快速获取有效信息的需求越来越迫切,针对该需求,现有技术中涉及到了,在用户选中文本信息时显示悬浮搜索面板,将用户选中的文本信息加载到悬浮搜索面板的搜索框中,当用户点击搜索按钮或者敲击确认键时进行搜索,并将搜索结果显示在新的浏览器页签或新的浏览器窗口中。然而该方案用户体验并不好。
发明内容
本申请提供一种搜索方法和电子设备,可以实现跨应用场景下,统一搜索入口,提升用户体验。
第一方面,提供一种搜索方法,所述方法应用于电子设备,包括:
响应于第一操作,所述电子设备展开显示搜索悬浮框,所述搜索悬浮框悬浮于所述电子设备的第一应用界面;
所述电子设备检测用户在所述搜索悬浮输入的关键词;
响应于第二操作,所述电子设备根据所述关键词突出显示所述第一应用界面的第一目标信息,所述第二操作指示所述电子设备根据所述关键词进行搜索;
响应于第三操作,所述电子设备显示第二应用界面,所述搜索悬浮框悬浮于所述第二应用界面且所述搜索悬浮框保持所述关键词不变。
可以理解的是,本申请中的第一目标信息为所述第一应用界面中与所述关键词匹配的信息。
本申请的方案,提供的搜索悬浮框与应用场景独立,切换搜索场景不会影响当前搜索状态,因此,在电子设备切换显示第二应用界面时,搜索悬浮框悬浮于第二应用界面且搜索悬浮框保持关键词不变,可以实现跨应用场景下,统一搜索入口,提高搜索效率,进一步地,可以提升用户体验。
结合第一方面,在一些可能的实现方式中,所述第一应用界面包括不同内容形式的多媒体内容,所述第一目标信息为所述不同内容形式的多媒体内容中与所述关键词匹配的信息。
本申请提供的方案,电子设备显示的第一应用界面包括不同内容形式的多媒体内容,该电子设备根据关键词显示的第一应用界面的第一目标信息为不同内容形式的多媒体内容中与关键词匹配的信息,可以支持不同内容形式的搜索,从而将不同内容形式的搜索内容至于同一搜索结果中展示,提高搜索效率,进一步地,可以提升用户体验。
结合第一方面,在一些可能的实现方式中,所述电子设备根据所述关键词突出显示所述第一应用界面的第一目标信息,包括:
对于所述不同内容形式的多媒体内容中任意内容形式的内容,所述电子设备利用所述内容形式对应的引擎根据所述关键词对所述内容形式的内容进行搜索;
所述电子设备根据搜索结果突出显示所述第一目标信息。
本申请提供的方案,电子设备通过利用不同内容形式的多媒体内容中的任意内容形式对应的引擎根据关键词对所述内容形式的内容进行搜索,并根据搜索结果突出显示第一目标信息,可以统一搜索入口,支持不同内容形式的搜索,从而将不同内容形式的搜索内容至于同一搜索结果中展示,提高搜索效率,进一步地,可以提升用户体验。
结合第一方面,在一些可能的实现方式中,所述多媒体内容包括以下至少两种:
文本、图片、视频。
结合第一方面,在一些可能的实现方式中,所述方法还包括:
响应于所述电子设备显示所述第二应用界面,所述电子设备根据所述关键词突出显示所述第二应用界面的第二目标信息;或,
响应于第四操作,所述电子设备根据所述关键词突出显示所述第二应用界面的第二目标信息,所述第四操作指示所述电子设备根据所述关键词进行搜索。
本申请提供的方案,由于本申请的搜索悬浮框与应用场景独立,切换搜索场景不会影响当前搜索状态,在新场景下搜索,界面会随着不同的应用场景实时的展示最新的匹配结果,从而提升用户体验。
结合第一方面,在一些可能的实现方式中,所述方法还包括:
响应于第五操作,所述电子设备收起所述搜索悬浮框使得所述搜索悬浮框处于浮窗状态,所述搜索悬浮框悬浮于所述电子设备当前显示的应用界面。
本申请提供的方案,由于本申请的搜索悬浮框与应用场景独立,因此,本申请中的搜索悬浮框可以独立于系统活动进行收起,提高搜索效率,进一步地,可以提升用户体验。
结合第一方面,在一些可能的实现方式中,所述方法还包括:
响应于第六操作,所述电子设备关闭所述搜索悬浮框。
本申请提供的方案,由于本申请的搜索悬浮框与应用场景独立,因此,本申请中的搜索悬浮框可以独立于系统活动进行关闭,提高搜索效率,进一步地,可以提升用户体验。
第二方面,提供了一种装置,该装置包含在电子设备中,该装置具有实现上述方面及上述方面的可能实现方式中电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。
第三方面,提供了一种电子设备,包括:一个或多个处理器;存储器;一个或者多个应用程序;以及一个或多个计算机程序。其中,一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行上述第一方面任一项可能的实现中的方法。
第四方面,提供了一种芯片系统,包括至少一个处理器,当程序指令在所述至少一个处理器中执行时,使得上述第一方面任一项可能的实现中的方法在所述电子设备上的功能得以实现。
第五方面,提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述第一方面任一项可能的实现中的方法。
第六方面,提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面任一项可能的设计中的方法。
图1是是本申请实施例提供的一种电子设备的硬件结构示意图。
图2是本申请实施例提供的一种电子设备的软件结构示意图。
图3是本申请实施例提供的一组GUI的示意图。
图4是本申请实施例提供的另一组GUI的示意图。
图5是本申请实施例提供的再一组GUI的示意图。
图6是本申请实施例提供的又一组GUI的示意图。
图7是本申请实施例提供的又一组GUI的示意图。
图8是本申请实施例提供的一种搜索方法的示意图。
图9是本申请实施例提供的另一种搜索方法的示意图。
图10是本申请实施例提供的一种电子设备的示意性框图。
图11是本申请实施例提供的另一种电子设备的示意性框图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。
本申请实施例提供的搜索方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等电子设备上,本申请实施例对电子设备的具体类型不作任何限制。
示例性的,图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C, 耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。本申请实施例中的关于检测关键词、对多媒体文件进行分离以及根据分离后的结果,通过对应的引擎匹配关键词等可以通过处理器110实现。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施 例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示文本、图像,视频等,如可以显示本申请中的第一目标信息和/或第二目标信息,还可以显示本申请中的搜索悬浮框。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触 摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
随着终端应用越来越丰富、不同应用承载信息越来越多的背景下,在不同应用之间切 换、在某个应用下快速获取有效信息的需求越来越迫切,针对该需求,现有技术中涉及到了,在用户选中文本信息时显示悬浮搜索面板,将用户选中的文本信息加载到悬浮搜索面板的搜索框中,当用户点击搜索按钮或者敲击确认键时进行搜索,并将搜索结果显示在新的浏览器页签或新的浏览器窗口中。然而该方案用户体验并不好。
本申请提供一种搜索方法和电子设备,可以实现跨应用场景下,统一搜索入口,提升用户体验。
为了便于理解,本申请以下实施例将以具有图1和图2所示结构的电子设备为例,结合附图和应用场景,对本申请实施例提供的搜索方法进行具体阐述。
图3示出了手机的一组图形用户界面(graphical user interface,GUI),其中,从图3中的(a)到图3中的(i)示出了利用手机中的搜索悬浮框实现本申请中的搜索方法。
参见图3中的(a)所示的GUI,该GUI为手机的桌面。当手机检测到用户点击桌面上的搜索悬浮框的图标301的操作后,可以启动该搜索悬浮框,显示如图3中的(b)所示的GUI,该GUI可以称为搜索界面。
参见图3中的(b)所示的GUI,搜索悬浮框悬浮在应用顶层,需要说明的是,该搜索悬浮框可以独立于手机中的任一应用,换句话说,用户可以移动该搜索悬浮框至任意位置。此外,用户还可以打开手机中的某一应用,在该应用下利用搜索悬浮框进行搜索。示例性地,用户可以点击图库这一应用,当手机检测到用户点击图库的图标302的操作后,可以显示如图3中的(c)所示的GUI。
参见图3中的(c)所示的GUI,界面显示不同的相册,包括:全部照片、相机、视频、截屏录屏等。值得注意的是,此时,搜索悬浮框仍然悬浮在该应用的顶层。在该界面,用户可以搜索任意关于相片的内容。
参见图3中的(d)所示的GUI,示例性地,用户可以在该搜索悬浮框输入“风景”这个关键词,并点击搜索控件。当手机检测到用户点击搜索控件的图标303的操作后,可以显示如图3中的(e)所示的GUI。
参见图3中的(e)所示的GUI,可以看出,“全部照片”和“花瓣”这两个相册进行了高亮展示,说明这两个相册中有保存关于“风景”的相片,进一步地,用户可以在这两个相册中找到关于“风景”的相片。
此外,若用户希望该搜索悬浮框处于收起状态或退出状态,可以点击该搜索悬浮框中的其它控件或其它方式。
参见图3中的(f)所示的GUI,若用户希望该搜索悬浮框处于收起状态,则可以点击图中的最小化控件“-”,当手机检测到用户点击最小化控件的图标304的操作后,可以显示如图3中的(g)所示的GUI。
参见图3中的(g)所示的GUI,可以看出,此时,搜索悬浮框处于收起状态,且悬浮在应用的顶层。
仍然参见图3中的(f)所示的GUI,若用户希望该搜索悬浮框处于退出状态,则可以点击图中的退出控件“×”,当手机检测到用户点击退出控件的图标305的操作后,可以显示如图3中的(h)所示的GUI。在一些实施例中,用户也可以通过滑动的方式使得搜索悬浮框处于退出状态,参见图3中的(i)所示的GUI,可以看出,用户可以将手置于该搜索悬浮框,并按照图中所示的箭头方向滑动,从而使得该搜索悬浮框处于退出状态。 当手机检测到用户滑动搜索悬浮框的图标306的操作后,依然可以显示如图3中的(h)所示的GUI。
参见图3中的(h)所示的GUI,可以看出,此时,搜索悬浮框处于退出状态,界面上已无搜索悬浮框。
图4示出了手机的另一组GUI,其中,从图4中的(a)到图4中的(f)示出了手机中的搜索悬浮框实现本申请中的搜索方法。
参见图4中的(a)所示的GUI,该GUI为手机的桌面。当手机检测到用户点击桌面上的搜索悬浮框的图标401的操作后,可以启动该搜索悬浮框,显示如图4中的(b)所示的GUI,该GUI可以称为搜索界面。
参见图4中的(b)所示的GUI,搜索悬浮框悬浮在应用顶层,需要说明的是,该搜索悬浮框可以独立于手机中的任一应用,换句话说,用户可以移动该搜索悬浮框至任意位置。此外,用户还可以打开手机中的某一应用,在该应用下利用搜索悬浮框进行搜索。示例性地,用户可以点击记事本这一应用,当手机检测到用户点击记事本的图标402的操作后,可以显示如图4中的(c)所示的GUI。
参见图4中的(c)所示的GUI,界面显示不同的记事内容,包括:2021设计趋势精选(图中被搜索悬浮框所覆盖)、会议纪要、旅行打卡等。值得注意的是,此时,搜索悬浮框仍然悬浮在该应用的顶层。在该界面,用户可以搜索任意关于该记事本的内容。
参见图4中的(d)所示的GUI,示例性地,用户可以在该搜索悬浮框输入“会议”这个关键词,并点击搜索控件。当手机检测到用户点击搜索控件的图标403的操作后,可以显示如图4中的(e)所示的GUI。
参见图4中的(e)所示的GUI,可以看出,“会议纪要”这一栏进行了高亮展示,说明会议纪要中有关于“会议”的内容,进一步地,用户可以在该栏中找到关于会议的相关内容。
关于该搜索悬浮框的收起状态或退出状态的内容可以参考上述图3中的(f)-图3中的(i),在此不再赘述。
图5示出了手机的再一组GUI,其中,从图5中的(a)到图5中的(f)示出了手机中的搜索悬浮框实现本申请中的搜索方法。
参见图5中的(a)所示的GUI,该GUI为手机的桌面。当手机检测到用户点击桌面上的搜索悬浮框的图标501的操作后,可以启动该搜索悬浮框,显示如图5中的(b)所示的GUI,该GUI可以称为搜索界面。
参见图5中的(b)所示的GUI,搜索悬浮框悬浮在应用顶层,需要说明的是,该搜索悬浮框可以独立于手机中的任一应用,换句话说,用户可以移动该搜索悬浮框至任意位置。此外,用户还可以打开手机中的某一应用,在该应用下利用搜索悬浮框进行搜索。示例性地,用户可以点击通讯录这一应用,当手机检测到用户点击通讯录的图标502的操作后,可以显示如图5中的(c)所示的GUI。
参见图5中的(c)所示的GUI,界面显示不同的联系人,包括:阿红、阿黄、阿蓝等。值得注意的是,此时,搜索悬浮框仍然悬浮在该应用的顶层。在该界面,用户可以搜索关于某一联系人的联系方式。
参见图5中的(d)所示的GUI,示例性地,用户可以在该搜索悬浮框输入“白”这个 关键词,并点击搜索控件。当手机检测到用户点击搜索控件的图标503的操作后,可以显示如图5中的(e)所示的GUI。
参见图5中的(e)所示的GUI,可以看出,“白三”和“白四”这两个联系人进行了高亮展示,此时,用户可以点击“白三”或“白四”,从而获得该联系人的联系方式。
关于该搜索悬浮框的收起状态或退出状态的内容可以参考上述图3中的(f)-图3中的(i),在此不再赘述。
图6示出了手机的又一组GUI,其中,从图6中的(a)到图6中的(f)示出了手机中的搜索悬浮框实现本申请中的搜索方法。
参见图6中的(a)所示的GUI,该GUI为手机的桌面。当手机检测到用户点击桌面上的搜索悬浮框的图标601的操作后,可以启动该搜索悬浮框,显示如图6中的(b)所示的GUI,该GUI可以称为搜索界面。
参见图6中的(b)所示的GUI,搜索悬浮框悬浮在应用顶层,需要说明的是,该搜索悬浮框可以独立于手机中的任一应用,换句话说,用户可以移动该搜索悬浮框至任意位置。此外,用户还可以打开手机中的某一应用,在该应用下利用搜索悬浮框进行搜索。示例性地,用户可以点击浏览器这一应用,当手机检测到用户点击浏览器的图标602的操作后,可以显示如图6中的(c)所示的GUI。
参见图6中的(c)所示的GUI,界面显示不同的新闻内容,值得注意的是,此时,搜索悬浮框仍然悬浮在该应用的顶层。在该界面,用户可以搜索内容。
参见图6中的(d)所示的GUI,示例性地,用户可以在该搜索悬浮框输入“旅行”这个关键词,并点击搜索控件。当手机检测到用户点击搜索控件的图标603的操作后,可以显示如图6中的(e)所示的GUI。
参见图6中的(e)所示的GUI,可以看出,“每日精选”这一栏进行了高亮展示,即,用户可以在该栏中找到关于旅行的相关内容。
关于该搜索悬浮框的收起状态或退出状态的内容可以参考上述图3中的(f)-图3中的(i),在此不再赘述。
综上所述,参考上述图3-图6,可以看出,对于不同类型的搜索内容,本申请的搜索悬浮框均可以对其进行搜索,即统一搜索入口,可以提高搜索效率,进一步地,可以提升用户体验。
此外,本申请提供的搜索悬浮框与搜索场景独立,切换搜索场景下不影响搜索悬浮框的当前状态,具体请参考图7所示的一组GUI。
图7示出了手机的另一组GUI,其中,从图7中的(a)到图7中的(g)示出了手机中的搜索悬浮框实现本申请中的搜索方法。
参见图7中的(a)所示的GUI,该GUI为手机的桌面。当手机检测到用户点击桌面上的搜索悬浮框的图标701的操作后,可以启动该搜索悬浮框,显示如图7中的(b)所示的GUI,该GUI可以称为搜索界面。
参见图7中的(b)所示的GUI,搜索悬浮框悬浮在应用顶层,用户可以打开手机中的某一应用,在该应用下利用搜索悬浮框进行搜索。示例性地,用户可以点击记事本这一应用,当手机检测到用户点击记事本的图标702的操作后,可以显示如图7中的(c)所示的GUI。
参见图7中的(c)所示的GUI,界面显示不同的记事内容,包括:2021设计趋势精选(图中被搜索悬浮框所覆盖)、会议纪要、旅行打卡等。值得注意的是,此时,搜索悬浮框仍然悬浮在该应用的顶层。在该界面,用户可以搜索任意关于该记事本的内容。
参见图7中的(d)所示的GUI,示例性地,用户可以在该搜索悬浮框输入“旅行”这个关键词,并点击搜索控件。当手机检测到用户点击搜索控件的图标703的操作后,可以显示如图7中的(e)所示的GUI。
参见图7中的(e)所示的GUI,可以看出,“旅行打卡”这一栏进行了高亮展示,说明会议纪要中有关于“会议”的内容,进一步地,用户可以在该栏中找到关于旅行的相关内容。此时,若用户切换应用,该搜索悬浮框中的内容仍然保持不变,示例性地,假设用户切换至“浏览器”这一应用,可以显示如图7中的(f)所示的GUI。
参见图7中的(f)所示的GUI,可以看出,界面显示不同的关于各种新闻的内容,此时,搜索悬浮框中的内容仍然是“旅行”。进一步地,用户可以在该“浏览器”这一应用下搜索关于“旅行”的内容。当手机检测到用户点击搜索控件的图标704的操作后,可以显示如图7中的(g)所示的GUI。
参见图7中的(g)所示的GUI,可以看出,“每日精选”这一栏进行了高亮展示,即,用户可以在该栏中找到关于旅行的相关内容。
在一些实施例中,若用户切换应用,该搜索悬浮框中的内容仍然保持不变,且可以直接显示切换后的应用的搜索结果。示例性地,假设用户切换至“浏览器”这一应用,可以直接显示如图7中的(g)所示的GUI。
需要说明的是,在另一些实施例中,若用户变更搜索场景,如打开链接或应用内部跳转到其它页面,搜索悬浮框中的内容可以保持不变,且基于变更后的搜索场景搜索与关键词相关的内容并高亮显示。
下面结合附图8介绍本申请实施例中实现跨应用的搜索的内部实现过程与判断逻辑。图8示出了本申请实施例提供的一种搜索方法800的示意图,该方法800可以包括步骤S810-S850。
S810,判断搜索入口是否有查询信息。
本申请中的搜索入口可以理解为上述实施例中的搜索悬浮框,查询信息可以理解为上述实施例中的关键词,如上述图3中的(d)所示的GUI中的关键词“风景”,或者,上述图4中的(d)所示的GUI中的关键词“会议”,或者,上述图5中的(d)所示的GUI中的关键词“白”,或者,图6中的(d)所示的GUI中的关键词“旅行”等。
需要说明的是,本申请实施例中,在步骤S810之前,界面显示的某一应用可以是首次从主界面进入到该应用的(如上述图3-图6中所示出的),或者是从其它应用切换至该应用的(如上述图7中所示出的),也可以是该应用内部线程切换的,不予限制。
若是,则执行步骤S820,若否,则返回步骤S810。
S820,搜索悬浮框主动获取当前页面内容。
在确定搜索入口有查询信息的基础上,搜索悬浮框可以主动获取当前页面显示的内容,该内容可以包括显示元素和显示位置。例如,上述图3中打开的应用是图库,界面显示的是不同的相册,则搜索悬浮框可以获取当前页面所包括的所有的相册及其每一个相册所对应的位置;再例如,上述图4中打开的应用是记事本,界面显示的是不同的记事内容,则 搜索悬浮框可以获取当前页面所包括的所有的记事内容及其对应位置;再例如,上述图5中打开的应用是通讯录,界面显示的是不同的联系人,则搜索悬浮框可以获取当前页面所包括的所有的联系人及其每一个联系人所对应的位置;再例如,上述图6中打开的应用是浏览器,界面显示不同的新闻内容,则搜索悬浮框可以获取当前页面所包括的所有的新闻及其对应位置。
在一些实施例中,也可以通过当前应用获取显示元素和显示位置,当前应用将获取到的内容发送给搜索悬浮框。示例性地,上述图3中打开的应用是图库,界面显示的是不同的相册,则相册这一应用可以获取当前页面所包括的所有的相册及其每一个相册所对应的位置,并将获取到的内容发送给搜索悬浮框。
S830,对当前页面内容分解。
本申请实施例中,搜索悬浮框在获取到当前页面内容后,可以对获取到的内容进行分解,可以包括对图片、文本、视频等多媒体内容的分离。
示例性地,上述图3中打开的应用是图库,界面显示不同的相册,该相册中包括图片和视频,因此,搜索悬浮框可以对其进行分解,将图片和视频分离。
上述图6中打开的应用是浏览器,界面显示不同的新闻内容,包括文本、图片以及视频等,因此,搜索悬浮框可以对其进行分解,将文本、图片和视频分离。
需要说明的是,上述示例所示出的不同内容形式的多媒体内容仅为示例性说明,还可以包括其它未来可能出现的多媒体内容,不予限制。
S840,多引擎匹配。
S850,返回匹配结果、绘制页面刷新内匹配信息。
本申请实施例中的多引擎匹配可以理解为:对于不同内容形式中的每种内容形式有各自对应的引擎,利用各自对应的引擎对关键词进行搜索。
示例性地,如上述图3中需要对应图片形式的搜索,搜索悬浮框可以通过调用图片搜索引擎进行搜索,找到与“风景”有关的图片,并对其进行高亮展示;如上述图4中需要对应文本形式的搜索,搜索悬浮框可以通过调用文本搜索引擎进行搜索,找到与“会议”有关的内容,并对其进行高亮展示;如上述图5中需要对应文本形式和图片形式的搜索,搜索悬浮框可以通过调用文本搜索引擎和图片搜索引擎进行搜索,找到与“白”有关的内容,并对其进行高亮展示;如上述图6中需要对应文本形式和图片形式的搜索,搜索悬浮框可以通过调用文本搜索引擎和图片搜索引擎进行搜索,找到与“旅行”有关的内容,并对其进行高亮展示。
本申请的方案,提供的搜索悬浮框与应用场景独立,切换搜索场景不会影响当前搜索状态,因此,在电子设备切换显示第二应用界面时,搜索悬浮框悬浮于第二应用界面且搜索悬浮框保持关键词不变,可以实现跨应用场景下,统一搜索入口,提高搜索效率;此外,在新场景下搜索,界面会随着不同的应用场景实时的展示最新的匹配结果,从而提升用户体验。
下面介绍本申请提供的一种搜索方法的流程。
请参见图9,图9示出了一种搜索方法900的示意性流程图。
如图9所示,该方法900可以包括:
S910,响应于第一操作,所述电子设备展开显示搜索悬浮框,所述搜索悬浮框悬浮于 所述电子设备的第一应用界面。
本申请实施例中的第一操作可以包括不同的操作。以上述图3为例,若在第一操作前电子设备显示的是主界面,则该第一操作可以包括上述图3中的用户点击桌面上的搜索悬浮框的图标301的操作和用户点击图库的图标302的操作;若在第一操作前电子设备显示的是第一应用界面,则该第一操作可以包括上述图3中的用户点击桌面上的搜索悬浮框的图标301的操作;不予限制。
本申请实施例中的第一应用界面即为应用的界面,如上述图3中的图库界面,上述图4中的记事本界面,上述图5中的通讯录界面,上述图6中的浏览器界面等。
S920,所述电子设备检测用户在所述搜索悬浮输入的关键词。
本申请实施例中的关键词可以为上述图3中的“风景”,上述图4中的“会议”,上述图5中的“白”,上述图6中的“旅行”等。
S930,响应于第二操作,所述电子设备根据所述关键词突出显示所述第一应用界面的第一目标信息,所述第二操作指示所述电子设备根据所述关键词进行搜索。
本申请实施例中的第二操作可以为上述图3中的用户点击搜索控件的图标303的操作,或者,上述图4中的用户点击搜索控件的图标403的操作,或者,上述图5中的用户点击搜索控件的图标503的操作,或者,上述图6中的用户点击搜索控件的图标603的操作。
本申请实施例中,所突出显示的第一目标信息于关键词相关,例如,图3中用户所输入的关键词为“风景”,突出显示的第一目标信息与该“风景”相关的信息,如上述图3中的(e)所示,“全部照片”和“花瓣”这两个相册进行了高亮展示,则本申请中的第一目标信息包括“全部照片”和“花瓣”这两个相册。
再例如,图4中用户所输入的关键词为“会议”,突出显示的第一目标信息与“会议”相关的信息,如上述图4中的(e)所示,“会议纪要”这一栏进行了高亮展示,则本申请中的第一目标信息包括“会议纪要”这一栏。
S940,响应于第三操作,所述电子设备显示第二应用界面,所述搜索悬浮框悬浮于所述第二应用界面且所述搜索悬浮框保持所述关键词不变。
本申请实施例中的第三操作可以包括用户退出第一应用的操作和打开第二应用的操作,在电子设备显示第二应用界面,该搜索悬浮框悬浮于所述第二应用界面且该搜索悬浮框保持所述关键词不变。
示例性地,参考上述图7中的(e),“旅行打卡”这一栏进行了高亮展示。此时,若用户切换应用,该搜索悬浮框中的内容仍然保持不变,示例性地,假设用户切换至“浏览器”这一应用,可以显示如图7中的(f)所示的GUI。
参考图7中的(f),界面显示不同的关于各种新闻的内容(可以理解为本申请中的第二应用界面),此时,搜索悬浮框中的内容仍然是“旅行”。进一步地,用户可以在该“浏览器”这一应用下搜索关于“旅行”的内容。
本申请的方案,提供的搜索悬浮框与应用场景独立,切换搜索场景不会影响当前搜索状态,因此,在电子设备切换显示第二应用界面时,搜索悬浮框悬浮于第二应用界面且搜索悬浮框保持关键词不变,可以实现跨应用场景下,统一搜索入口,提高搜索效率,进一步地,可以提升用户体验。
可选地,在一些实施例中,所述第一应用界面包括不同内容形式的多媒体内容,所述 第一目标信息为所述不同内容形式的多媒体内容中与所述关键词匹配的信息。
可选地,在一些实施例中,所述电子设备根据所述关键词突出显示所述第一应用界面的第一目标信息,包括:
对于所述不同内容形式的多媒体内容中任意内容形式的内容,所述电子设备利用所述内容形式对应的引擎根据所述关键词对所述内容形式的内容进行搜索;
所述电子设备根据搜索结果突出显示所述第一目标信息。
可选地,在一些实施例中,所述方法900还包括:
所述电子设备获取所述第一应用界面的第一信息和所述第一信息的位置;
所述电子设备根据搜索结果突出显示所述第一目标信息,包括:
所述电子设备根据所述搜索结果,结合所述搜索结果的位置突出显示所述第一目标信息。
应理解,本申请实施例中第一目标信息为第一信息中的信息,即第一信息包括第一目标信息。以上述图3为例,图3中打开的应用是图库,参考图3中的(c),界面显示的是不同的相册,则第一信息可以包括该界面显示的相册;图3中所输入的关键词为“风景”,搜索悬浮框可以通过调用图片搜索引擎进行搜索,找到与“风景”有关的图片,并对其进行高亮展示,参考图3中的(e),界面显示的“全部照片”和“花瓣”这两个相册进行了高亮展示,则第一目标信息可以包括“全部照片”和“花瓣”这两个相册。
可选地,在一些实施例中,所述多媒体内容包括以下至少两种:文本、图片、视频。
本申请实施例中关于电子设备根据所述关键词突出显示所述第一应用界面的第一目标信息请参考上文方法800中步骤S830~S850的相关内容,在此不再赘述。
可选地,在一些实施例中,所述方法900还包括:
响应于所述电子设备显示所述第二应用界面,所述电子设备根据所述关键词突出显示所述第二应用界面的第二目标信息;或,
响应于第四操作,所述电子设备根据所述关键词突出显示所述第二应用界面的第二目标信息,所述第四操作指示所述电子设备根据所述关键词进行搜索。
一种实现方式中,响应于电子设备显示第二应用界面,所述电子设备根据关键词突出显示第二应用界面的第二目标信息,参考上述图7,若用户切换应用,该搜索悬浮框中的内容仍然保持不变,且可以直接显示切换后的应用的搜索结果。示例性地,假设用户切换至“浏览器”这一应用,可以直接显示如图7中的(g)所示的GUI。
另一种实现方式中,响应于第四操作,电子设备根据关键词突出显示第二应用界面的第二目标信息。本申请实施例中的第四操作可以包括用户点击搜索控件的图标的操作,仍然参考上述图7,当手机检测到用户点击搜索控件的图标704的操作后,可以显示如图7中的(g)所示的GUI。
参见图7中的(g)所示的GUI,可以看出,“每日精选”这一栏进行了高亮展示,则本申请中的第二目标信息包括“每日精选”这一栏。
本申请提供的方案,由于本申请的搜索悬浮框与应用场景独立,切换搜索场景不会影响当前搜索状态,在新场景下搜索,界面会随着不同的应用场景实时的展示最新的匹配结果,从而提升用户体验。
上文描述了搜索悬浮框的启动方式以及展开状态,在一些实施例中,该搜索悬浮框可 以处于其它状态,具体请参见下文。
可选地,在一些实施例中,所述方法900还包括:
响应于第五操作,所述电子设备收起所述搜索悬浮框使得所述搜索悬浮框处于浮窗状态,所述搜索悬浮框悬浮于所述电子设备当前显示的应用界面。
本申请实施例中的第五操作可以为用户点击最小化控件的图标的操作,示例性地,如上述图3中的(f),当手机检测到用户点击最小化控件的图标304的操作后,可以显示如图3中的(g)所示的GUI。参见图3中的(g)所示的GUI,可以看出,此时,搜索悬浮框处于收起状态,且悬浮在应用的顶层。
需要说明的是,若进行第五操作前电子设备显示的是第一应用界面,则响应于第五操作后,该搜索悬浮框悬浮于该第一应用界面;若进行第五操作前电子设备显示的是第二应用界面,则响应于第五操作后,该搜索悬浮框悬浮于该第二应用界面。当然,在一些实施例中,若进行第五操作前电子设备显示的是主界面,则响应于第五操作后,该搜索悬浮框悬浮于该主界面。
本申请提供的方案,由于本申请的搜索悬浮框与应用场景独立,因此,本申请中的搜索悬浮框可以独立于系统活动进行收起,提高搜索效率,进一步地,可以提升用户体验。
可选地,在一些实施例中,所述方法900还包括:
响应于第六操作,所述电子设备关闭所述搜索悬浮框。
本申请实施例中的第六操作可以为用户点击退出控件的图标的操作或者用户滑动的操作,示例性地,如上述图3中的(f),当手机检测到用户点击退出控件的图标305的操作后,可以显示如图3中的(h)所示的GUI;如上述图3中的(i),当手机检测到用户滑动搜索悬浮框的图标306的操作后,依然可以显示如图3中的(h)所示的GUI。参见图3中的(h)所示的GUI,可以看出,此时,搜索悬浮框处于退出状态,界面上已无搜索悬浮框,即电子设备关闭搜索悬浮框。
本申请提供的方案,由于本申请的搜索悬浮框与应用场景独立,因此,本申请中的搜索悬浮框可以独立于系统活动进行关闭,提高搜索效率,进一步地,可以提升用户体验。
可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图10示出了上述实施例中涉及的电子设备1200的一种可能的组成示意图,如图10所示,该电子设备1200可以包括:显示模块1210和检测模块1220。
其中,显示模块1210可以用于支持电子设备1200执行上述步骤S910或S930或S940 等,和/或用于本文所描述的技术的其他过程。
检测模块1220可以用于支持电子设备1200执行上述步骤S920等,和/或用于本文所描述的技术的其他过程。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本实施例提供的电子设备,用于执行上述本申请的方法,因此可以达到与上述实现方法相同的效果。
在采用集成的单元的情况下,电子设备可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对电子设备的动作进行控制管理,例如,可以用于支持电子设备执行上述各个单元执行的步骤。存储模块可以用于支持电子设备执行存储程序代码和数据等。通信模块,可以用于支持电子设备与其他设备的通信。
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他电子设备交互的设备。
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的电子设备可以为具有图1所示结构的设备。
图11示出了上述实施例涉及的电子设备1400的另一种可能的组成示意图,如图11所示,该电子设备1400可以包括通信单元1410、输入单元1420、处理单元1430、输出单元(或也可以称为显示单元)1440、外设接口1450、存储单元1460、电源1470、视频解码器1480以及音频解码器1490。
通信单元1410用于建立通信信道,使电子设备1400通过所述通信信道以连接至远程服务器,并从所述远程服务器下媒体数据。所述通信单元1410可以包括WLAN模块、蓝牙模块、NFC模块、基带模块等通信模块,以及所述通信模块对应的射频(Radio Frequency,简称RF)电路,用于进行无线局域网络通信、蓝牙通信、NFC通信、红外线通信及/或蜂窝式通信系统通信,例如宽带码分多重接入(wideband code division multiple access,W-CDMA)及/或高速下行封包存取(high speed downlink packet access,HSDPA)。所述通信模块1410用于控制电子设备中的各组件的通信,并且可以支持直接内存存取。
输入单元1420可以用于实现用户与电子设备的交互和/或信息输入到电子设备中。在本申请具体实施方式中,输入单元可以是触控面板,也可以是其他人机交互界面,例如实体输入键、麦克风等,还可是其他外部信息撷取装置,例如摄像头等。
处理单元1430为电子设备的控制中心,可以利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储单元内的软件程序和/或模块,以及调用存储在存储单元内的数据,以执行电子设备的各种功能和/或处理数据。如上述步骤S810、S820、S830、S840等可以通过处理单元1430实现。
输出单元1440包括但不限于影像输出单元和声音输出单元。影像输出单元用于输出文字、图片和/或视频。在本申请的具体实施方式中,上述输入单元1420所采用的触控面板亦可同时作为输出单元1440的显示面板。例如,当触控面板检测到在其上的触摸或接 近的手势操作后,传送给处理单元以确定触摸事件的类型,随后处理单元根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图11中,输入单元1420与输出单元1440是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板与显示面板集成一体而实现电子设备的输入和输出功能。例如,所述影像输出单元可以显示各种图形化用户接口以作为虚拟控制组件,包括但不限于窗口、卷动轴、图标及剪贴簿,以供用户通过触控方式进行操作。
存储单元1460可用于存储软件程序以及模块,处理单元通过运行存储在存储单元的软件程序以及模块,从而执行电子设备的各种功能应用以及实现数据处理。
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的方法。
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来, 该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。
Claims (11)
- 一种搜索方法,其特征在于,所述方法应用于电子设备,包括:响应于第一操作,所述电子设备展开显示搜索悬浮框,所述搜索悬浮框悬浮于所述电子设备的第一应用界面;所述电子设备检测用户在所述搜索悬浮输入的关键词;响应于第二操作,所述电子设备根据所述关键词突出显示所述第一应用界面的第一目标信息,所述第二操作指示所述电子设备根据所述关键词进行搜索;响应于第三操作,所述电子设备显示第二应用界面,所述搜索悬浮框悬浮于所述第二应用界面且所述搜索悬浮框保持所述关键词不变。
- 根据权利要求1所述的方法,其特征在于,所述第一应用界面包括不同内容形式的多媒体内容,所述第一目标信息为所述不同内容形式的多媒体内容中与所述关键词匹配的信息。
- 根据权利要求2所述的方法,其特征在于,所述电子设备根据所述关键词突出显示所述第一应用界面的第一目标信息,包括:对于所述不同内容形式的多媒体内容中任意内容形式的内容,所述电子设备利用所述内容形式对应的引擎根据所述关键词对所述内容形式的内容进行搜索;所述电子设备根据搜索结果突出显示所述第一目标信息。
- 根据权利要求2或3所述的方法,其特征在于,所述多媒体内容包括以下至少两种:文本、图片、视频。
- 根据权利要求1至4中任一项所述的方法,其特征在于,所述方法还包括:响应于所述电子设备显示所述第二应用界面,所述电子设备根据所述关键词突出显示所述第二应用界面的第二目标信息;或,响应于第四操作,所述电子设备根据所述关键词突出显示所述第二应用界面的第二目标信息,所述第四操作指示所述电子设备根据所述关键词进行搜索。
- 根据权利要求1至5中任一项所述的方法,其特征在于,所述方法还包括:响应于第五操作,所述电子设备收起所述搜索悬浮框使得所述搜索悬浮框处于浮窗状态,所述搜索悬浮框悬浮于所述电子设备当前显示的应用界面。
- 根据权利要求1至6中任一项所述的方法,其特征在于,所述方法还包括:响应于第六操作,所述电子设备关闭所述搜索悬浮框。
- 一种电子设备,其特征在于,包括:一个或多个处理器;一个或多个存储器;所述一个或多个存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行如权利要求1至7中任一项所述的方法。
- 一种芯片系统,其特征在于,所述芯片系统包括至少一个处理器,当程序指令在 所述至少一个处理器中执行时,使得如权利要求1至7中任一所述的方法在所述电子设备上的功能得以实现。
- 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至7中任一项所述的方法。
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1至7中任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111014659.9A CN115729408A (zh) | 2021-08-31 | 2021-08-31 | 一种搜索方法和电子设备 |
CN202111014659.9 | 2021-08-31 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023029993A1 true WO2023029993A1 (zh) | 2023-03-09 |
Family
ID=85291533
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/112958 WO2023029993A1 (zh) | 2021-08-31 | 2022-08-17 | 一种搜索方法和电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115729408A (zh) |
WO (1) | WO2023029993A1 (zh) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104267867A (zh) * | 2014-10-27 | 2015-01-07 | 百度在线网络技术(北京)有限公司 | 内容输入方法及装置 |
WO2017143797A1 (zh) * | 2016-02-23 | 2017-08-31 | 北京搜狗科技发展有限公司 | 一种信息推送方法、装置及电子设备 |
CN107122101A (zh) * | 2017-04-14 | 2017-09-01 | 浙江数链科技有限公司 | 一种交互方法及装置 |
CN107220377A (zh) * | 2017-06-26 | 2017-09-29 | 联想(北京)有限公司 | 搜索方法、电子设备及计算机存储介质 |
CN107256109A (zh) * | 2017-05-27 | 2017-10-17 | 北京小米移动软件有限公司 | 信息显示方法、装置及终端 |
CN112540821A (zh) * | 2020-12-11 | 2021-03-23 | 维沃移动通信有限公司 | 信息发送方法和电子设备 |
-
2021
- 2021-08-31 CN CN202111014659.9A patent/CN115729408A/zh active Pending
-
2022
- 2022-08-17 WO PCT/CN2022/112958 patent/WO2023029993A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104267867A (zh) * | 2014-10-27 | 2015-01-07 | 百度在线网络技术(北京)有限公司 | 内容输入方法及装置 |
WO2017143797A1 (zh) * | 2016-02-23 | 2017-08-31 | 北京搜狗科技发展有限公司 | 一种信息推送方法、装置及电子设备 |
CN107122101A (zh) * | 2017-04-14 | 2017-09-01 | 浙江数链科技有限公司 | 一种交互方法及装置 |
CN107256109A (zh) * | 2017-05-27 | 2017-10-17 | 北京小米移动软件有限公司 | 信息显示方法、装置及终端 |
CN107220377A (zh) * | 2017-06-26 | 2017-09-29 | 联想(北京)有限公司 | 搜索方法、电子设备及计算机存储介质 |
CN112540821A (zh) * | 2020-12-11 | 2021-03-23 | 维沃移动通信有限公司 | 信息发送方法和电子设备 |
Also Published As
Publication number | Publication date |
---|---|
CN115729408A (zh) | 2023-03-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021013158A1 (zh) | 显示方法及相关装置 | |
US20220342850A1 (en) | Data transmission method and related device | |
WO2022262530A1 (zh) | 内存管理的方法及电子设备 | |
US20240098816A1 (en) | WI-FI P2P Connection Method, Electronic Device, Program Product, and Medium | |
WO2022222752A1 (zh) | 一种显示方法及相关装置 | |
WO2023226455A1 (zh) | 应用图标的显示方法、电子设备及可读存储介质 | |
WO2021155770A1 (zh) | 一种显示方法及电子设备 | |
WO2022247614A1 (zh) | 一种多界面显示的方法和电子设备 | |
WO2023029993A1 (zh) | 一种搜索方法和电子设备 | |
CN116028148A (zh) | 一种界面处理方法、装置及电子设备 | |
WO2022252939A1 (zh) | 一种共享桌面的方法和电子设备 | |
WO2023160208A1 (zh) | 图像删除操作的通知方法、设备和存储介质 | |
CN115567666B (zh) | 屏幕录制方法、电子设备及可读存储介质 | |
CN116069723B (zh) | 文件迁移方法、电子设备及存储介质 | |
WO2023088093A1 (zh) | 显示方法和电子设备 | |
WO2024104094A1 (zh) | 截图分享方法及电子设备 | |
WO2023061298A1 (zh) | 一种图片备份系统、方法与设备 | |
WO2024125301A1 (zh) | 显示方法和电子设备 | |
CN116033062B (zh) | 应用程序的界面显示方法、电子设备及可读存储介质 | |
CN117724825B (zh) | 一种界面显示方法及电子设备 | |
WO2024109296A1 (zh) | 多设备任务流转方法和相关装置 | |
WO2024217159A1 (zh) | 一种电子设备的响应方法、电子设备及存储介质 | |
WO2024109220A1 (zh) | 显示卡片的方法、电子设备及可读存储介质 | |
WO2023226994A1 (zh) | 一种内容摘录方法及设备 | |
WO2024179249A1 (zh) | 一种电子设备的显示方法、电子设备及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22863133 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22863133 Country of ref document: EP Kind code of ref document: A1 |