WO2022188805A1 - 关键字搜索方法、装置及电子设备 - Google Patents

关键字搜索方法、装置及电子设备 Download PDF

Info

Publication number
WO2022188805A1
WO2022188805A1 PCT/CN2022/079929 CN2022079929W WO2022188805A1 WO 2022188805 A1 WO2022188805 A1 WO 2022188805A1 CN 2022079929 W CN2022079929 W CN 2022079929W WO 2022188805 A1 WO2022188805 A1 WO 2022188805A1
Authority
WO
WIPO (PCT)
Prior art keywords
content
input
keyword
search
electronic device
Prior art date
Application number
PCT/CN2022/079929
Other languages
English (en)
French (fr)
Inventor
路红飞
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022188805A1 publication Critical patent/WO2022188805A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to a keyword search method, apparatus, and electronic device.
  • the user can trigger the electronic device to search for keywords in the document. For example, if the user inputs the keyword "apple" to be searched in page A of the document, the screen of the electronic device jumps to display page B including the keyword "apple” in the document. If the user needs to edit the content in page A after reading the content in page B, then the user can trigger the electronic device to exit the search function, and the electronic device still displays the most recently used page B after exiting the search function; then, The user can operate the electronic device to return to page A, and perform editing operations in this page A. In this way, the process of viewing and operating the pages before and after the search may be cumbersome and time-consuming.
  • the purpose of the embodiments of the present application is to provide a keyword search method, device and electronic device, which can solve the problem that the process of viewing and operating the pages before and after the search is cumbersome and time-consuming.
  • an embodiment of the present application provides a keyword search method.
  • the method includes: receiving a first input for displaying first content, where the first content includes document content; and displaying a search bar in response to the first input ; Receive a second input that is entered in the search bar and search for the first keyword; in response to the second input, display the second content in suspension on the first content, and the second content is that the first content includes the The content of the first keyword.
  • an embodiment of the present application provides a keyword search device, the device includes: a receiving module and a display module.
  • a receiving module for receiving a first input for displaying first content, the first content including document content;
  • a display module for displaying a search bar in response to the first input received by the receiving module;
  • the receiving module also for Receive a second input that is entered in the search bar and search for the first keyword;
  • the display module is further configured to display the second content in suspension on the first content in response to the second input received by the receiving module, the second content
  • the content is the content including the first keyword in the first content.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor.
  • the program or instruction is executed by the processor, the The steps of the method of the first aspect.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.
  • an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the method of the first aspect.
  • a first input for displaying first content including document content may be received, and in response to the first input, a search bar may be displayed; and a first keyword entered in the search bar and searched for may be received. a second input; and in response to the second input, floating and displaying second content on the first content, where the second content is content including the first keyword in the first content.
  • the electronic device can display the search result of the first keyword on the first content in suspension (ie, display the content after the search in a suspension on the page before the search).
  • the user can view the first content and the second content at the same time, and can edit the first content and the second content respectively, thereby avoiding the switching of the pages before and after the search, thereby simplifying the operation process, saving the user's time, and being convenient for the user. use.
  • FIG. 1 is one of the schematic diagrams of a keyword search method provided by an embodiment of the present application
  • FIG. 2 is one of schematic diagrams of operations for displaying second content by an electronic device according to an embodiment of the present application
  • FIG. 3 is the second schematic diagram of a keyword search method provided by an embodiment of the present application.
  • FIG. 4 is the third schematic diagram of a keyword search method provided by an embodiment of the present application.
  • FIG. 5 is the second schematic diagram of the operation of displaying the second content by an electronic device according to an embodiment of the present application
  • FIG. 6 is a fourth schematic diagram of a keyword search method provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of an operation of displaying a fourth content by an electronic device according to an embodiment of the present application.
  • FIG. 8 is a fifth schematic diagram of a keyword search method provided by an embodiment of the present application.
  • FIG. 9 is a sixth schematic diagram of a keyword search method provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of an operation of displaying fifth content by an electronic device according to an embodiment of the present application.
  • FIG. 11 is one of the schematic structural diagrams of a keyword search apparatus provided by an embodiment of the application.
  • FIG. 12 is the second schematic structural diagram of a keyword search apparatus provided by an embodiment of the present application.
  • FIG. 13 is one of the schematic hardware diagrams of the electronic device provided by the embodiment of the present application.
  • FIG. 14 is the second schematic diagram of the hardware of the electronic device provided by the embodiment of the present application.
  • first”, “second” and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that embodiments of the application can be practiced in sequences other than those illustrated or described herein.
  • the objects distinguished by “first”, “second”, etc. are usually one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • an embodiment of the present application provides a keyword search method, and the method may include the following steps 101 to 104 .
  • Step 101 The electronic device receives a first input for displaying the first content.
  • the above-mentioned first content includes document content.
  • the keyword search method provided by the embodiments of the present application can be applied to electronic equipment or apparatuses.
  • the keyword search method can be used in conjunction with the keyword search apparatus in the subsequent embodiments, and the method can be a method based on the main program (ie, system program) of the electronic device, rather than a certain application program.
  • the user can use this method when using all applications installed on the electronic device.
  • the method can be a functional module in the system program of the electronic device, the user can use the functional module when using the application A installed on the electronic device, and the user can use another application installed on the electronic device.
  • This function module can also be used in B.
  • the above-mentioned electronic device is an electronic device including a screen, and the electronic device can display the first content on the screen.
  • the above-mentioned first content is content including a document.
  • the first content may only include document content, that is, the first content may be pure document content.
  • the first content may be a newsletter that only includes characters; the first content includes documents and other content, wherein the other content includes pictures, videos, audios, and other content other than documents.
  • the first content may be a blog post containing documents and pictures.
  • it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
  • the keyword search method provided in the embodiment of the present application is to search for the keywords of the document content in the first content, and does not include the search for keywords in other contents except the document content. search. For example, a picture in the first content or a keyword included in the video content.
  • the electronic device may receive a user's first input to the electronic device when the screen of the electronic device displays the first content.
  • the above-mentioned first input is used to trigger the electronic device to display the search bar.
  • the first input may be a pressing input to a physical button of the electronic device, and the physical button may be used to trigger the electronic device to display a search bar;
  • the first input may also be a voice input to the electronic device, and the content of the voice input It is used to instruct the electronic device to display the search bar;
  • the first input can also be a preset touch input on the screen of the electronic device.
  • the preset touch output may be a touch input corresponding to displaying the search bar, and may specifically be double-click, long-press, sliding according to a preset track, and the like.
  • the first input may also be a touch input of an abbreviated identifier of the search bar displayed in suspension on the screen (for example, a "magnifying glass" identifier, which is displayed in suspension on the first content), wherein the abbreviated identifier of the search bar
  • a slightly identified touch input can trigger the electronic device to display a search bar, and the touch input can be any of the following: single click, double click, long press, dragging along a preset track, and the like.
  • the specific form of the first input may be determined according to actual usage requirements, which is not specifically limited in this embodiment of the present application.
  • Step 102 The electronic device displays a search bar in response to the first input.
  • the search bar may be displayed on the first content by suspension, or may be directly displayed on the interface of the first content.
  • the search bar may include: an input area and a trigger virtual key.
  • the user can input a keyword (eg, the following first keyword) in the input area, and trigger the electronic device to search for the input keyword by triggering the virtual key.
  • the user may trigger the electronic device to display the search setting interface by inputting the first target of the electronic device or the search bar.
  • the user can set at least one of the following in the search setting interface: the display style of the keyword in the search results (such as: font, font size, underline, bold, background color, etc.), the search scope of the keyword (such as: application documents in A, historical collection documents, documents in application A and documents in application B, etc.), the retrieval order of multiple keywords (such as the user's input order, the stroke order of the first character, etc.), logical Use of symbols (eg: logical symbol "and”, which can define retrieval formula: keyword 1 and keyword 2; logical symbol "or”, which can define retrieval formula: keyword 1 or keyword 2, etc.).
  • the display style of the keyword in the search results such as: font, font size, underline, bold, background color, etc.
  • the search scope of the keyword such as: application documents in A, historical collection documents, documents in application A and documents in application B, etc.
  • Step 103 The electronic device receives a second input entered in the search bar to search for the first keyword.
  • the above-mentioned first keyword may be characters, Chinese characters, punctuation, symbols, etc., and any combination thereof. It may be determined according to the actual use requirement of the user, which is not specifically limited in this embodiment of the present application.
  • the above-mentioned second input is used to input and search for the first keyword in the search bar.
  • the second input may include a first sub-input and a second sub-input.
  • the first sub-input is the input of the user entering the first keyword in the search bar, which may be any one of voice input, handwriting input, and touch input of the keyboard; the second sub-input is the user triggering electronic
  • the input of the device to search for the first keyword may specifically be a trigger input to a virtual key next to the search bar, and the touch input may be one of single-click, double-click, and long-press. Specifically, it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
  • Step 104 The electronic device displays the second content in a floating manner on the first content in response to the second input.
  • the above-mentioned second content is the content including the first keyword in the first content.
  • the above-mentioned second content is content including the first keyword, and specifically, content in which the first keyword appears for the first time in the first content may be displayed.
  • the user may switch to display other content including the first keyword in the first content through subsequent operations.
  • the switching operation may be triggered by a user's touch operation or gesture on the electronic device. For example, the position where the first keyword appears for the third time in the first content, or the position where the first keyword appears for the fifth time, etc.
  • the second content may be displayed in a floating window, and the floating window is displayed floating above the first content, that is, the floating window is displayed on the topmost layer of the screen of the electronic device.
  • the display area of the second content may be smaller than the display area of the first content. That is, the second content displayed in suspension can only partially block the first content, so that the user can read and edit the first content through the unobstructed part. Specifically, if the first content is tiled and displayed on the screen of the electronic device (ie, the display area of the first content occupies 100% of the screen area), the display area of the second content may occupy 60% of the screen area.
  • FIG. 2 is one of the operation schematic diagrams of the electronic device displaying the second content.
  • the electronic device 001 displays the interface 002 (ie, the first content) and displays the search logo 003, the user can click the search logo 003, and the electronic device 001 responds to the click input (ie, the first content) , the first input), as shown in (b) of FIG. 2 , a search bar 004 is displayed.
  • the user can enter "kernel time" (ie, the first keyword) in the search bar and double-click the logo on the side of the search bar 004 to trigger the electronic device to search for the "kernel time".
  • the electronic device 001 In response to the input and the triggering operation (ie, the second input), the electronic device 001, as shown in (c) of FIG. 2 , displays a window 005 on the interface 002 in a suspended manner, and the window 005 displays the information about "" in the interface 002. kernel time" with the keyword “kernel time” highlighted.
  • a keyword search method is provided.
  • An electronic device can receive a first input for displaying first content including document content, and in response to the first input, display a search bar; and receive a search bar in the search bar. inputting and searching for a second input of a first keyword; and in response to the second input, displaying a second content in suspension on the first content, the second content being the content including the first keyword in the first content .
  • the electronic device can display the search result of the first keyword on the first content in suspension (ie, display the content after the search on the page before the search), and the display area of the second content is smaller than that of the first content , so that the second content does not completely block the first content.
  • the user can view the first content and the second content at the same time, and can edit the first content and the second content respectively, thereby avoiding the switching of the pages before and after the search, thereby simplifying the operation process, saving the user's time, and being convenient for the user. use.
  • the keyword search method provided by this embodiment of the present application further includes the following steps 105 to 107 , and the step 103 can be specifically performed by the following step 103 a accomplish.
  • Step 105 the electronic device displays a first control.
  • the above-mentioned first control is used to indicate the search range.
  • the above-mentioned first control is used to indicate a search range
  • the specific search range may be any of the following: content in a certain application in the electronic device (for example, in application A). document), the content in at least two applications of the electronic device (for example, the document in application A and the document in application B), the content with the same label in the electronic device (for example, the electronic device has " "Basketball" tag, the document may include the document in application A or the document in application B), the historical collection document in the electronic device, etc.
  • it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
  • the shape, display form, and display position of the first control are not specifically limited, and may be determined according to actual usage requirements.
  • the first control may be displayed on the interface of the first content by floating, and may also be displayed together with the search bar.
  • Step 106 The electronic device receives a third input to the first control.
  • Step 107 in response to the third input, the electronic device determines the search range indicated by the first control as the target range.
  • the above-mentioned target range is the range in which the first keyword is searched.
  • the above-mentioned third input is used to trigger the first control to determine the target range, that is, to determine the search range for the first keyword.
  • the third input may be a touch input to the first control, and the touch input may be any one of the following: single-click, double-click, long-press, sliding along a preset track, and the like.
  • the user can select an option desired by the user from the multiple options and press and hold. enter. For example, if the option of "historical favorite documents" is selected, the electronic device can be triggered to search for the first keyword from the historical favorite documents (that is, to search the historical favorite documents as the target range).
  • the searched content is displayed in a suspended manner on the first content. If the content containing the first keyword is not searched within the target range, first prompt information is displayed on the screen of the electronic device, and the first prompt information is used to prompt the user that no content containing the first keyword is found within the target range.
  • the first prompt information may be in the form of text, voice, etc., which is not specifically limited in the embodiment of the present application, and may be determined according to actual use requirements.
  • Step 103a the electronic device receives a second input that is entered in the search bar and searches for the first keyword within the target range.
  • the foregoing step 103 is to search within a preset range, and the preset range may be the content or document currently used by the user.
  • the user currently uses the application A to read the document E, when the user triggers the operation of searching for the first keyword, the electronic device can search the document E for the first keyword.
  • step 103a is to perform a search operation on the first keyword within the target range determined by the user.
  • the electronic device For example, if the user currently uses application A to read document E, if the target range determined by the user is application A (that is, all content in the current application A), when the user triggers the operation of searching for the first keyword, the electronic device The first keyword can be searched in application program A; if the target range determined by the user is historical favorite documents (that is, all the favorite documents in the electronic device), when the user triggers the operation of searching for the first keyword, the electronic The device may search for the first keyword in all the favorite documents in the electronic device.
  • the electronic device can display the first control before searching, and receive the input of the user to wait for the first control to determine the target range, and then, after the user triggers the electronic device to input the first keyword in the target text Perform a search operation.
  • the user can manually set the search range of keywords according to actual usage requirements, thereby making the search results more accurate, facilitating the use of the user, and improving the user experience.
  • the keyword search method provided by this embodiment of the present application further includes the following steps 108 and 109.
  • "" "Hovering and displaying the second content on the first content” can be specifically implemented through the following step 104a.
  • Step 108 The electronic device displays at least one first identifier according to the order of the objects.
  • each of the above at least one first identifier is used to indicate a document.
  • each first identifier is used to indicate a document, that is, each first identifier is used to indicate a search result of the first keyword in the document content.
  • the search result is a document.
  • the display mode of the above at least one first logo may be any of the following modes: mode 1, the at least one first logo may be displayed in a control, and the control may be close to the electronic device
  • the edge of the display can be automatically hidden when the user does not operate on it for longer than a preset value, so as not to affect the user's use of the screen of the electronic device.
  • the control When the user needs to use the control, it can be woken up and operated through a second target input (for example, double-clicking the hidden position, or inputting a preset track on the screen, etc.).
  • the at least one first logo can be evenly displayed on one edge of the electronic device (for example, the right edge of the screen), without the need for controls, and can also have functions of hiding and waking up (similar to Mode 1, and will not be repeated here) . Specifically, it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
  • the above-mentioned target sorting may be at least one of the following sorting methods: method A, generally, sorting is performed according to the number of first keywords contained in the document; when the number of first keywords is the same, according to the document Sort by creation time; when the number of first keywords and creation time are the same, sort by the alphabetical order of the first character of the article title.
  • Mode B According to the frequency of occurrence of the first keyword in the document (the frequency of occurrence of the first keyword refers to the number of the first keyword in every 1000 characters, the usual calculation method is: the number of all the first keywords in the document The number is divided by the number of characters in the document, and then converted to the number of the first keyword per 1000 characters) sort.
  • Manner C Priority sorting is performed according to the source of the documents, and each document within each source is sorted according to the quantity containing the first keyword. For example, it is assumed that documents in the preset history collection have higher priority than documents in application A, and documents in application A have higher priority than documents in application B. Then the electronic device can sort the search results according to the documents in the historical collection, the documents in the application A, and the documents in the application B, and the interior of the multiple documents in the historical collection can be further carried out according to the number of the first keyword. Sorting, the same is true for documents in application A and documents in application B, which will not be repeated here.
  • Step 109 The electronic device receives a fourth input of selecting a target identifier from the at least one first identifier.
  • the above-mentioned fourth input may be used to trigger the electronic device to select a target identifier from the at least one first identifier.
  • the fourth input may be a touch input for selecting a target identifier from the at least one first identifier, and the touch input may be any one of single click, double click, and long press.
  • the fourth input may also be a voice input, and the content of the voice input is used to instruct the electronic device to select a target identifier from the at least one first identifier.
  • it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
  • Step 104a the electronic device displays the third content indicated by the target identifier in a suspended manner on the first content.
  • the above-mentioned third content includes the first keyword.
  • the electronic device can directly display the third content indicated by the target identifier selected by the user on the screen of the electronic device, that is, the user can select the target identifier from at least one first identifier, thereby triggering the electronic device.
  • the device displays the third content corresponding to the target identifier.
  • FIG. 5 is the second schematic diagram of the operation of the electronic device to display the second content.
  • the electronic device may, as shown in (b) of FIG. 5 , display a search result interface 007 , in which a search result interface 007 is displayed with “kernel time” (ie, the first keyword) within the target range.
  • All search results ie, 6 target identifiers indicating 6 searched articles
  • the search results are sorted by source and number of first keywords included.
  • the user can click the article 1 indicated by the target identifier 008, and the electronic device responds to the click input (ie, the fourth input), as shown in (c) in FIG.
  • the click input ie, the fourth input
  • the search results for "kernel time” in interface 002 are displayed, and the keyword “kernel time” is highlighted.
  • the user can select a target identifier from at least one first identifier, and then trigger the electronic device to display the third content corresponding to the target identifier, so that the user can select the required display content according to the actual use requirements, which is convenient for the user. User use, improve user experience.
  • the keyword search method provided by this embodiment of the present application further includes steps 110 to 112 .
  • Step 110 the electronic device displays the M second keywords.
  • each second keyword has a similar meaning or the same type as the first keyword, and M is a positive integer.
  • each of the above-mentioned second keywords has a similar meaning or the same type as a first keyword. Similar in meaning, it means that the second keyword can be a synonym or synonym of the first keyword; the same type means that the second keyword can be a keyword of the same type as the first keyword, wherein each Each of the first keywords corresponds to a type, and the type may be preset or determined according to an encyclopedia entry of the keyword.
  • the electronic device will determine the first keyword “Korea” as the type of "Country in Southeast Asia", and when the electronic device needs to display the same type of keyword
  • other keywords for example, multiple second keywords are displayed, including "North Korea”, “Philippines”, “Malaysia”, etc.
  • the electronic device will use the second keyword "North Korea” as a key of the same type as "South Korea” words are displayed.
  • Step 111 The electronic device receives a fifth input of selecting N second keywords from the M second keywords.
  • N is a positive integer, and N is less than or equal to M.
  • the fifth input is used to select and determine N second keywords from M second keywords, where N is less than or equal to M.
  • the fifth input may be a touch input for selecting N second keywords from the M second keywords, and the touch input may be any one of continuous click, continuous slide, and long press;
  • the fifth input may also be a voice input, and the content of the voice input is used to instruct the electronic device to select and determine N second keywords from the M second keywords.
  • it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
  • Step 112 The electronic device updates and displays the second content as the fourth content in response to the fifth input.
  • the above-mentioned fourth content is the content including the first keyword and N second keywords in the first content.
  • the above-mentioned fourth content is content that includes both the first keyword and N second keywords in the first content.
  • the electronic device can display the paragraph as the fourth content at the position of the original second content.
  • the electronic device displays second prompt information, and the prompt is used in the first content.
  • a content is searched for content that includes both the first keyword and N second keywords.
  • the second prompt information reference may be made to the display manner of the above-mentioned first prompt information, which will not be repeated here.
  • FIG. 7 is a schematic diagram of the operation of the electronic device to display the fourth content.
  • the user when the user triggers the electronic device 001 to display the search bar 004 and the control 009, there are 6 second keywords associated with the first keyword "kernel time” displayed in the control 009 keyword, the user can select two second keywords "system time” and "clock interrupt” from the six second keywords and trigger the electronic device to perform a search operation.
  • a window 010 is displayed suspended on the interface 002, and the window 010 displays that the interface 002 includes both the first keyword “kernel time", "system time” and “clock”. Interrupts" search results for the second keyword, with the keywords “kernel time”, “system time” and “clock interrupts” highlighted.
  • the electronic device can receive an input of selecting N second keywords from M second keywords, and then search the first content including both the first keyword and N second keywords.
  • the content of the keyword, and the second content is updated and displayed as the result of the search (ie, the fourth content).
  • the user does not need to input the second keyword again, and only needs the user to select from the recommended second keywords, and then trigger the electronic device to search again according to the selected second keyword, that is, the search results can be searched again.
  • the user experience is improved.
  • the number of first keywords is S, and S is an integer greater than 1.
  • the above step 104 can be specifically implemented by the following step 104b.
  • Step 104b In response to the second input, the electronic device suspends and displays the second content on the first content, and displays the second control.
  • the above-mentioned second control includes S second identifiers, and each second identifier is used to indicate a first keyword.
  • the above-mentioned second control user controls the inputted first keywords and the display style of each of the first keywords.
  • the second control may be displayed on an edge of one side of the electronic device, and each of the S second identifiers included in the second control indicates a first keyword.
  • the display style of the second identification is not specifically limited in the embodiment of the present application, and may be displayed in a label style by way of example, and the text on each label is a first keyword. Specifically, it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
  • the user can enter the third target input of any second identification among the S second identifications (the third target input is used to trigger the display of the first keyword corresponding to the identification.
  • Style setting please refer to the specific description in the above step 102 for details, the third target input can be one of touch input such as double-click, long-press, etc.), triggering the electronic device to display the display style of the first keyword corresponding to the logo A setting interface, where the user can set at least one of the following content of the first keyword: font, font size, underline, bold, background color, etc. Specifically, it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
  • the electronic device in response to the second input, can also display a second control floating on the first content, where the second control includes S second identifiers, and each second identifier is used to indicate a first keyword.
  • the user can operate the second identifier to control the display style of the corresponding first keyword. Therefore, the user can modify the display style of the first keyword at any time, thereby facilitating the use of the user.
  • the keyword search method provided by this embodiment of the present application further includes:
  • Step 113 The electronic device receives a sixth input of Q second identifiers among the S second identifiers.
  • Q is a positive integer, and Q is less than or equal to S.
  • the above-mentioned sixth input is used to determine Q second identifiers from the S second identifiers.
  • the specific input form reference may be made to the input form in the above step 111, which will not be repeated here. .
  • each second identifier is used to indicate a first keyword
  • Q second identifiers are determined from the S second identifiers through the sixth input, that is, the search of electronic equipment
  • the search conditions are changed from the first S first keywords to the adjusted Q first keywords for searching, which is equivalent to removing some of the first keywords in the initial search conditions, thereby relaxing the search conditions.
  • Step 114 The electronic device updates and displays the second content as the fifth content in response to the sixth input.
  • the above-mentioned fifth content is content including Q first keywords in the first content, and the Q first keywords are the first keywords indicated by the Q second identifiers.
  • the fifth content is content that includes Q first keywords indicated by Q second identifiers in the first content.
  • FIG. 10 is a schematic diagram of the operation of the electronic device to display the fifth content.
  • FIG. 10 when the user triggers the electronic device 001 to display the search bar 004 and the control 011, there are three second marks displayed in the control 011, and the user can select from the three second marks "Clock interrupt” and trigger the electronic device to perform a search operation (ie, change the first keyword to perform a search again).
  • a window 012 is displayed suspended on the interface 002, and the window 012 displays the search results of the first keyword “clock interrupt” and the second keyword in the interface 002, and highlighted Displays content about "Clock Interrupt".
  • the user can determine the Q second identifiers from the S second identifiers, and then trigger the electronic device to use the Q first keywords indicated by the Q second identifiers to perform a search operation, that is, the user can manually delete the Q second identifiers.
  • the existing first keyword is reduced, so that the search content is more in line with the user's needs, which is convenient for the user to use, and improves the user's use experience.
  • the keyword search method provided by the embodiment of the present application further includes the following steps 115 and 116.
  • Step 115 the electronic device receives a seventh input.
  • the above seventh input is used to trigger the electronic device to cancel the display of the second content.
  • the seventh input may be a pressing input to a physical key of the electronic device, and the physical key may be used to trigger the electronic device to cancel the display of the second content;
  • the seventh input may also be a voice input to the electronic device, the voice input
  • the content is used to instruct the electronic device to cancel the display of the second content;
  • the seventh input can also be a preset touch input to the screen of the electronic device, wherein the preset touch operation can cancel the display of the second content, the preset touch
  • the control operation can be any one of double-click, long-press, sliding according to a preset track, etc. Specifically, it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
  • Step 116 In response to the seventh input, the electronic device cancels the floating display of the second content, and displays the page of the first content when the first input is received.
  • the page of the original first content can be displayed on the screen interface of the electronic device, that is, the first content when the electronic device receives the first input. page content. That is, the electronic device may display the page of the first content before the first input on the screen to facilitate the user to continue reading or use.
  • the electronic device can still display the page of the first content when the first input is received, so that the user can read or use it without interruption, which is convenient for the user. Continue to read or use the first content to improve the user experience.
  • the execution body may be a keyword search device, or a control module in the keyword search device for executing the keyword search method.
  • a method for performing a keyword search by a keyword search apparatus is taken as an example to describe the apparatus provided by the embodiment of the present application.
  • the keyword searching apparatus 1100 may include a receiving module 1101 and a display module 1102.
  • the receiving module 1101 may be configured to receive a first input for displaying first content, where the first content includes document content.
  • the display module 1102 may be configured to display the search bar in response to the first input received by the receiving module 1101 .
  • the receiving module 1101 may also be configured to receive a second input that is entered in the search bar to search for the first keyword.
  • the display module 1102 may also be configured to display the second content in a floating manner on the first content in response to the second input received by the receiving module 1101 .
  • the keyword search apparatus 1100 may include a processing module 1103 .
  • the display module 1102 may also be configured to display a first control, where the first control is used to indicate a search range, before receiving a second input in the search bar to search for the first keyword.
  • the receiving module 1101 may also be configured to receive a third input to the first control.
  • the processing module 1103 may be configured to, in response to the third input received by the receiving module 1101, determine the search range indicated by the first control as a target range, where the target range is the range for searching for the first keyword.
  • the receiving module 1101 may be specifically configured to receive a second input entered in the search bar and search for the first keyword within the target range.
  • the display module 1102 may also be configured to display at least one first identifier according to the target order after receiving the second input entered in the search bar and searching for the first keyword. Identifiers are used to indicate a document.
  • the receiving module 1101 may also be configured to receive a fourth input for selecting a target identifier from the at least one first identifier.
  • the display module 1102 may be specifically configured to display the third content indicated by the target identifier in a suspended manner on the first content, where the third content includes the first keyword.
  • the display module 1102 may also be configured to display M second keywords, where each second keyword has a similar meaning or the same type as the first keyword, and M is a positive integer.
  • the receiving module 1101 may be configured to receive a fifth input for selecting N second keywords from the M second keywords, where N is a positive integer, and N is less than or equal to M.
  • the display module 1102 may also be configured to update and display the second content as the fourth content in response to the fifth input received by the receiving module 1101 .
  • the fourth content is content including the first keyword and the N second keywords in the first content.
  • the display module 1102 can specifically be used to display the second content in a suspended manner on the first content in response to the second input, and display a second control, the second control includes S second identifiers, and each second identifier is used to indicate a first keyword.
  • the receiving module 1101 is configured to receive a sixth input to Q second identifiers among the S second identifiers, where Q is a positive integer, and Q is less than or equal to S.
  • the display module 1102 is further configured to update and display the second content as fifth content in response to the sixth input, where the fifth content is content including Q first keywords in the first content, and the Q first keywords is the first keyword indicated by the Q second identifiers.
  • the receiving module 1101 may also be configured to receive a seventh input after the second content is displayed in a suspended manner on the first content.
  • the display module 1102 may also be configured to cancel the floating display of the second content in response to the seventh input received by the receiving module 1101, and display the page of the first content when the first input is received.
  • the keyword search apparatus in this embodiment of the present application may be a functional entity and/or functional module that executes the keyword search method in an electronic device, and may also be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • non-mobile electronic devices can be servers, network attached storage (NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • the keyword search apparatus in this embodiment of the present application may be an apparatus with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the keyword search apparatus provided in the embodiments of the present application can implement each process implemented by the keyword search apparatus in the method embodiments of FIG. 1 to FIG. 10 , and to avoid repetition, details are not repeated here.
  • An embodiment of the present application provides a keyword search device
  • the keyword search device can receive a first input for displaying first content including document content, and in response to the first input, display a search bar; Entering and searching for a second input of the first keyword in the search bar; and in response to the second input, floating and displaying second content on the first content, where the second content includes the first keyword in the first content word content.
  • the keyword search apparatus can display the search result of the first keyword on the first content in suspension (ie, display the content after the search in a suspension on the page before the search).
  • the user can view the first content and the second content at the same time, and can edit the first content and the second content respectively, thereby avoiding the switching of the pages before and after the search, thereby simplifying the operation process, saving the user's time, and being convenient for the user. use.
  • an embodiment of the present application further provides an electronic device 1300, including a processor 1301, a memory 1302, a program or instruction stored in the memory 1302 and executable on the processor 1301,
  • an electronic device 1300 including a processor 1301, a memory 1302, a program or instruction stored in the memory 1302 and executable on the processor 1301,
  • the program or instruction is executed by the processor 1301, each process of the foregoing keyword search method embodiment can be implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 14 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 2000 includes but is not limited to: a radio frequency unit 2001, a network module 2002, an audio output unit 2003, an input unit 2004, a sensor 2005, a display unit 2006, a user input unit 2007, an interface unit 2008, a memory 2009, and a processor 2010, etc. part.
  • the input unit 2004 may include a graphics processor 20041 and a microphone 20042
  • the display unit 2006 may include a display panel 20061
  • the user input unit 2007 may include a touch panel 20071 and other input devices 20072
  • the memory 2009 may be used to store software programs (eg, operating system, applications required for at least one function) and various data.
  • the electronic device 2000 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 2010 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 14 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than those shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
  • the user input unit 2007 may be configured to receive a first input for displaying first content, where the first content includes document content.
  • the display unit 2006 may be configured to display a search bar in response to the first input received by the user input unit 2007 .
  • the user input unit 2007 may also be configured to receive a second input for searching the first keyword in the search bar.
  • the display unit 2006 can also be used to display the second content in a suspended manner on the first content in response to the second input received by the user input unit 2007, where the second content includes the first keyword in the first content content.
  • An embodiment of the present application provides an electronic device that can receive a first input for displaying first content including document content, and in response to the first input, display a search bar; and receive an input in the search bar and searching for the second input of the first keyword; and in response to the second input, floating and displaying the second content on the first content, where the second content is the content including the first keyword in the first content.
  • the electronic device can display the search result of the first keyword on the first content in suspension (ie, display the content after the search in a suspension on the page before the search).
  • the user can view the first content and the second content at the same time, and can edit the first content and the second content respectively, thereby avoiding the switching of the pages before and after the search, thereby simplifying the operation process, saving the user's time, and being convenient for the user. use.
  • the display unit 2006 may be further configured to display a first control before receiving a second input in the search bar to search for the first keyword, where the first control is used to indicate the search range.
  • the user input unit 2007 can also be used to receive a third input to the first control.
  • the processor 2010 may be configured to, in response to the third input received by the user input unit 2007, determine the search range indicated by the first control as a target range, where the target range is a range for searching for the first keyword.
  • the user input unit 2007 may be specifically configured to receive a second input entered in the search bar and search for the first keyword within the target range.
  • the electronic device can display the first control before searching, and receive the input of the user to wait for the first control to determine the target range, and then, after the user triggers the electronic device to input the first keyword in the target text Perform a search operation.
  • the user can manually set the search range of keywords according to actual usage requirements, thereby making the search results more accurate, facilitating the use of the user, and improving the user experience.
  • the display unit 2006 may also be configured to display at least one first identifier according to the order of objects after receiving the second input entered in the search bar and searching for the first keyword. Identifiers are used to indicate a document.
  • the user input unit 2007 may also be configured to receive a fourth input for selecting a target identifier from the at least one first identifier.
  • the display unit 2006 may be specifically configured to display the third content indicated by the target identifier in a floating manner on the first content, where the third content includes the first keyword.
  • the user can select a target identifier from at least one first identifier, and then trigger the electronic device to display the third content corresponding to the target identifier, so that the user can select the required display content according to the actual use requirements, which is convenient for the user. User use, improve user experience.
  • the display unit 2006 may also be configured to display M second keywords, where each second keyword has a similar meaning or the same type as the first keyword, and M is a positive integer.
  • the user input unit 2007 may be configured to receive a fifth input for selecting N second keywords from the M second keywords, where N is a positive integer, and N is less than or equal to M.
  • the display unit 2006 may also be configured to update and display the second content as the fourth content in response to the fifth input received by the user input unit 2007 .
  • the fourth content is content including the first keyword and the N second keywords in the first content.
  • the electronic device can receive an input of selecting N second keywords from M second keywords, and then search the first content including both the first keyword and N second keywords.
  • the content of the keyword, and the second content is updated and displayed as the result of the search (ie, the fourth content).
  • the user does not need to input the second keyword again, but only needs the user to select from the recommended second keyword, and then trigger the electronic device to search again according to the selected second keyword, that is, the search result can be searched again.
  • the user experience is improved.
  • the display unit 2006 can specifically be used to display the second content in a suspended manner on the first content in response to the second input, and display a second control, the second control includes S second signs, each of which is used to indicate a first keyword.
  • the electronic device in response to the second input, can also display a second control floating on the first content, where the second control includes S second identifiers, and each second identifier is used to indicate a first keyword.
  • the user can operate the second identifier to control the display style of the corresponding first keyword. Therefore, the user can modify the display style of the first keyword at any time, thereby facilitating the use of the user.
  • the user input unit 2007 is configured to receive a sixth input for Q second identifiers among the S second identifiers, where Q is a positive integer, and Q is less than or equal to S.
  • the display unit 2006 is further configured to update and display the second content as fifth content in response to the sixth input, where the fifth content is content including Q first keywords in the first content, the Q first keywords is the first keyword indicated by the Q second identifiers.
  • the user can determine the Q second identifiers from the S second identifiers, and then trigger the electronic device to use the Q first keywords indicated by the Q second identifiers to perform a search operation, that is, the user can manually delete the Q second identifiers.
  • the existing first keyword is reduced, so that the search content is more in line with the user's needs, which is convenient for the user to use, and improves the user's use experience.
  • the user input unit 2007 may also be configured to receive a seventh input after the second content is displayed in a floating manner on the first content.
  • the display unit 2006 may also be configured to cancel the floating display of the second content in response to the seventh input received by the user input unit 2007, and display the page of the first content when the first input is received.
  • the electronic device can still display the page of the first content when the first input is received, so that the user can read or use it without interruption, which is convenient for the user. Continue to read or use the first content to improve the user experience.
  • Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the foregoing keyword search method embodiment can be achieved, and the same can be achieved. In order to avoid repetition, the technical effect will not be repeated here.
  • the processor is the processor in the electronic device in the above-mentioned embodiment.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), random access memory (RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to implement each process of the above keyword search method embodiment, And can achieve the same technical effect, in order to avoid repetition, it is not repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种关键字搜索方法、装置及电子设备,属于通信技术领域。该方法包括:接收对显示第一内容的第一输入,该第一内容包括文档内容;响应于该第一输入,显示搜索栏;接收在该搜索栏中输入并搜索第一关键字的第二输入;响应于该第二输入,在该第一内容上悬浮显示第二内容,该第二内容为该第一内容中包括该第一关键字的内容。

Description

关键字搜索方法、装置及电子设备
相关申请的交叉引用
本申请主张在2021年03月11日在中国提交的中国专利申请号202110265598.7的优先权,其全部内容通过引用包含于此。
技术领域
本申请实施例涉及通信技术领域,尤其涉及一种关键字搜索方法、装置及电子设备。
背景技术
随着电子技术的发展,电子设备的功能愈加丰富,在生活中的使用频率也越来越高,用户可以使用电子设备进行办公、学习和娱乐等。
目前,当用户在使用电子设备阅读文档时,用户可以触发电子设备的搜索该文档中的关键字。例如,用户在文档的页面A中输入需要搜索的关键字“苹果”,那么电子设备的屏幕跳转显示该文档中包括关键字“苹果”的页面B。如果用户需要阅读页面B中的内容之后,再对页面A中的内容进行编辑操作,那么,用户可以触发电子设备退出搜索功能,在退出搜索功能后电子设备仍显示最近使用的页面B;接着,用户可以操作电子设备返回至页面A,并在该页面A中进行编辑操作。如此,可能导致对搜索前后的页面的查看和操作的过程较为繁琐,且耗时。
发明内容
本申请实施例的目的是提供一种关键字搜索方法、装置及电子设备,能够解决对搜索前后的页面的查看和操作的过程较为繁琐,且耗时的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种关键字搜索方法,该方法包括:接收对显示第一内容的第一输入,该第一内容包括文档内容;响应于该第一输入,显示搜索栏;接收在该搜索栏中输入并搜索第一关键字的第二输入;响应于该第二输入,在该第一内容上悬浮显示第二内容,该第二内容为该第一内容中包括该第一关键字的内容。
第二方面,本申请实施例提供了一种关键字搜索装置,该装置包括:接收模块和显示模块。接收模块,用于接收对显示第一内容的第一输入,该第一内容包括文档内容;显示模块,用于响应于接收模块接收的该第一输入,显示搜索栏;接收模块,还用于接收在该搜索栏中输入并搜索第一关键字的第二输入;显示模块,还用于响应于接收模块接收的该第二输入,在该第一内容上悬浮显示第二内容,该第二内容为该第一内容中包括该第一关键字的内容。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,该可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。
第五方面,本申请实施例提供了一种芯片,该芯片包括处理器和通信接口,通信接口和处理器耦合,该处理器用于运行程序或指令,实现如第一方面的方法。
在本申请实施例中,可以接收对显示包括文档内容的第一内容的第一输入,且响应于该第一 输入,显示搜索栏;并接收在该搜索栏中输入并搜索第一关键字的第二输入;以及响应于该第二输入,在该第一内容上悬浮显示第二内容,该第二内容为该第一内容中包括该第一关键字的内容。通过该方法,电子设备可以将第一关键字的搜索结果悬浮显示在第一内容上(即,在搜索前的页面上悬浮显示搜索后的内容)。从而用户可以同时查看第一内容和第二内容,并可以分别对第一内容和第二内容进行编辑操作,进而可以避免对搜索前后的页面进行切换,进而简化操作流程,节约用户时间,方便用户使用。
附图说明
图1为本申请实施例提供的一种关键字搜索方法的示意图之一;
图2为本申请实施例提供的一种电子设备显示第二内容的操作示意图之一;
图3为本申请实施例提供的一种关键字搜索方法的示意图之二;
图4为本申请实施例提供的一种关键字搜索方法的示意图之三;
图5为本申请实施例提供的一种电子设备显示第二内容的操作示意图之二;
图6为本申请实施例提供的一种关键字搜索方法的示意图之四;
图7为本申请实施例提供的一种电子设备显示第四内容的操作示意图;
图8为本申请实施例提供的一种关键字搜索方法的示意图之五;
图9为本申请实施例提供的一种关键字搜索方法的示意图之六;
图10为本申请实施例提供的一种电子设备显示第五内容的操作示意图;
图11为本申请实施例提供的一种关键字搜索装置的结构示意图之一;
图12为本申请实施例提供的一种关键字搜索装置的结构示意图之二;
图13为本申请实施例提供的电子设备的硬件示意图之一;
图14为本申请实施例提供的电子设备的硬件示意图之二。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的关键字搜索方法进行详细地说明。
如图1所示,本申请实施例提供一种关键字搜索方法,该方法可以包括下述的步骤101至步骤104。
步骤101、电子设备接收对显示第一内容的第一输入。
其中,上述第一内容包括文档内容。
需要说明的是,本申请实施例所提供的关键字搜索方法可以应用于电子设备或装置。该关键 字搜索方法可以配套后续实施例中的关键字搜索装置使用,并且该方法可以为基于电子设备的主程序(即系统程序)的方法,而不是某一个应用程序。用户可以在使用该电子设备安装的所有应用程序时均可以使用该方法。示例性的,该方法可以为电子设备系统程序中的一个功能模块,用户在使用该电子设备上安装的应用程序A时可以使用该功能模块,用户在使用该电子设备上安装的另一个应用程序B时也可以使用该功能模块。
可选的,本申请实施例中,上述电子设备为包括屏幕的电子设备,电子设备可以在该屏幕中显示第一内容。
可选的,本申请实施例中,上述第一内容为包括文档的内容。具体的,该第一内容可以为仅包括文档内容,即该第一内容可以为一个纯文档内容。例如,该第一内容可以为一个仅包括字符新闻简报;该第一内容包括文档和其他内容,其中,该其他内容包括图片、视频、音频等除文档之外的内容。例如,该第一内容可以为一个一篇包含文档和图片的博文。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。
需要说明的,本申请实施例所提供的关键字搜索方法,是为了对该第一内容中的文档内容的关键字进行搜索,并不包括对除文档内容之外的其他内容中的关键字进行搜索。例如,第一内容中的图片或视频内容中包括的关键字。
可选的,电子设备可以在电子设备的屏幕显示该第一内容的情况下,接收用户对该电子设备的第一输入。上述第一输入用于触发电子设备显示搜索栏。具体的,该第一输入可以为对电子设备的物理按键的按压输入,该物理按键可用于触发电子设备显示搜索栏;该第一输入也可以为对电子设备的语音输入,该语音输入的内容用于指示电子设备显示搜索栏;该第一输入还可以为对电子设备屏幕的预设触控输入。其中,该预设触控输出可以为显示搜索栏对应的触控输入,具体可以为双击、长按、按预设轨迹滑动等。该第一输入还可以为对该屏幕中悬浮显示的搜索栏的缩略标识(例如,“放大镜”标识,悬浮显示于该第一内容上)的触控输入,其中,对该搜索栏的缩略标识的触控输入可以触发电子设备显示搜索栏,该触控输入可以为以下任一项:单击、双击、长按、沿预设轨迹拖动等。第一输入的具体形式可以根据实际使用需求进行确定,本申请实施例不作具体限定。
步骤102、电子设备响应于第一输入,显示搜索栏。
可选的,本申请实施例中,该搜索栏可以悬浮显示于该第一内容上,也可以直接显示在第一内容的界面中。该搜索栏可以包括:输入区域和触发虚拟按键。用户可以在该输入区域中输入关键字(如,下述第一关键字),并通过对该虚拟按键的触发操作,触发电子设备对所输入的关键字进行搜索。
可选的,本申请实施例中,用户可以通过对该电子设备或该搜索栏的第一目标输入,触发电子设备显示搜索设置界面。用户可以在该搜索设置界面中设置以下至少一项:关键字在搜索结果中的显示样式(如:字体、字号、下划线、加粗、背景色等),关键字的搜索范围(如:应用程序A中的文档、历史收藏文档、应用程序A中的文档和应用程序B中的文档等),多个关键字的检索顺序(如:用户的输入顺序,首个字符的笔画顺序等),逻辑符号的使用(如:逻辑符号“and”,可以定义检索式:关键字1and关键字2;逻辑符号“or”,可以定义检索式:关键字1or关键字2等)。具体可以参考相关技术,本申请实施例不作具体限定。
步骤103、电子设备接收在搜索栏中输入并搜索第一关键字的第二输入。
可选的,本申请实施例中,上述第一关键字可以为字符、汉字、标点、符号等,及其任意组 合。可以根据用户的实际使用需求进行确定,本申请实施例不作具体限定。
可选的,本申请实施例中,上述第二输入用于在搜索栏中输入并搜索该第一关键字,具体的,该第二输入可以包括第一子输入和第二子输入。该第一子输入为用户在该搜索栏中输入该第一关键字的输入,具体可以为语音输入、手写输入、键盘的触控输入中的任一种;该第二子输入为用户触发电子设备搜索该第一关键字的输入,具体可以为对搜索栏旁边的虚拟按键的触发输入,该触控输入可以为单击、双击、长按中的一种。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。
步骤104、电子设备响应于第二输入,在第一内容上悬浮显示第二内容。
其中,上述第二内容为第一内容中包括该第一关键字的内容。
可选的,本申请实施例中,上述第二内容为包括该第一关键字的内容,具体可以显示该第一内容中首次出现该第一关键字的内容。用户可以通过后续操作可以切换显示该第一内容中包括第一关键字的其他内容。该切换操作可以通过用户对电子设备的触控操作或手势触发。例如,该第一内容中第三次出现第一关键字的位置,或第五次出现该第一关键字的位置等。
可选的,本申请实施例中,该第二内容可以显示于悬浮窗口,该悬浮窗口悬浮显示于该第一内容之上,即该悬浮窗口显示与电子设备屏幕的最顶层。
可选的,本申请实施例中,上述第二内容的显示面积可以小于该第一内容的显示面积。即该悬浮显示的第二内容只能部分遮挡该第一内容,从而使得用户可以通过未遮挡的部分对该第一内容进行阅读和编辑。具体的,若该第一内容为在电子设备的屏幕上平铺显示(即,第一内容的显示面积占屏幕面积的100%),则第二内容的显示面积可以占屏幕面积的60%。
示例性的,图2为电子设备显示第二内容的操作示意图之一。如图2中的(a)所示,电子设备001显示界面002(即,第一内容)并显示搜索标识003,用户可以单击该搜索标识003,电子设备001响应于该单击输入(即,第一输入),如图2中的(b)所示,显示搜索栏004。用户可以在该搜索栏中输入“内核时间”(即,第一关键字)并双击搜索栏004侧面的标识触发电子设备搜索该“内核时间”。电子设备001响应于该输入及触发操作(即,第二输入),如图2中的(c)所示,在该界面002上悬浮显示窗口005,该窗口005中显示有界面002中关于“内核时间”的搜索结果,并突出显示关键字“内核时间”。
在本申请实施例提供一种关键字搜索方法,电子设备可以接收对显示包括文档内容的第一内容的第一输入,且响应于该第一输入,显示搜索栏;并接收在该搜索栏中输入并搜索第一关键字的第二输入;以及响应于该第二输入,在该第一内容上悬浮显示第二内容,该第二内容为该第一内容中包括该第一关键字的内容。通过该方法,电子设备可以将第一关键字的搜索结果悬浮显示在第一内容上(即,在搜索前的页面上悬浮显示搜索后的内容),且第二内容的显示面积小于第一内容的显示面积,使得第二内容未完全遮挡第一内容。从而用户可以同时查看第一内容和第二内容,并可以分别对第一内容和第二内容进行编辑操作,进而可以避免对搜索前后的页面进行切换,进而简化操作流程,节约用户时间,方便用户使用。
可选的,结合图1,如图3所示,在上述步骤103之前,本申请实施例所提供的关键字搜索方法还包括下述步骤105至步骤107,步骤103具体可以通过下述步骤103a实现。
步骤105、电子设备显示第一控件。
其中,上述第一控件用于指示搜索范围。
可选的,本申请实施例中,上述第一控件用于指示搜索范围,具体的该搜索范围可以为以下 任一项:电子设备中的某个应用程序中的内容(如,应用程序A中的文档),电子设备的至少两个应用程序中的内容(如,应用程序A中的文档和应用程序B中的文档),该电子设备中具有相同标签的内容(如,电子设备中具有“篮球”标签的文档,该文档可以包括应用程序A中的文档,也可以包括应用程序B中的文档),该电子设备中历史收藏文档等。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。
可选的,本申请实施例对上述第一控件的形状,显示形式,显示位置不作具体限定可以根据实际使用需求进行确定。示例性的,该第一控件可以悬浮显示在该第一内容的界面上,还可以和搜索栏合并在一起进行显示。
需要说明的是,下述实施例以第一控件和搜索栏合并在一起进行显示为例进行示例性说明,其并不构成对本申请实施例的具体限定。
步骤106、电子设备接收对第一控件的第三输入。
步骤107、电子设备响应于第三输入,将第一控件指示的搜索范围确定为目标范围。
其中,上述目标范围为搜索该第一关键字的范围。
可选的,本申请实施例中,上述第三输入用于触发第一控件确定目标范围,即确定搜索该第一关键字的范围。具体的,该第三输入可以为对该第一控件的触控输入,该触控输入可以为以下任一项:单击、双击、长按、沿预设轨迹滑动等。
示例性的,若第一控件的形状为矩形或圆形,且包括多个选项,每个选项与上述一个搜索范围相对应,则用户可以从该多个选项中选择用户需要的选项进行长按输入。例如,选择“历史收藏文档”的选项,那么可以触发电子设备从历史收藏文档(即,将历史收藏文档作为目标范围进行搜索)中搜索该第一关键字。
可选的,本申请实施例中,若在目标范围内搜索到包含该第一关键字的内容(如,第二内容),则在第一内容上悬浮显示该搜索到的内容。若在目标范围内未搜索到包含该第一关键字的内容,则在电子设备的屏幕上显示第一提示信息,该第一提示信息用于提示用户在目标范围内未搜索到包含该第一关键字的内容。其中,该第一提示信息的形式可以为文字、语音等,本申请实施例不作具体限定,可以根据实际使用需求进行确定。
步骤103a、电子设备接收在搜索栏中输入并在目标范围内搜索第一关键字的第二输入。
需要说明的是,本申请实施例中,上述步骤103是在预设范围内搜索,该预设范围可以为用户当前使用的内容或文档。例如,用户当前使用应用程序A阅读文档E,当用户触发搜索第一关键字的操作时,电子设备可以在文档E中搜索该第一关键字。而步骤103a是在用户确定的目标范围内对该第一关键字进行搜索操作。例如,用户当前使用应用程序A阅读文档E,若用户确定的目标范围为应用程序A(即,当前应用程序A中的所有内容),则当用户触发搜索第一关键字的操作时,电子设备可以在应用程序A中搜索该第一关键字;若用户确定的目标范围为历史收藏文档(即,该电子设备中所有的收藏文档),则当用户触发搜索第一关键字的操作时,电子设备可以在该电子设备中所有的收藏文档中搜索该第一关键字。
可以理解的是,电子设备在搜索之前可以显示第一控件,并接收用户待该第一控件的输入以确定目标范围,随后,在用户触发电子设备对输入的第一关键字在该目标范文内进行搜索操作。如此,用户可以根据实际的使用需求,手动设置关键字的搜索范围,从而使得搜索结果更加准确,方便用户使用,提升用户的使用体验。
可选的,结合图3,如图4所示,在上述步骤103a之后,本申请实施例所提供的关键字搜索 方法还包括下述步骤108和步骤109,相应的,上述步骤104中的“在第一内容上悬浮显示第二内容”具体可以通过下述步骤104a实现。
步骤108、电子设备按照目标排序显示至少一个第一标识。
其中,上述至少一个第一标识中的每个第一标识用于指示一个文档。
可选的,本申请实施例中,每个第一标识用于指示一个文档,即每个第一标识用于指示第一关键字在文档内容中的搜索结果。例如,该搜索结果为一个文档。
可选的,本申请实施例中,上述至少一个第一标识的显示方式可以为以下任一种方式:方式1、该至少一个第一标识可以显示于一个控件中,且该控件可以贴近电子设备的边缘显示,在用户不对其操作的时间超过预设值时可以自动隐藏,从而不影响用户对电子设备屏幕的使用。而在用户需要使用该控件时,可以通过第二目标输入(例如,对隐藏位置的双击,或对屏幕输入预设轨迹等)将其唤醒,并进行操作。方式2、该至少一个第一标识可以均匀显示于该电子设备的一侧边缘(例如,屏幕的右侧边缘),无需控件,也可以具有隐藏和唤醒功能(与方式1类似,不再赘述)。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。
可选的,本申请实施例中,上述目标排序可以为以下至少一种排序方式:方式A、一般按照文档中包含第一关键字的数量排序;当第一关键字数量相同时,按照文档的创建时间排序;当第一关键字数量和创建时间均相同时,按照文章标题首字符的字母顺序排序。方式B、按照文档中第一关键字的出现频率(该第一关键字的出现频率是指每1000个字符中第一关键字的数量,通常的计算方式为:文档中所有第一关键字的数量除以该文档的字符数量,再换算成每1000个字符中第一关键字的数量)排序。方式C、根据文档的来源进行优先级排序,在每个来源的内部各文档按照包含第一关键字的数量排序。例如,假设预设的历史收藏中的文档的优先级高于应用程序A中的文档,应用程序A中的文档的优先级高于应用程序B中的文档。那么电子设备可以对搜索结果按照历史收藏的文档、应用程序A中的文档、应用程序B中的文档进行排序,且历史收藏的多个文档的内部又可以按照包含第一关键字的数量进一步进行排序,应用程序A中的文档、应用程序B中的文档亦然,此处不予赘述。
步骤109、电子设备接收从该至少一个第一标识中选择目标标识的第四输入。
可选的,本申请实施例中,上述第四输入可以用于触发电子设备从该至少一个第一标识中选择目标标识。具体的,该第四输入可以为从该至少一个第一标识中选择目标标识的触控输入,该触控输入可以为单击、双击、长按中的任一项。该第四输入也可以为语音输入,该语音输入的内容用于指示电子设备从该至少一个第一标识中选择目标标识。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。
步骤104a、电子设备在第一内容上悬浮显示目标标识指示的第三内容。
其中,上述第三内容包括第一关键字。
可选的,本申请实施例中,电子设备可以直接在电子设备的屏幕上显示用户选择的目标标识所指示的第三内容,即用户可以从至少一个第一标识中选择目标标识,从而触发电子设备显示该目标标识对应的第三内容。
示例性的,图5为电子设备显示第二内容的操作示意图之二。如图5中的(a)所示,在用户触发电子设备001显示显示搜索栏004和第一控件006的情况下,用户可以通过对控件006的输入确定搜索的目标范围,图中确定的目标范围为:应用程序A、应用程序B和历史收藏。电子设备可以响应于用户的搜索操作,如图5中的(b)所示,显示搜索结果界面007,该界面007中显 示有“内核时间”(即,第一关键字)在目标范围内的所有搜索结果(即,6个目标标识指示6篇搜索到的文章),且该搜索结果按照来源和所包括第一关键字的数量进行排序。用户可以单击目标标识008指示的文章1,电子设备响应于该单击输入(即第四输入),如图5中的(c)所示,在该界面002上悬浮显示窗口005,该窗口005中显示有界面002中关于“内核时间”的搜索结果,并突出显示关键字“内核时间”。
可以理解的是,用户可以通过对至少一个第一标识中选择目标标识,进而触发电子设备显示该目标标识对应的第三内容,从而使得用户可以根据实际使用需求选择所需要的显示内容,进而方便用户使用,提升用户的使用体验。
可选的,结合图1,如图6所示,在上述步骤104之后,本申请实施例所提供的关键字搜索方法还包括步骤110至步骤112。
步骤110、电子设备显示M个第二关键字。
其中,每个第二关键字与第一关键字的意思相近或类型相同,M为正整数。
需要说明的是,本申请实施例中,上述每个第二关键字均与一个第一关键字的意思相近或类型相同。意思相近,是指该第二关键字可以为该第一关键字的近义词或同义词;类型相同,是指该第二关键字可以为与第一关键字对应的类型相同的关键字,其中,每个第一关键字均与一个类型相对应,该类型具体可以为预设或根据关键字的百科词条确定。
示例性的,假设用户输入的第一关键字是“韩国”,那么电子设备会将该第一关键字“韩国”确定为“东南亚区域国家”的类型,而当电子设备需要显示该类型相同的其他关键字(如,显示多个第二关键字,包括“朝鲜”、“菲律宾”、“马来西亚”等)时,电子设备将第二关键字“朝鲜”,作为与“韩国”类型相同的关键字进行显示。
步骤111、电子设备接收从M个第二关键字中选择N个第二关键字的第五输入。
其中,上述N为正整数,且N小于或等于M。
可选的,本申请实施例中,上述第五输入用于从M个第二关键字中选择确定N个第二关键字,其中,N小于或等于M。具体的,该第五输入可以为从M个第二关键字中选择N个第二关键字的触控输入,该触控输入可以为连续单击、连续滑动、长按中的任一项;该第五输入还可以为语音输入,该语音输入的内容用于指示电子设备从M个第二关键字中选择确定N个第二关键字。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。
需要说明的是,本申请实施例中,上述第五输入与上述第四输入作用类似,均为从多个对象中确定其中的部分对象,因此,该第五输入的具体描述可以参考上述步骤109中的具体描述,此处不再赘述。
步骤112、电子设备响应于第五输入,将第二内容更新显示为第四内容。
其中,上述第四内容为第一内容中包括第一关键字和N个第二关键字的内容。
可选的,本申请实施例中,上述第四内容为第一内容中既包括第一关键字,又包括N个第二关键字的内容。例如,若第一内容中的某一段落既包括第一关键字,又包括N个第二关键字,则电子设备可以将该段落作为第四内容,显示于原第二内容的位置。
可选的,本申请实施例中,若上述第一内容中没有既包括第一关键字,又包括N个第二关键字的内容,则电子设备显示第二提示信息,提示用于在该第一内容中为搜索到既包括第一关键字,又包括N个第二关键字的内容。具体的,该第二提示信息可以参考上述第一提示信息的显示方式,此处不予赘述。
示例性的,图7为电子设备显示第四内容的操作示意图。如图7中的(a)所示,在用户触发电子设备001显示显示搜索栏004和控件009的情况下,该控件009中显示有6个与第一关键字“内核时间”关联的第二关键字,用户可以在6个第二关键字中选择“系统时间”和“时钟中断”两个第二关键字并触发电子设备进行搜索操作。如图7中的(b)所示,在该界面002上悬浮显示窗口010,该窗口010中显示有界面002中既包括第一关键字“内核时间”,有包括“系统时间”和“时钟中断”第二关键字的搜索结果,并突出显示关键字“内核时间”、“系统时间”和“时钟中断”。
可以理解的是,本申请中电子设备可以接收从M个第二关键字中选择N个第二关键字的输入,进而在第一内容中搜索既包括第一关键字,又包括N个第二关键字的内容,并将第二内容更新显示为搜索到结果(即,第四内容)。如此,用户无需再次输入第二关键字,仅需要用户从推荐的第二关键字中进行选择,进而触发电子设备根据选中的第二关键字再次进行搜索,即可以实现对搜索结果的再次搜索,从而方便用户使用,提升用户的使用体验。
可选的,结合图1,如图8所示,第一关键字为S个,S为大于1的整数。上述步骤104具体可以通过下述步骤104b实现。
步骤104b、电子设备响应于第二输入,在第一内容上悬浮显示第二内容,并显示第二控件。
其中,上述第二控件包括S个第二标识,每个第二标识用于指示一个第一关键字。
可选的,本申请实施例中,上述第二控件用户控制已输入的第一关键字,及其每个第一关键字的显示样式。具体的,该第二控件可以显示于该电子设备的一侧的边缘,该第二控件包括的S个第二标识中每个标识指示一个第一关键字。其中,该第二标识的显示样式本申请实施例不作具体限定,示例性的,可以显示为标签样式,每个标签上的文字为一个第一关键字。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。
可选的,本申请实施例中,用户可以通过对S个第二标识中任一第二标识的第三目标输入(该第三目标输入用于触发进入该标识对应的第一关键字的显示样式设置,具体可以参考上述步骤102中的具体描述,该第三目标输入可以为双击、长按等触控输入中的一种),触发电子设备显示该标识对应的第一关键字的显示样式设置界面,用户可以在该界面设置该第一关键字的以下至少一项内容:字体、字号、下划线、加粗、背景色等。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。
可以理解的是,电子设备响应于第二输入,还可以在第一内容上悬浮显示第二控件,该第二控件包括S个第二标识,每个第二标识用于指示一个第一关键字,用户可以对第二标识的操作,控制对应的第一关键字的显示样式。从而用户可以随时对第一关键字的显示样式进行修改,从而方便用户使用。
可选的,结合图8,如图9所示,在上述步骤104b中“显示第二控件”之后,本申请实施例所提供的关键字搜索方法还包括:
步骤113、电子设备接收对S个第二标识中Q个第二标识的第六输入。
其中,上述Q为正整数,且Q小于或等于S。
可选的,本申请实施例中,上述第六输入用于从S个第二标识中确定Q个第二标识,具体的输入形式,可以参考上述步骤111中的输入形式,此处不再赘述。
需要说明的是,本申请实施例中,由于每个第二标识用于指示一个第一关键字,并通过第六输入从S个第二标识中确定Q个第二标识,即电子设备的搜索条件从开始的S个第一关键字,变 为调整后的Q个第一关键字进行搜索,相当于去除了初始搜索条件中的部分第一关键字,从而放松了搜索条件。
步骤114、电子设备响应于第六输入,将第二内容更新显示为第五内容。
其中,上述第五内容为第一内容中包括Q个第一关键字的内容,该Q个第一关键字为Q个第二标识指示的第一关键字。
可选的,本申请实施例中,上述第五内容为第一内容中包括Q个第二标识指示的Q个第一关键字的内容。
需要说明的是,本申请实施例中,上述步骤114中的更新显示方式可以参考上述步骤112中的更新显示方式,此处不再赘述。
示例性的,如图10为电子设备显示第五内容的操作示意图。如图10中的(a)所示,在用户触发电子设备001显示显示搜索栏004和控件011的情况下,该控件011中显示有三个第二标识,用户可以在三个第二标识中选择“时钟中断”并触发电子设备进行搜索操作(即,改变第一关键字重新进行搜索)。如图10中的(b)所示,在该界面002上悬浮显示窗口012,该窗口012中显示有界面002中既包括第一关键字“时钟中断”第二关键字的搜索结果,并突出显示关于“时钟中断”的内容。
可以理解的是,用户可以通过从S个第二标识中确定Q个第二标识,进而触发电子设备使用Q个第二标识指示的Q个第一关键字进行搜索操作,即,用户可以手动删减已有的第一关键字,从而使得搜索内容更加符合用户需求,方便用户使用,提升用户的使用体验。
可选的,本申请实施例中,在上述步骤104之后,本申请实施例所提供的关键字搜索方法还包括下述步骤115和步骤116。
步骤115、电子设备接收第七输入。
可选的,本申请实施例中,上述第七输入用于触发电子设备取消显示第二内容。具体的,该第七输入可以为对电子设备的物理按键的按压输入,该物理按键可用于触发电子设备取消显示第二内容;该第七输入也可以为对电子设备的语音输入,该语音输入的内容用于指示电子设备取消显示第二内容;该第七输入还可以为对电子设备屏幕的预设触控输入,其中,该预设触控操作可以取消显示第二内容,该预设触控操作可以为双击、长按、按预设轨迹滑动等中的任一个。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。
步骤116、电子设备响应于第七输入,取消悬浮显示第二内容,并显示接收第一输入时第一内容的页面。
需要说明的是,电子设备响应于该第七输入,取消悬浮显示第二内容的同时,可以在电子设备的屏幕界面显示原第一内容的页面,即电子设备接收第一输入时的第一内容的页面内容。也就是说,电子设备可以在屏幕显示第一输入之前的第一内容的页面以方便用户继续阅读或使用。
可以理解的是,在用户通过第七输入,触发电子设备取消显示第二内容,电子设备仍可以显示接收第一输入时第一内容的页面,从而使得用户可以阅读或使用不间断,进而方便用户对第一内容继续阅读或使用,提升用户的使用体验。
需要说明的是,本申请实施例提供的关键字搜索方法,执行主体可以为关键字搜索装置,或者该关键字搜索装置中的用于执行关键字搜索方法的控制模块。本申请实施例中以关键字搜索装置执行关键字搜索方法为例,说明本申请实施例提供的装置。
如图11所示,本申请实施例提供一种关键字搜索装置1100。该关键字搜索装置1100可以包 括接收模块1101和显示模块1102。接收模块1101,可以用于接收对显示第一内容的第一输入,该第一内容包括文档内容。显示模块1102,可以用于响应于接收模块1101接收的第一输入,显示搜索栏。接收模块1101,还可以用于接收在该搜索栏中输入并搜索第一关键字的第二输入。显示模块1102,还可以用于响应于接收模块1101接收的该第二输入,在该第一内容上悬浮显示第二内容。
可选的,结合图11,如图12所示,该关键字搜索装置1100可以包括处理模块1103。显示模块1102,还可以用于接收在搜索栏中输入并搜索第一关键字的第二输入之前,显示第一控件,该第一控件用于指示搜索范围。接收模块1101,还可以用于接收对该第一控件的第三输入。处理模块1103,可以用于响应于接收模块1101接收的第三输入,将该第一控件指示的搜索范围确定为目标范围,该目标范围为搜索该第一关键字的范围。接收模块1101,具体可以用于接收在该搜索栏中输入并在该目标范围内搜索第一关键字的第二输入。
可选的,本申请实施例中,显示模块1102,还可以用于接收在搜索栏中输入并搜索第一关键字的第二输入之后,按照目标排序显示至少一个第一标识,每个第一标识用于指示一个文档。接收模块1101,还可以用于接收从该至少一个第一标识中选择目标标识的第四输入。显示模块1102,具体可以用于在该第一内容上悬浮显示该目标标识指示的第三内容,该第三内容包括该第一关键字。
可选的,本申请实施例中,显示模块1102,还可以用于显示M个第二关键字,每个第二关键字与第一关键字的意思相近或类型相同,M为正整数。接收模块1101,可以用于接收从该M个第二关键字中选择N个第二关键字的第五输入,N为正整数,且N小于或等于M。显示模块1102,还可以用于响应于接收模块1101接收的该第五输入,将第二内容更新显示为第四内容。该第四内容为第一内容中包括第一关键字和该N个第二关键字的内容。
可选的,本申请实施例中,第一关键字为S个,S为大于1的整数。显示模块1102,具体可以用于响应于第二输入,在第一内容上悬浮显示第二内容,并显示第二控件,该第二控件包括S个第二标识,每个第二标识用于指示一个第一关键字。
可选的,本申请实施例中,接收模块1101,用于接收对S个第二标识中Q个第二标识的第六输入,Q为正整数,且Q小于或等于S。显示模块1102,还用于响应于第六输入,将第二内容更新显示为第五内容,该第五内容为第一内容中包括Q个第一关键字的内容,该Q个第一关键字为Q个第二标识指示的第一关键字。
可选的,本申请实施例中,接收模块1101,还可以用于在第一内容上悬浮显示第二内容之后,接收第七输入。显示模块1102,还可以用于响应于接收模块1101接收的该第七输入,取消悬浮显示该第二内容,并显示接收第一输入时第一内容的页面。
本申请实施例中的关键字搜索装置可以是电子设备中执行关键字搜索方法的功能实体和/或功能模块,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(network attached storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的关键字搜索装置可以为具有操作系统的装置。该操作系统可以为安卓 (Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的关键字搜索装置能够实现图1至图10的方法实施例中关键字搜索装置实现的各个过程,为避免重复,这里不再赘述。
在本申请实施例提供一种关键字搜索装置,该关键字搜索装置可以接收对显示包括文档内容的第一内容的第一输入,且响应于该第一输入,显示搜索栏;并接收在该搜索栏中输入并搜索第一关键字的第二输入;以及响应于该第二输入,在该第一内容上悬浮显示第二内容,该第二内容为该第一内容中包括该第一关键字的内容。通过该方法,该关键字搜索装置可以将第一关键字的搜索结果悬浮显示在第一内容上(即,在搜索前的页面上悬浮显示搜索后的内容)。从而用户可以同时查看第一内容和第二内容,并可以分别对第一内容和第二内容进行编辑操作,进而可以避免对搜索前后的页面进行切换,进而简化操作流程,节约用户时间,方便用户使用。
可选的,如图13所示,本申请实施例还提供一种电子设备1300,包括处理器1301,存储器1302,存储在存储器1302上并可在所述处理器1301上运行的程序或指令,该程序或指令被处理器1301执行时实现上述关键字搜索方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图14为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备2000包括但不限于:射频单元2001、网络模块2002、音频输出单元2003、输入单元2004、传感器2005、显示单元2006、用户输入单元2007、接口单元2008、存储器2009、以及处理器2010等部件。
其中,输入单元2004可以包括图形处理器20041和麦克风20042,显示单元2006可以包括显示面板20061,用户输入单元2007可以包括触控面板20071以及其他输入设备20072,存储器2009可用于存储软件程序(如,操作系统、至少一个功能所需的应用程序)以及各种数据。
本领域技术人员可以理解,电子设备2000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器2010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图14中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,用户输入单元2007,可以用于接收对显示第一内容的第一输入,该第一内容包括文档内容。显示单元2006,可以用于响应于用户输入单元2007接收的第一输入,显示搜索栏。用户输入单元2007,还可以用于接收在该搜索栏中输入并搜索第一关键字的第二输入。显示单元2006,还可以用于响应于用户输入单元2007接收的该第二输入,在该第一内容上悬浮显示第二内容,该第二内容为该第一内容中包括该第一关键字的内容。
在本申请实施例提供一种电子设备,该电子设备可以接收对显示包括文档内容的第一内容的第一输入,且响应于该第一输入,显示搜索栏;并接收在该搜索栏中输入并搜索第一关键字的第二输入;以及响应于该第二输入,在该第一内容上悬浮显示第二内容,该第二内容为该第一内容中包括该第一关键字的内容。通过该方法,电子设备可以将第一关键字的搜索结果悬浮显示在第一内容上(即,在搜索前的页面上悬浮显示搜索后的内容)。从而用户可以同时查看第一内容和第二内容,并可以分别对第一内容和第二内容进行编辑操作,进而可以避免对搜索前后的页面进行切换,进而简化操作流程,节约用户时间,方便用户使用。
可选的,本身实施例中,显示单元2006,还可以用于接收在搜索栏中输入并搜索第一关键字的第二输入之前,显示第一控件,该第一控件用于指示搜索范围。用户输入单元2007,还可以用于接收对该第一控件的第三输入。处理器2010,可以用于响应于用户输入单元2007接收的第三输入,将该第一控件指示的搜索范围确定为目标范围,该目标范围为搜索该第一关键字的范围。用户输入单元2007,具体可以用于接收在该搜索栏中输入并在该目标范围内搜索第一关键字的第二输入。
可以理解的是,电子设备在搜索之前可以显示第一控件,并接收用户待该第一控件的输入以确定目标范围,随后,在用户触发电子设备对输入的第一关键字在该目标范文内进行搜索操作。如此,用户可以根据实际的使用需求,手动设置关键字的搜索范围,从而使得搜索结果更加准确,方便用户使用,提升用户的使用体验。
可选的,本申请实施例中,显示单元2006,还可以用于接收在搜索栏中输入并搜索第一关键字的第二输入之后,按照目标排序显示至少一个第一标识,每个第一标识用于指示一个文档。用户输入单元2007,还可以用于接收从该至少一个第一标识中选择目标标识的第四输入。显示单元2006,具体可以用于在该第一内容上悬浮显示该目标标识指示的第三内容,该第三内容包括该第一关键字。
可以理解的是,用户可以通过对至少一个第一标识中选择目标标识,进而触发电子设备显示该目标标识对应的第三内容,从而使得用户可以根据实际使用需求选择所需要的显示内容,进而方便用户使用,提升用户的使用体验。
可选的,本申请实施例中,显示单元2006,还可以用于显示M个第二关键字,每个第二关键字与第一关键字的意思相近或类型相同,M为正整数。用户输入单元2007,可以用于接收从该M个第二关键字中选择N个第二关键字的第五输入,N为正整数,且N小于或等于M。显示单元2006,还可以用于响应于用户输入单元2007接收的该第五输入,将第二内容更新显示为第四内容。该第四内容为第一内容中包括第一关键字和该N个第二关键字的内容。
可以理解的是,本申请中电子设备可以接收从M个第二关键字中选择N个第二关键字的输入,进而在第一内容中搜索既包括第一关键字,又包括N个第二关键字的内容,并将第二内容更新显示为搜索到结果(即,第四内容)。如此,用户无需再次输入第二关键字,仅需要用户从推荐的第二关键字中进行选择,进而触发电子设备根据选中的第二关键字再次进行搜索,即可以实现对搜索结果的再次搜索,从而方便用户使用,提升用户的使用体验。
可选的,本申请实施例中,第一关键字为S个,S为大于1的整数。显示单元2006,具体可以用于响应于第二输入,在第一内容上悬浮显示第二内容,并显示第二控件,该第二控件包括S个第二标识,每个第二标识用于指示一个第一关键字。
可以理解的是,电子设备响应于第二输入,还可以在第一内容上悬浮显示第二控件,该第二控件包括S个第二标识,每个第二标识用于指示一个第一关键字,用户可以对第二标识的操作,控制对应的第一关键字的显示样式。从而用户可以随时对第一关键字的显示样式进行修改,从而方便用户使用。
可选的,本申请实施例中,用户输入单元2007,用于接收对S个第二标识中Q个第二标识的第六输入,Q为正整数,且Q小于或等于S。显示单元2006,还用于响应于第六输入,将第二内容更新显示为第五内容,该第五内容为第一内容中包括Q个第一关键字的内容,该Q个第一关键字为Q个第二标识指示的第一关键字。
可以理解的是,用户可以通过从S个第二标识中确定Q个第二标识,进而触发电子设备使用Q个第二标识指示的Q个第一关键字进行搜索操作,即,用户可以手动删减已有的第一关键字,从而使得搜索内容更加符合用户需求,方便用户使用,提升用户的使用体验。
可选的,本申请实施例中,用户输入单元2007,还可以用于在第一内容上悬浮显示第二内容之后,接收第七输入。显示单元2006,还可以用于响应于用户输入单元2007接收的该第七输入,取消悬浮显示该第二内容,并显示接收第一输入时第一内容的页面。
可以理解的是,在用户通过第七输入,触发电子设备取消显示第二内容,电子设备仍可以显示接收第一输入时第一内容的页面,从而使得用户可以阅读或使用不间断,进而方便用户对第一内容继续阅读或使用,提升用户的使用体验。
本实施例中各种实现方式具有的有益效果具体可以参见上述方法实施例中相应实现方式所具有的有益效果,为避免重复,此处不再赘述。
本申请实施例还提供一种可读存储介质,该可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述关键字搜索方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,该处理器为上述实施例中的电子设备中的处理器。该可读存储介质,包括计算机可读存储介质,如计算机只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,该芯片包括处理器和通信接口,该通信接口和该处理器耦合,该处理器用于运行程序或指令,实现上述关键字搜索方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的 保护之内。

Claims (13)

  1. 一种关键字搜索方法,所述方法包括:
    接收对显示第一内容的第一输入,所述第一内容包括文档内容;
    响应于所述第一输入,显示搜索栏;
    接收在所述搜索栏中输入并搜索第一关键字的第二输入;
    响应于所述第二输入,在所述第一内容上悬浮显示第二内容,所述第二内容为所述第一内容中包括所述第一关键字的内容。
  2. 根据权利要求1所述的方法,其中,所述接收在所述搜索栏中输入并搜索第一关键字的第二输入之前,所述方法还包括:
    显示第一控件,所述第一控件用于指示搜索范围;
    接收对所述第一控件的第三输入;
    响应于所述第三输入,将所述第一控件指示的搜索范围确定为目标范围,所述目标范围为搜索所述第一关键字的范围;
    所述接收在所述搜索栏中输入并搜索第一关键字的第二输入,包括:
    接收在所述搜索栏中输入并在所述目标范围内搜索第一关键字的第二输入。
  3. 根据权利要求1所述的方法,其中,所述接收在所述搜索栏中输入并搜索第一关键字的第二输入之后,所述方法还包括:
    按照目标排序显示至少一个第一标识,每个第一标识用于指示一个文档;
    接收从所述至少一个第一标识中选择目标标识的第四输入;
    所述在所述第一内容上悬浮显示第二内容,包括:
    在所述第一内容上悬浮显示所述目标标识指示的第三内容,所述第三内容包括所述第一关键字。
  4. 根据权利要求1所述的方法,其中,所述在所述第一内容上悬浮显示第二内容之后,所述方法还包括:
    显示M个第二关键字,每个第二关键字与所述第一关键字的意思相近或类型相同,M为正整数;
    接收从所述M个第二关键字中选择N个第二关键字的第五输入,N为正整数,且N小于或等于M;
    响应于所述第五输入,将所述第二内容更新显示为第四内容,所述第四内容为所述第一内容中包括所述第一关键字和所述N个第二关键字的内容。
  5. 根据权利要求1所述的方法,其中,所述第一关键字为S个,S为大于1的整数;
    所述响应于所述第二输入,在所述第一内容上悬浮显示第二内容,包括:
    响应于所述第二输入,在所述第一内容上悬浮显示第二内容,并显示第二控件,所述第二控件包括S个第二标识,每个第二标识用于指示一个第一关键字。
  6. 根据权利要求5所述的方法,其中,在显示第二控件之后,所述方法还包括:
    接收对S个所述第二标识中Q个所述第二标识的第六输入,Q为正整数,且Q小于或等于S;
    响应于所述第六输入,将所述第二内容更新显示为第五内容,所述第五内容为所述第一内容中包括Q个所述第一关键字的内容,所述Q个所述第一关键字为Q个所述第二标识指示的第一关键字。
  7. 根据权利要求1至6中任一项所述的方法,其中,所述在所述第一内容上悬浮显示第二内容之后,所述方法还包括:
    接收第七输入;
    响应于所述第七输入,取消悬浮显示所述第二内容,并显示接收所述第一输入时所述第一内容的页面。
  8. 一种关键字搜索装置,所述装置包括:接收模块和显示模块;
    所述接收模块,用于接收对显示第一内容的第一输入,所述第一内容包括文档内容;
    所述显示模块,用于响应于所述接收模块接收的所述第一输入,显示搜索栏;
    所述接收模块,还用于接收在所述搜索栏中输入并搜索第一关键字的第二输入;
    所述显示模块,还用于响应于所述接收模块接收的所述第二输入,在所述第一内容上悬浮显示第二内容,所述第二内容为所述第一内容中包括所述第一关键字的内容。
  9. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至7中的任一项所述的关键字搜索方法的步骤。
  10. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至7中的任一项所述的关键字搜索方法的步骤。
  11. 一种计算机软件产品,所述计算机软件产品被至少一个处理器执行以实现如权利要求1至7中任一项所述的关键字搜索方法。
  12. 一种电子设备,包括电子设备被配置成用于执行如权利要求1至7中任一项所述的关键字搜索方法。
  13. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至7中任一项所述的关键字搜索方法。
PCT/CN2022/079929 2021-03-11 2022-03-09 关键字搜索方法、装置及电子设备 WO2022188805A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110265598.7 2021-03-11
CN202110265598.7A CN113127629B (zh) 2021-03-11 2021-03-11 关键字搜索方法、装置及电子设备

Publications (1)

Publication Number Publication Date
WO2022188805A1 true WO2022188805A1 (zh) 2022-09-15

Family

ID=76772933

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/079929 WO2022188805A1 (zh) 2021-03-11 2022-03-09 关键字搜索方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN113127629B (zh)
WO (1) WO2022188805A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127629B (zh) * 2021-03-11 2024-05-14 维沃移动通信有限公司 关键字搜索方法、装置及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102317943A (zh) * 2011-07-29 2012-01-11 华为技术有限公司 一种全文搜索的方法和装置
US20180113947A1 (en) * 2016-10-26 2018-04-26 Samsung Electronics Co., Ltd. Method and device for performing for searching of at least one keyword within a content
CN111125307A (zh) * 2019-12-16 2020-05-08 维沃移动通信有限公司 一种聊天记录查询方法及电子设备
CN113127629A (zh) * 2021-03-11 2021-07-16 维沃移动通信有限公司 关键字搜索方法、装置及电子设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090015491A (ko) * 2007-08-08 2009-02-12 황보의 인터넷 광고방법
CN102436477A (zh) * 2011-10-11 2012-05-02 鸿富锦精密工业(深圳)有限公司 具关联内容搜索功能的装置及方法
US9372895B1 (en) * 2012-09-10 2016-06-21 Rina Systems Llc Keyword search method using visual keyword grouping interface
CN104750363A (zh) * 2015-03-23 2015-07-01 广州市久邦数码科技有限公司 一种隐藏式悬浮窗的实现方法及其系统
CN110705207A (zh) * 2019-09-05 2020-01-17 深圳龙图腾创新设计有限公司 一种文档显示方法、装置、计算机设备以及存储介质
CN112328829A (zh) * 2020-10-27 2021-02-05 维沃移动通信(深圳)有限公司 视频内容的检索方法和装置
CN112291414B (zh) * 2020-10-28 2022-04-22 维沃移动通信有限公司 消息显示方法、装置及电子设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102317943A (zh) * 2011-07-29 2012-01-11 华为技术有限公司 一种全文搜索的方法和装置
US20180113947A1 (en) * 2016-10-26 2018-04-26 Samsung Electronics Co., Ltd. Method and device for performing for searching of at least one keyword within a content
CN111125307A (zh) * 2019-12-16 2020-05-08 维沃移动通信有限公司 一种聊天记录查询方法及电子设备
CN113127629A (zh) * 2021-03-11 2021-07-16 维沃移动通信有限公司 关键字搜索方法、装置及电子设备

Also Published As

Publication number Publication date
CN113127629A (zh) 2021-07-16
CN113127629B (zh) 2024-05-14

Similar Documents

Publication Publication Date Title
WO2022017525A1 (zh) 页面显示方法、装置和电子设备
WO2022083750A1 (zh) 文字显示方法、装置和电子设备
US20120124469A1 (en) Device, Method, and Graphical User Interface for Navigating a List of Identifiers
EP2987054B1 (en) Consistent text suggestion output
WO2022135474A1 (zh) 信息推荐方法、装置及电子设备
CN107832330B (zh) 一种搜索方法及终端设备
JP6426417B2 (ja) 電子機器、方法及びプログラム
JP2014149604A (ja) 辞書情報表示装置、辞書情報表示方法、辞書情報表示プログラム、辞書情報表示システム、およびそのサーバ装置、端末装置
WO2022089594A1 (zh) 信息显示方法、装置和电子设备
CN105786976A (zh) 一种移动终端及其应用程序搜索方法
WO2023284799A1 (zh) 搜索方法、装置及电子设备
WO2023143430A1 (zh) 信息显示方法及装置
WO2022095885A1 (zh) 应用程序切换处理方法、装置和电子设备
WO2023045958A1 (zh) 应用图标显示方法、装置和电子设备
WO2023045927A1 (zh) 对象移动方法和电子设备
WO2022247789A1 (zh) 候选词更新方法、装置和电子设备
WO2023025121A1 (zh) 显示方法、装置、电子设备及可读存储介质
WO2022188805A1 (zh) 关键字搜索方法、装置及电子设备
WO2022253181A1 (zh) 图标整理方法、装置和电子设备
WO2022213945A1 (zh) 应用提醒方法、装置及电子设备
WO2022105754A1 (zh) 输入文字的方法、装置和电子设备
WO2022143341A1 (zh) 输入法候选词显示方法、装置及电子设备
WO2023036115A1 (zh) 文本内容选取方法和装置
WO2023274171A1 (zh) 应用运行方法和装置
WO2022143523A1 (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: 22766327

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: 22766327

Country of ref document: EP

Kind code of ref document: A1