Search method and apparatus, and device and medium
By automatically determining and displaying search tags in the input box and displaying corresponding results in multiple windows, the problem of users in the prior art needs to re-enter, improving search efficiency and experience.
Patent Information
- Application Number
- PCT/CN2024/098441
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-15
- Filing Date
- 2024-06-11
- Publication Date
- 2024-12-19
AI Technical Summary
The existing search methods require re-entering when users want to search for part of the input content, resulting in poor user experience and low efficiency.
When the text content is displayed in the input box, multiple keywords are automatically determined and corresponding search tags are displayed, users receive input from the tags, and corresponding search results are displayed in multiple windows. Users can select multiple tags for quick comparison Search results for different content.
Simplifies user operations, improves search efficiency and experience, reduces the need for re-entering, and increases the number and accuracy of search results.
Smart Images

Figure CN2024098441_19122024_PF_FP_ABST
Abstract
Description
Search method, device, equipment and medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application No. 202310714225.2 filed in China on June 15, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present application belongs to the field of communication technology, and specifically relates to a search method, apparatus, device and medium. Background Art
[0004] At present, with the continuous development of Internet technology, more and more users publish or obtain information on the Internet, resulting in a very complex information on the Internet. When users want to find certain specific information, they generally use the search control, enter the content to be searched, and then obtain the corresponding information.
[0005] However, the current search method can only mechanically retrieve the content input by the user. When the user wants to retrieve part of the input content, the user needs to re-enter the part of the content in the input box, which results in poor user experience and low efficiency.
[0006] Summary of the Invention
[0007] The purpose of the embodiments of the present application is to provide a search method, apparatus, device and medium that can solve the problem of poor experience and efficiency when a user wants to further search part of the input content.
[0008] In a first aspect, an embodiment of the present application provides a search method, the method comprising:
[0009] In the case where the input box displays text content, determining multiple keywords based on the text content and displaying multiple search tags, the multiple search tags include search tags corresponding to the multiple keywords respectively and a search tag corresponding to the text content;
[0010] receiving a first input for a first tag among the plurality of search tags;
[0011] In response to the first input, displaying search results corresponding to the first tag in a first window;
[0012] The number of the first windows is the same as the number of the first tabs.
[0013] In a second aspect, an embodiment of the present application provides a search device, the device comprising:
[0014] a determination module for, when the input box displays text content, determining a plurality of keywords based on the text content and displaying a plurality of search tags, the plurality of search tags including search tags corresponding to the plurality of keywords respectively and a search tag corresponding to the text content;
[0015] A first receiving module, configured to receive a first input for a first tag among the multiple search tags;
[0016] The first response module is configured to, in response to the first input, display search results associated with the first tag in a first window;
[0017] The number of the first windows is the same as the number of the first tabs.
[0018] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0019] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0020] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.
[0021] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method described in the first aspect.
[0022] In a seventh aspect, an embodiment of the present application provides an electronic device configured to execute the method of the first aspect.
[0023] An embodiment of the present application provides a search method, which includes determining multiple keywords based on the text content when the text content is displayed in an input box, and displaying search tags corresponding to the text content and the keywords, and then receiving the user's input for the first tag, and displaying the corresponding search results in the first window. Based on this method, after the user enters the text content that he wants to search, the text content entered by the user and the keywords therein can be searched separately, thereby increasing the number of search results obtained by the user, and also making it unnecessary for the user to re-enter the part of the content to be retrieved when he wants to search for part of the input content, thereby simplifying the user operation and improving the user experience and efficiency. At the same time, the user can also select multiple search tags at the same time, and the search results of the content corresponding to these multiple search tags will be displayed in multiple first windows at the same time, so that the user can quickly compare the search results of multiple different contents, improve the search efficiency, and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] FIG1 is a flow chart of a search method for implementing an embodiment of the present application;
[0025] FIG2 is a first schematic diagram of an electronic device interface display for implementing an embodiment of the present application;
[0026] FIG3 is a second schematic diagram of an electronic device interface display implementing an embodiment of the present application;
[0027] FIG4 is a third schematic diagram of an electronic device interface display implementing an embodiment of the present application;
[0028] FIG5 is a fourth schematic diagram of an electronic device interface display implementing an embodiment of the present application;
[0029] FIG6 is a fifth schematic diagram of an electronic device interface display implementing an embodiment of the present application;
[0030] FIG7 is a schematic structural diagram of a search device for implementing an embodiment of the present application;
[0031] FIG8 is a first schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application;
[0032] FIG9 is a second schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application. DETAILED DESCRIPTION
[0033] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0034] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0035] The search method, apparatus, device, and medium provided in the embodiments of the present application are described in detail below with reference to specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0036] The present application embodiment provides a search method, as shown in FIG1 , which includes the following steps S1100 to S1300 :
[0037] S1100 , when the input box displays text content, multiple keywords are determined according to the text content and multiple search tags are displayed, the multiple search tags including search tags corresponding to the multiple keywords and search tags corresponding to the text content.
[0038] In the embodiment of the present application, the text content displayed in the input box may be the content that the user wants to search for. After the user enters the text content, the corresponding text content may be displayed in the input box.
[0039] When text content is displayed in the input box, multiple keywords of the text content can be determined based on the text content.
[0040] In the embodiments of the present application, the text content is the content actually entered by the user in the input box. Keywords are parts of the text content. Keywords can be automatically split according to preset conditions or split according to user-selected splitting dimensions. Alternatively, they can be obtained by manually selecting target content from the text content. The number of keywords can be one or more. Furthermore, a keyword in the embodiments of the present application can be a single word or a short sentence.
[0041] After multiple keywords are determined, multiple search tags containing text content and multiple keywords can be displayed. At the same time, the text content entered by the user and multiple keywords can be searched separately in the background to obtain corresponding search results.
[0042] In one example, these search tags can be displayed before searching for text content and corresponding keywords. For example, these search tags can be highlighted in the input box by bolding, highlighting, or isolating the text content entered by the user. In another example, these search tags can also be displayed on the display interface after searching for text content and corresponding keywords.
[0043] For example, a search tag with text content and keywords and a first window may be displayed in the display interface. The first window is used to display search results corresponding to the search tag.
[0044] In one example, search tags for text content and keywords may be displayed in the search tag area.
[0045] In one embodiment of the present application, the display interface may include a search tag area and a first window. As shown in Figure 2, when a user searches through an electronic device, an input box 201 is displayed on the screen 200 of the electronic device, and the user can enter the text content to be searched in the input box 201, such as "A's concert in place B". A search tag area 202 is also displayed on the screen 200, which can display search tags for text content and search tags for keywords in the text content, and arrange these tags in a certain order, such as the tags "A's concert in place B", "A", "Place B", "Concert", etc. arranged in sequence in Figure 3. In addition, a first window 203 is also displayed on the screen 200, which is used to display the search results of the corresponding search tags.
[0046] It should be noted that the input box, search tag area and first window in FIG2 are only examples, and those skilled in the art can flexibly set the size, shape and distribution of the above areas according to actual conditions.
[0047] In addition, when the number of keywords in the text content is large, the search tag area may also display only some tags among the search tags of the text content and all keywords.
[0048] Step S1200: receiving a first input for a first tag among a plurality of search tags.
[0049] Step S1300 : In response to the first input, displaying search results corresponding to the first tag in a first window; wherein the number of the first windows is the same as the number of the first tags.
[0050] In an example of this embodiment, after displaying multiple search tags corresponding to text content and keywords, the user's input on one or more tags may be received and responded to, and the search results corresponding to the tags may be displayed in the first window.
[0051] When the user selects one of the tags, the corresponding first window can display the search results of the text content or keywords corresponding to the tag. When the user selects multiple search tags, such as two search tags, the search results of the two tags can be displayed in two windows respectively.
[0052] For example, the user inputs the text content "A's concert in place B", and the corresponding search tag for the text content is "A's concert in place B". The search tags for the split keywords are "A", "Place B", and "Concert". After searching for multiple search tags separately, the search interface can be as shown in Figure 3. In the search tag area, the text content and the search tags for multiple keywords can be displayed. When the user selects the search tags "A's concert in place B" and "A". The two first windows can display the search results of the two tags respectively. In the first window on the left, the search results of the search tag "A's concert in place B" are displayed, and in the first window on the right, the search results of the search tag "A" are displayed.
[0053] In one example, after the user selects multiple search tags, the corresponding tags in the search tag area may be highlighted, for example, highlighted, enlarged, bolded, with a changed background color, or underlined.
[0054] In another example, after the user selects multiple search tags, other inputs may be made to the search tag area or the search tags, such as sliding input, clicking input, etc., to change the search tag selected by the user.
[0055] An embodiment of the present application provides a search method, which includes determining multiple keywords based on the text content when the text content is displayed in an input box, and displaying search tags corresponding to the text content and the keywords, and then receiving the user's input for the first tag, and displaying the corresponding search results in the first window. Based on this method, after the user enters the text content that he wants to search, the text content entered by the user and the keywords therein can be searched separately, thereby increasing the number of search results obtained by the user, and also making it unnecessary for the user to re-enter the part of the content to be retrieved when he wants to search for part of the input content, thereby simplifying the user operation and improving the user experience and efficiency. At the same time, the user can also select multiple search tags at the same time, and the search results of the content corresponding to these multiple search tags will be displayed in multiple first windows at the same time, so that the user can quickly compare the search results of multiple different contents, improve the search efficiency, and improve the user experience.
[0056] In one embodiment of the present application, the method provided in the embodiment of the present application further includes S1400 before the above S1100.
[0057] S1400 , displaying multiple split dimension options; and receiving a second input for a target split dimension option among the multiple split dimension options.
[0058] In one example, after a user enters text content to search, multiple split dimension options may be displayed in the interface. The split dimension corresponding to the split dimension option is the basis for subsequent splitting of the text content and obtaining keywords.
[0059] In one example, an interface displaying multiple split dimension options may be as shown in FIG4 , in which multiple split dimension options may be provided, such as semantic recognition, nouns, verbs, adjectives, languages, and the like.
[0060] In one example, a user can select a target splitting dimension option from multiple splitting dimension options by clicking, swiping, voice control, or other methods. The number of target splitting dimension options can be one or more.
[0061] In another example, in an interface displaying multiple split dimension options, a switch for a keyword search function may also be displayed. By selecting the switch, one can control whether to split the text to obtain corresponding keywords.
[0062] Based on the above S1400, determining multiple keywords based on the text content in the above S1100 can be achieved through the following S1110:
[0063] S1110 , when the input box displays text content, in response to the second input, split the text content according to the splitting dimension corresponding to the target splitting dimension option to obtain the multiple keywords.
[0064] In one example, after the user selects the target splitting dimension option, the user can split the text content according to the splitting dimension corresponding to the target splitting dimension option to obtain multiple keywords.
[0065] For example, the text content in the input box is "A's concert in place B, hotel in place B". When the split dimension option selected by the user is semantic recognition, it can be recognized that the text content includes two different semantics, and based on these two different semantics, the text content can be split into two keywords "A's concert in place B" and "hotel in place B". For another example, when the split dimension option selected by the user is noun, the nouns in the text content can be split, such as the name "A", the place name "B", "concert" and "hotel", etc. The same applies to verbs, adjectives and nouns, so I will not go into details here. For another example, when the split dimension option is "English", the content to be split is "A's concert in place B", where A and B are the English name and place name respectively. At this time, the English parts "A" and "B" in the text content can be used as keywords for the text content.
[0066] In another example, the user may select multiple splitting dimension options. For example, the text content is "A exercises in the gym". When the splitting dimension options selected by the user are nouns and verbs, the nouns and verbs in the text content can be split to obtain keywords such as "A", "gym", and "exercise".
[0067] In this embodiment, before the user searches, split dimension options can be pre-displayed for the user to select the split dimension when splitting the text content to obtain the keyword the user wants to search for, so that the search results corresponding to the keyword can be displayed later.
[0068] In one embodiment, determining multiple keywords based on text content in S1100 can be achieved by the following S1120:
[0069] S1120, when the text content meets the preset conditions, determine multiple keywords based on the text content, wherein the preset conditions include at least one of the following: incomplete semantics, incomplete language structure, the number of words is greater than a first preset value, punctuation characters are included, words of preset types are included, and the number of search results of the text content is less than a second preset value.
[0070] For example, if the text content is "withered and dry," the text content lacks a complete semantic meaning. In this case, the text content can be split to obtain the corresponding keywords "withered" and "dry." For another example, if the text content is "withered and dry," the text content lacks a complete sentence structure. Therefore, it can be determined that the user wants to search for both words simultaneously, and the text content can be split to obtain the corresponding keywords. For another example, if the first preset value is 10, and the text content is "comparison, analogy, contrast, comparison, and synonyms of comparison," the word count of the text content exceeds the preset threshold, and searching only for this text content clearly cannot meet the user's information acquisition needs. In this case, the text content can be split to obtain the corresponding keywords "comparison," "analogy," "contrast," "contrast," and "synonyms of comparison," so that content corresponding to these keywords can be subsequently searched. For another example, the text content can be split when there are punctuation marks, such as "," ";," and ".", or when the text content contains words of preset categories, such as book titles, names of people, and place names.
[0071] In one example, when the text content meets any preset condition, the text content is split and processed. The splitting process can be performed based on the target splitting dimension selected by the user or the keywords selected by the user, or other methods.
[0072] In this embodiment, after a user enters text in an input box, the displayed text can be judged to see if it meets preset conditions, intelligently confirming whether the user needs to split the text for search. The text is split only when the preset conditions are met, thus avoiding wasting processing and search resources when the user does not need to split the text for keyword search.
[0073] In one example of this embodiment, the preset condition may further include that the number of search results for the text content is less than a second preset value. After the user enters text content in the input box, the background may first search the text content and determine the number of search results that can be found in the text content. If the number of search results is small and less than the second preset value, the text content may be split.
[0074] In this embodiment, after the user enters text content, the backend can first search the text content and determine the number of search results for the text content. If the number is small, the text content is split and processed to obtain keywords in the text content so that the keyword search results can be displayed later. In this way, even if the amount of information available through the user's search is small, the keywords in the text content can still be searched to obtain more information that the user may need, thereby improving the user experience.
[0075] In one embodiment, determining multiple keywords based on text content in S1100 can be implemented through the following S1130 and S1140:
[0076] S1130, splitting the text content to obtain multiple words;
[0077] S1140: When the multiple words include words with the same semantics, delete repeated words with the same semantics to obtain the multiple keywords.
[0078] In this embodiment, when the input box displays text content, the text content can be split based on the target splitting dimension selected by the user or in other ways to obtain multiple words, and semantic recognition is performed on these words.
[0079] After the text is split and multiple words are obtained, the obtained words may include words with the same or similar meanings. For example, if the text content entered by the user is split into multiple words including "Liu Bei", "Liu Huangshu", and "Liu Xuande", after identification, these three words have the same meaning and all refer to the historical figure Liu Bei. In this case, "Liu Huangshu" and "Liu Xuande" can be deleted, and only "Liu Bei" can be retained as the keyword.
[0080] In another example, words with the same or similar meanings may also include identical words. For example, the text content is "A's concert in B, hotel in B". When the text content is split by the noun dimension, the words split out are "A", "B", "concert", "B" and "hotel". Among them, there are two identical words "B". In this case, the latter word "B" can be directly deleted, and the four words "A", "B", "concert" and "hotel" are retained as keywords.
[0081] In this embodiment, after the text content is split, the split words can be filtered according to the semantics of the split words to remove words with the same or similar semantics, so as to avoid wasting processing resources and search resources when searching for repeated or semantically similar keywords.
[0082] In one embodiment, determining multiple keywords based on text content in S1100 can be implemented through the following S1150 and S1160:
[0083] S1150, splitting the text content to obtain multiple words;
[0084] S1160: When the multiple words include related words, merge the related words to obtain multiple keywords.
[0085] In this embodiment, when the input box displays text content, the text content can be split based on the target splitting dimension selected by the user or in other ways to obtain multiple words, and determine whether these words are related.
[0086] In this embodiment, two words can be associated in various situations, such as two words representing a certain region and a specific building or scenic spot within the region. For example, when the text content is "Where to go in Shanghai, Oriental Pearl Tower", the text content is split into two words "Shanghai" and "Oriental Pearl Tower". Later, if it is determined that these two words are also associated, the two words "Shanghai" and "Oriental Pearl Tower" can be merged, and "Shanghai Oriental Pearl Tower" can be used as the keyword. In subsequent searches, only search results for the Shanghai Oriental Pearl Tower building can be obtained, and search results related to other Oriental Pearl Towers will not be obtained.
[0087] In another example, two words are related, and can also be two words that represent a person and the person's works, deeds, etc., as well as some common collocations, or two words that have an inclusive relationship.
[0088] In this example, after splitting the text in the input box into multiple words, the related words can be merged and used as keywords to make the keywords more specific and in line with the user's original idea. This allows for more accurate keyword search results that meet user needs.
[0089] In one embodiment, the step of determining multiple keywords based on text content in S1100 can be implemented through the following steps S1170 and S1180 .
[0090] S1170: Receive user input for selecting target content in the text content.
[0091] S1180: Use the target content as a keyword of the text content.
[0092] In one example, the user's first input may also include a selection input for the target content in the text content. In one example, the user can select the text content entered in the input box or the manual setting interface. For example, as shown in Figure 5, after the user enters the text content in the input box, a manual setting interface may be displayed, on which the text content in the input box may be displayed. The user may determine the keywords that need to be split by selecting a box or adjusting the cursor. In the example of Figure 5, the user used the cursor to select the concert in the text content as the target content. Subsequently, based on the user's selection input, "concert" will be used as the keyword of the text content.
[0093] In another example, step S1170 may also be performed when keywords cannot be split out by splitting the keywords by dimensions or splitting the keywords based on preset conditions.
[0094] In this embodiment, before the user performs a search, the text content can be manually split to obtain the keyword tag that the user wants to search for, so that the search results corresponding to the keyword tag can be displayed later.
[0095] In one embodiment, the method further includes: receiving a third input from the user regarding the first tag; adjusting the positional relationship of the multiple search tags in response to the third input, and adjusting the positional relationship of the search results of the multiple search tags in the multiple first windows.
[0096] In one example, after the results of the search tags of multiple first tags are displayed in multiple first windows, the user can continue to operate on one or more of the first tags, for example, by clicking and long-pressing one of the search tags to drag it to another location, or clicking the two target search tags in sequence. The positional relationship between the two search tags is adjusted, and their positions are swapped. On this basis, the positions of the search results of the two search tags in the two first windows can also be changed synchronously.
[0097] For example, as shown in Figure 6, the first tags are "A's concert in location B" and "A". After the user drags the search tag "A" to the left of the search tag "A's concert in location B", the search results for the tag "A's concert in location B" in the first window on the left can also be adjusted to the search results for the search tag "A", and the search results in the first window on the right can be adjusted to the search results for the tag "A's concert in location B".
[0098] In this embodiment, the user can change the positions of the corresponding search results in the first window by adjusting the positional relationship of the multiple search tags, so that the user can flexibly adjust the interface according to his or her own usage habits, thereby improving the user experience.
[0099] The search method provided in the embodiment of the present application can be executed by a search device. In the embodiment of the present application, a method for performing a search by a search device is taken as an example to illustrate the search device provided in the embodiment of the present application.
[0100] This embodiment of the present application provides a search device 700, as shown in FIG7 , including:
[0101] Determining module 710, for determining multiple keywords based on the text content and displaying multiple search tags when the input box displays text content, the multiple search tags including search tags corresponding to the multiple keywords and search tags corresponding to the text content;
[0102] A first receiving module 720 is configured to receive a first input for a first tag among a plurality of search tags;
[0103] A first response module 730 is configured to, in response to the first input, display search results of the keyword corresponding to the first tag in the first window;
[0104] The number of the first windows is the same as the number of the first tabs.
[0105] In this embodiment, a search device is provided that, after a user enters text content they wish to search, can search both the text content they entered and the keywords therein, thereby increasing the number of search results the user obtains. Furthermore, when the user wishes to search for a portion of the input content, they no longer need to re-enter the portion they wish to search for, simplifying user operations and improving user experience and efficiency. Furthermore, the user can select multiple search tags simultaneously, and the search results corresponding to the multiple search tags will be displayed simultaneously in multiple first windows, allowing the user to quickly compare search results for multiple different contents, thereby improving search efficiency and enhancing the user experience.
[0106] In one embodiment of the present application, the device also includes: a display module 740, used to display multiple splitting dimension options; a second receiving module 750, also used to receive a second input for a target splitting dimension option among the multiple splitting dimension options; a determination module 710, specifically used to, when the input box displays text content, respond to the second input, and split the text content according to the splitting dimension corresponding to the target splitting dimension option to obtain multiple keywords.
[0107] In one embodiment of the present application, the determination module 710 is specifically used to: determine multiple keywords based on the text content when the text content meets the preset conditions, wherein the preset conditions include at least one of the following: incomplete semantics, incomplete language structure, the number of words is greater than a first preset value, punctuation characters are included, words of preset types are included, and the number of search results of the text content is less than a second preset value.
[0108] In one embodiment of the present application, the determination module 710 includes: a first splitting module for splitting text content to obtain multiple words; a deletion module for deleting repeated words with the same semantics to obtain multiple keywords when the multiple words include words with the same semantics.
[0109] In one embodiment of the present application, the determination module 710 further includes: a second splitting module for splitting the text content to obtain multiple words; and a merging module for merging the related words to obtain multiple keywords when the multiple words include related words.
[0110] The search device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.
[0111] The search device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0112] The search device provided in the embodiment of the present application can implement each process implemented in the method embodiments corresponding to Figures 1 to 6. To avoid repetition, they will not be described here.
[0113] Optionally, as shown in Figure 8, an embodiment of the present application also provides an electronic device 800, including a processor 801 and a memory 802, and the memory 802 stores a program or instruction that can be run on the processor 801. When the program or instruction is executed by the processor 801, the various steps of the above-mentioned search method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0114] FIG9 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0115] The electronic device 1000 includes but is not limited to components such as a radio frequency unit 1001 , a network module 1002 , an audio output unit 1003 , an input unit 1004 , a sensor 1005 , a display unit 1006 , a user input unit 1007 , an interface unit 1008 , a memory 1009 , and a processor 1010 .
[0116] Those skilled in the art will appreciate that the electronic device 1000 may further include a power source (such as a battery) for powering various components. The power source may be logically connected to the processor 1010 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG9 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components, or have different component arrangements, which will not be described in detail here.
[0117] The processor 1010 is configured to, when the input box displays text content, determine multiple keywords based on the text content and display multiple search tags, where the multiple search tags include search tags corresponding to the multiple keywords and a search tag corresponding to the text content.
[0118] The input unit 1004 is configured to receive a first input for a first tag among the multiple search tags;
[0119] The display unit 1006 displays the search results corresponding to the first tag in a first window in response to the first input; wherein the number of the first windows is the same as the number of the first tags.
[0120] The embodiment of the present application provides an electronic device that can search the text content entered by the user and the keywords therein separately after the user enters the text content that he or she wants to search, thereby increasing the number of search results obtained by the user and eliminating the need to re-enter the part of the content to be searched when the user wants to search for part of the input content. This simplifies user operations and improves user experience and efficiency. At the same time, the user can also select multiple search tags at the same time, and the search results corresponding to the content of these multiple search tags are displayed in multiple first windows at the same time, making it convenient for the user to quickly compare the search results of multiple different contents, improving search efficiency, and enhancing user experience.
[0121] Optionally, the display unit 1006 is used to display multiple split dimension options;
[0122] The input unit 1004 is configured to receive a second input for a target splitting dimension option among the multiple splitting dimension options;
[0123] The processor 1010 is configured to, in response to the second input, split the text content according to the splitting dimension corresponding to the target splitting dimension option to obtain a plurality of keywords when the text content is displayed in the input box.
[0124] Optionally, processor 1010 is further used to determine multiple keywords based on the text content when the text content meets preset conditions, wherein the preset conditions include at least one of the following: incomplete semantics, incomplete language structure, the number of words is greater than a first preset value, punctuation characters are included, preset types of words are included, and the number of search results of the text content is less than a second preset value.
[0125] Optionally, the processor 1010 is further configured to split the text content to obtain multiple words;
[0126] When a plurality of words include words with the same semantics, repeated words with the same semantics are deleted to obtain a plurality of keywords.
[0127] Optionally, the processor 1010 is further configured to split the text content to obtain multiple words;
[0128] In the case where the plurality of words include related words, the related words are merged to obtain a plurality of keywords.
[0129] It should be understood that in an embodiment of the present application, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.
[0130] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0131] Processor 1010 may include one or more processing units. Optionally, processor 1010 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 1010.
[0132] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned search method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0133] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0134] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned search method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0135] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0136] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned search method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0137] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0138] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0139] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A search method, comprising: In the case where the input box displays text content, multiple keywords are determined according to the text content and multiple search tags are displayed, wherein the multiple search tags include search tags corresponding to the multiple keywords respectively and a search tag corresponding to the text content; receiving a first input for a first tag among the plurality of search tags; In response to the first input, displaying search results corresponding to the first tag in a first window; The number of the first windows is the same as the number of the first tags.
2. The method according to claim 1, wherein: Before determining a plurality of keywords according to the text content and displaying a plurality of search tags, the method includes: Display multiple split dimension options; receiving a second input for a target split dimension option among the plurality of split dimension options; In the case where the input box displays text content, determining multiple keywords according to the text content includes: In the case where the input box displays text content, in response to the second input, the text content is split according to the splitting dimension corresponding to the target splitting dimension option to obtain the multiple keywords.
3. The method according to claim 1, wherein: Determining a plurality of keywords according to the text content includes: When the text content meets preset conditions, multiple keywords are determined based on the text content, wherein the preset conditions include at least one of the following: incomplete semantics, incomplete language structure, the number of words is greater than a first preset value, punctuation characters are included, words of preset types are included, and the number of search results of the text content is less than a second preset value.
4. The method according to claim 1, wherein: Determining a plurality of keywords according to the text content includes: Splitting the text content to obtain multiple words; In the case where the plurality of words include words with the same semantics, repeated words with the same semantics are deleted to obtain the plurality of keywords.
5. The method according to claim 1, wherein: Determining a plurality of keywords according to the text content includes: Splitting the text content to obtain multiple words; In the case that the plurality of words include associated words, the associated words are merged to obtain the plurality of keywords.
6. A search device, comprising: a determination module, configured to determine a plurality of keywords according to the text content and display a plurality of search tags when the input box displays text content, wherein the plurality of search tags include search tags corresponding to the plurality of keywords respectively and a search tag corresponding to the text content; A first receiving module, configured to receive a first input for a first tag among the multiple search tags; A first response module, configured to display search results corresponding to the first tag in a first window in response to the first input; The number of the first windows is the same as the number of the first tags.
7. The apparatus according to claim 6, further comprising: A display module, used to display multiple split dimension options; The second receiving module is further used to receive a second input for a target splitting dimension option among the multiple splitting dimension options; The determination module is specifically used to, when the input box displays text content, respond to the second input and split the text content according to the split dimension corresponding to the target split dimension option to obtain the multiple keywords.
8. The device according to claim 6, wherein: The determination module is specifically used for: When the text content meets preset conditions, multiple keywords are determined based on the text content, wherein the preset conditions include at least one of the following: incomplete semantics, incomplete language structure, the number of words is greater than a first preset value, punctuation characters are included, words of preset types are included, and the number of search results of the text content is less than a second preset value.
9. The device according to claim 6, wherein: The determination module comprises: A first splitting module, used for splitting the text content to obtain a plurality of words; The deleting module is used to delete repeated words with the same semantics to obtain the multiple keywords when the multiple words include words with the same semantics.
10. The device according to claim 6, wherein: The determination module also includes: A second splitting module, used for splitting the text content to obtain a plurality of words; The merging module is used for merging the associated words to obtain the multiple keywords when the multiple words include associated words.
11. An electronic device comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the search method according to any one of claims 1 to 5 are implemented.
12. A readable storage medium storing a program or instruction, wherein the program or instruction, when executed by a processor, implements the steps of the search method according to any one of claims 1 to 5.
13. A chip comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the search method according to any one of claims 1 to 5.
14. A computer program product, wherein the program product is stored in a storage medium and is executed by at least one processor to implement the steps of the search method according to any one of claims 1 to 5.
15. An electronic device, configured to execute the steps of the search method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for performing search through mobile terminal
CN106980631A
Information display method and device, electronic equipment and medium
CN111831938A
Search result recall method and device and readable storage medium
CN112559763A
Information search method and device, electronic equipment and storage medium
CN115329193A
Business content searching method and device, equipment and storage medium
CN115840851A
