CN113010072A - Searching method and device, electronic equipment and readable storage medium - Google Patents

Searching method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113010072A
CN113010072A CN202110463236.9A CN202110463236A CN113010072A CN 113010072 A CN113010072 A CN 113010072A CN 202110463236 A CN202110463236 A CN 202110463236A CN 113010072 A CN113010072 A CN 113010072A
Authority
CN
China
Prior art keywords
text
sub
texts
input
candidate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110463236.9A
Other languages
Chinese (zh)
Inventor
乐永
王建辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202110463236.9A priority Critical patent/CN113010072A/en
Publication of CN113010072A publication Critical patent/CN113010072A/en
Priority to PCT/CN2022/088392 priority patent/WO2022228294A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/3331Query processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a searching method, a searching device, electronic equipment and a readable storage medium, and belongs to the technical field of searching. The method comprises the following steps: receiving a user's selected input of a first text; responding to the selected input, and splitting the first text into a plurality of candidate sub-texts under the condition that the text length of the first text is larger than the preset text length; determining a target sub-text in the plurality of candidate sub-texts; and generating a second text according to the target sub-text, and searching the second text, wherein the text length of the second text is less than or equal to the preset text length.

Description

Searching method and device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of searching, and particularly relates to a searching method, a searching device, electronic equipment and a readable storage medium.
Background
At present, when text is input into a search box for searching, the text length of the text input into the search box cannot exceed the text length limited by the search box, otherwise, a first part of the text which does not exceed the text length limited by the search box is intercepted in the search box for searching, and a second part of the text which exceeds the text length limited by the search box is intercepted, so that the second part cannot be kept in the search box for searching.
Disclosure of Invention
An object of the embodiments of the present application is to provide a search method, an apparatus, an electronic device, and a readable storage medium, which can solve the technical problem in the prior art that after a text input into a search box is intercepted according to a limited text length limited by the search box, the accuracy of a search result is relatively low due to relatively less effective information included in the intercepted text.
In a first aspect, an embodiment of the present application provides a search method, including: receiving a user's selected input of a first text; responding to the selected input, and splitting the first text into a plurality of candidate sub-texts under the condition that the text length of the first text is larger than the preset text length; determining a target sub-text in the plurality of candidate sub-texts; and generating a second text according to the target sub-text, and searching the second text, wherein the text length of the second text is less than or equal to the preset text length.
In a second aspect, an embodiment of the present application provides a search apparatus, including: the first receiving module is used for receiving the selected input of the first text by the user; the splitting module is used for responding to the selected input and splitting the first text into a plurality of candidate sub-texts under the condition that the text length of the first text is larger than the preset text length; a determining module, configured to determine a target sub-text in the plurality of candidate sub-texts; the generating module is used for generating a second text according to the target sub-text; and the searching module is used for searching the second text generated by the generating module, wherein the text length of the second text is less than or equal to the preset text length.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, after a selected input of a user on a first text is received, the selected input is responded, the first text is split into a plurality of candidate sub-texts under the condition that the text length of the first text is larger than the preset text length, then a target sub-text in the candidate sub-texts is determined, a second text is generated according to the target sub-text, and the second text is searched, wherein the text length of the second text is smaller than or equal to the preset text length. In this case, the first text is used as the text for inputting the search box, the preset text length is used as the limited text length limited by the search box, and the target sub-text is used as the sub-text containing the effective information in the first text.
Drawings
FIG. 1 is a method flow diagram of a search method provided by some embodiments of the present application;
FIG. 2 is a schematic illustration of a plurality of textonyms in a first interface provided by some embodiments of the present application;
FIG. 3 is a method flow diagram of another search method provided by some embodiments of the present application;
FIG. 4A is a schematic diagram of a process for adjusting a position of at least one sub-text to be adjusted in a first interface according to some embodiments of the present application;
FIG. 4B is a schematic diagram of another process for adjusting the position of at least one sub-text to be adjusted in the first interface according to some embodiments of the present application;
FIG. 5 is a method flow diagram of yet another search method provided by some embodiments of the present application;
FIG. 6 is a schematic diagram of adding a new target sub-text in a first interface according to some embodiments of the present application;
FIG. 7 is a method flow diagram of yet another search method provided by some embodiments of the present application;
FIG. 8 is a block diagram of a functional structure of a search apparatus according to some embodiments of the present application;
FIG. 9 is a functional block diagram of an electronic device according to some embodiments of the present application;
fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
At present, when a text is input into a search box for searching, in the case that the text length of the text input into the search box exceeds the text length limited by the search box, a first part of the text which does not exceed the text length limited by the search box is intercepted in the search box for searching, and a second part of the text which exceeds the text length limited by the search box is intercepted, so that the second part cannot be kept in the search box for searching.
In practical cases, for the text input into the search box, a first part of the text length that does not exceed the limit of the search box and a second part of the text length that exceeds the limit may contain valid information of the text to be searched. In this case, if only the first part of the text is retained in the search box and the second part is cut off, the absence of valid information in the text may be caused, resulting in a low accuracy of the search result.
Based on the existing problems, the embodiment of the application provides a search method. As shown in fig. 1, the search method includes the following steps S110 to S140.
Step S110: a user selected input to the first text is received.
The first text is the text that the user intended to enter the search box. The first text is, for example, all or part of the text in the information text such as the text of a web page, the text of a file in an electronic document material, or the like.
The selection input is input for selecting a first text in the information text by a user.
For example, the first text is all texts in the information text, and the user selects all texts in the information text as the first text by making a selection input on the information text. In this process, the selection input may be a long press operation or a double click operation, or the like.
As another example, the first text is a partial text in the information text, and the user selects the partial text in the information text as the first text by making a selection input on the information text. In the process, the user can perform long-press operation on the information text to enable a starting position cursor and an ending position cursor to appear in the current interface, and the positions of the starting position cursor and the ending position cursor in the information text are determined again by performing dragging operation on the starting position cursor and the ending position cursor so as to select the text between the starting position cursor and the ending position cursor as the first text. In this process, the selected input includes the long press operation and the drag operation described above.
It is to be understood that the above listed selection inputs are only exemplary, and in practical cases, as long as the first text can be selected in the information text, the input mode of the selection input is not limited by the embodiments of the present disclosure.
Step S120: and in response to the selected input, splitting the first text into a plurality of candidate sub-texts under the condition that the text length of the first text is larger than the preset text length.
The text length may be the number of characters contained in a character string within the text. The preset text length is the text length limited by the search box.
Illustratively, the number of characters contained in the first text inner character string is N, and the number of characters contained in the search box limited text inner character string is M. And under the condition that N is larger than M, the text length of the first text is larger than the preset text length, otherwise, the text length of the first text is smaller than or equal to the preset text length.
In some examples, the plurality of candidate sub-texts is a plurality of words. In this case, the first text may be split into a plurality of candidate sub-texts, where the first text is subjected to word segmentation, and a plurality of words obtained from the word segmentation result are used as the plurality of candidate sub-texts. The word segmentation processing mode may be set by a person skilled in the art according to an actual situation, and is not limited in the embodiment of the present application.
In other examples, the plurality of candidate subfolders includes at least one word and at least one phrase; or the plurality of candidate subfolders comprises a plurality of phrases. The manner of splitting the multiple candidate sub-texts into at least one word and at least one phrase, or splitting the multiple candidate sub-texts into multiple phrases, may be set by those skilled in the art according to practical situations, and is not limited in this embodiment of the present application.
Step S130: a target sub-text of the plurality of candidate sub-texts is determined.
Among the plurality of candidate sub-texts, a candidate sub-text containing valid information in the plurality of first texts may be taken as a target sub-text. The number of target sub-texts may be one or more.
In some embodiments, after step S120, a first interface including the plurality of candidate sub-texts may be displayed in a display screen, so as to present the plurality of candidate sub-texts obtained by splitting the first text to the user. In this case, a first candidate sub-text of the plurality of candidate sub-texts may be determined as the target sub-text, wherein the first candidate sub-text is selected from the plurality of candidate sub-texts by the user.
In some examples, as shown in fig. 2, a plurality of textonyms 21 are provided in the first interface 20, the plurality of textonyms 21 correspond to the plurality of candidate sub-texts one by one, and each textonym 21 displays a candidate sub-text corresponding to the textonym (for example, a candidate sub-text a, a candidate sub-text B, a candidate sub-text C, a candidate sub-text D, a candidate sub-text E, a candidate sub-text F, a candidate sub-text G, a candidate sub-text H, and the like, which are correspondingly displayed on the plurality of textonyms). In this case, the user may perform a selection input on at least one of the textonyms 21, where the selection input is, for example, a click operation or a double-click operation, in this embodiment, the selection input may be a selection input directly on at least one textonym 21, and in this case, the candidate sub-text corresponding to the at least one textonym 21 is determined as the target sub-text; or, each textonym 21 is further provided with a deletion option 22, and the selection input may be a selection input of the deletion option 22 corresponding to at least one textonym 21, in this case, the candidate subfolders other than the candidate subfolders corresponding to the at least one textonym 21 are determined as the target subfolders.
In some examples, the first interface further includes a "confirm" button or a "reset" button, and after the selection input is performed, the "confirm" button may be clicked to determine the selected candidate sub-text in the plurality of candidate sub-texts; alternatively, a "reset" button is operated to reset the selection results of the plurality of candidate sub-texts.
In other embodiments, a second candidate sub-text of the candidate sub-texts associated with the target keyword may be determined as the target sub-text.
In some examples, the target keywords are one or more words entered by the user in the search box. The second candidate sub-text associated with the target keyword may be: and the word with the word sense similarity higher than a preset similarity threshold value with the target keyword in the one or more words.
The obtaining manner of the word sense similarity between the one or more words and the target keyword and the preset similarity threshold may be set by those skilled in the art according to actual situations, and the embodiment of the present disclosure does not limit this.
Step S140: and generating a second text according to the target sub-text, and searching the second text, wherein the text length of the second text is less than or equal to the preset text length.
In some embodiments, all target sub-texts are combined, the combined result is taken as the second text, and the second text is searched.
In the case where the number of the target sub-texts is plural, the arrangement order of the plural target sub-texts defaults to a first arrangement order of the plural target sub-texts in the first text.
In some embodiments, all of the target sub-texts are combined, and the plurality of target sub-texts in the first arrangement order may be directly combined to obtain the second text.
In other embodiments, the arrangement order of the target sub-texts may be modified from a first arrangement order to a second arrangement order, and the target sub-texts in the second arrangement order may be combined to obtain the second text.
It should be noted that the text length of the second text is less than or equal to the preset text length, so that the purpose of shortening the text length of the first text and simultaneously keeping the effective information in the first text is achieved, and the accuracy of the search result obtained under the condition that the text length of the input search box text is greater than the text length limited by the search box is effectively improved.
In some examples, in order to modify the arrangement order of the plurality of target sub-texts from the first arrangement order to the second arrangement order, before performing step S140, as shown in fig. 3, the following steps S310 to S320 may be included.
Step S310: and receiving a first input of at least one to-be-adjusted sub text in the plurality of target sub texts from a user.
The first input is an input for designating a position of at least one sub-text to be adjusted as a target position corresponding to each sub-text to be adjusted.
Specifically, the first input may include a drag operation of dragging at least one to-be-adjusted sub-document to a target position corresponding to each to-be-adjusted sub-document.
In some examples, as shown in fig. 4A, the plurality of target sub-texts includes a candidate sub-text a, a candidate sub-text C, a candidate sub-text E, a candidate sub-text F, and a candidate sub-text G in fig. 2, the at least one sub-text to be adjusted includes one of the plurality of target sub-texts, for example includes a candidate sub-text C, and the first input may be, for example, a first drag operation of dragging the candidate sub-text C to a target position Z1.
In some examples, as shown in fig. 4B, the plurality of target sub-texts includes a candidate sub-text a, a candidate sub-text C, a candidate sub-text E, a candidate sub-text F, and a candidate sub-text G in fig. 2, and the at least one sub-text to be adjusted includes a plurality of the target sub-texts, for example, includes a candidate sub-text C and a candidate sub-text F, and the first input may include: a first drag operation dragging candidate child text C to target position Z1, and a second drag operation dragging candidate child text F to target position Z2.
It is to be understood that the above listed first input is only an example, and the input mode of the first input is not limited in the embodiment of the present application as long as it can be specified to move the position of at least one sub text to be adjusted to the corresponding target position.
Step S320: and responding to the first input, and adjusting the position of at least one sub text to be adjusted.
Specifically, in response to the first input, the position of each sub-text to be adjusted is adjusted to be the target position corresponding to the adjusted sub-text, so that the purpose of modifying the arrangement sequence of the plurality of target sub-texts from the first arrangement sequence to the second arrangement sequence is achieved.
In some embodiments, the target sub-text in step S140 further includes one or more target sub-texts added by the user through text input, in addition to the one or more target sub-texts determined from the plurality of candidate sub-texts in step S130. In the case that the first interface is displayed, before step S140 is executed, as shown in fig. 5, the embodiment of the present application may further include steps S510 to S520 as follows.
Step S510: and receiving the new input of the user.
Illustratively, as shown in fig. 6, the first interface further includes at least one text addition option 23. The new inputs may include: an operation of designating a target text addition option among the at least one text addition option 23 (for example, a click operation on the target text addition option 23).
Step S520: and responding to the newly added input, and adding the content corresponding to the newly added input into the target sub-text.
Illustratively, in the case of displaying the first interface, as shown in fig. 6, in response to the new input, a text input box 60 is displayed in the first interface, the content of the text input box 60 input by the user is acquired as the content corresponding to the new input, and the text corresponding to the content is added as the target sub-text. The purpose of enabling a user to add one or more target sub-texts newly through text input is achieved.
In some embodiments, after the second text is searched, the obtained search result may deviate from the search result intended by the user, in this case, if the first candidate sub-text is obtained after the user selects the plurality of candidate sub-texts in the first interface, in order to obtain the search result intended by the user, the user may have a desire to quickly return to the first interface, so as to re-determine the requirement of the target sub-text in the plurality of candidate sub-texts according to the requirement of the user in the first interface. In order to meet the above requirement of the user, after performing step S140, as shown in fig. 7, the embodiment of the present disclosure may further include the following steps S710 to S720.
Step S710: a second input by the user is received.
And searching the second text obtained in the step S140 to obtain a search result. The second input may be a long press operation, a double click operation, or the like on the search box after the search result is obtained.
Step S720: displaying a second interface in response to the second input; the second interface displays a plurality of candidate sub texts, target sub texts in the candidate sub texts are displayed in a first mode, and other sub texts except the target sub texts in the candidate sub texts are displayed in a second mode.
Specifically, the second interface displays a plurality of candidate sub-texts in the first interface. For determining the target sub-text in the plurality of candidate sub-texts in the first interface, the target sub-text in the plurality of candidate sub-texts is displayed in a first mode, and the other sub-texts except the target sub-text in the plurality of candidate sub-texts are displayed in a second mode, so that the target sub-text in the plurality of candidate sub-texts and the other sub-texts except the target sub-text in the first interface are displayed in a distinguishing mode for providing reference for the user to determine the target sub-text in the plurality of candidate sub-texts again.
Illustratively, the first mode is a highlighted mode, and the second mode is a non-highlighted mode; in another example, the first mode is a mode in which a text is displayed after being bolded, and the second mode is a mode in which a text is not displayed in bolded form. In a specific implementation, as long as the target sub-text and other sub-texts except the target sub-text in the plurality of candidate sub-texts determined in the first interface can be displayed differently, the embodiment of the present disclosure does not limit the specific implementation of the first manner and the second manner.
In the case that the second interface is displayed, a user selection input of at least one third candidate sub-text in the second interface may be received, the third candidate sub-text is determined as the target sub-text, and the above step S140 is performed again.
In the embodiment of the application, after a selected input of a user on a first text is received, the selected input is responded, the first text is split into a plurality of candidate sub-texts under the condition that the text length of the first text is larger than the preset text length, then a target sub-text in the candidate sub-texts is determined, a second text is generated according to the target sub-text, and the second text is searched, wherein the text length of the second text is smaller than or equal to the preset text length. In this case, the first text is used as the text for inputting the search box, the preset text length is used as the limited text length limited by the search box, and the target sub-text is used as the sub-text containing the effective information in the first text. And in addition, under the condition that the obtained search result possibly deviates from the search result wanted by the user, a second interface can be displayed according to the second input of the user, so that the user can quickly redetermine the target sub-text in the candidate sub-texts through the second interface, and the search requirement of the user is better met.
It should be noted that, in the search method provided in the embodiment of the present application, the execution main body may be a search apparatus, or a control module in the search apparatus for executing the search method. In the embodiment of the present application, a search apparatus is taken as an example to execute the search method in the above embodiment, and the search apparatus provided in the embodiment of the present application is described.
Fig. 8 shows a functional structure block diagram of a search apparatus according to an embodiment of the present application. As shown in fig. 8, the search device 80 includes:
the first receiving module 81 is configured to receive a user selection input for the first text.
And the splitting module 82 is configured to, in response to a selected input, split the first text into a plurality of candidate sub-texts if the text length of the first text is greater than a preset text length.
A determining module 83, configured to determine a target sub-text in the plurality of candidate sub-texts.
And a generating module 84, configured to generate a second text according to the target sub-text.
The searching module 85 is configured to search the second text generated by the generating module, where the text length of the second text is smaller than or equal to the preset text length.
In the embodiment of the present application, the search apparatus is capable of responding to a selection input after receiving the selection input of a user to a first text, splitting the first text into a plurality of candidate sub-texts under the condition that the text length of the first text is greater than a preset text length, then determining a target sub-text in the plurality of candidate sub-texts, generating a second text according to the target sub-text, and searching the second text, where the text length of the second text is less than or equal to the preset text length. In this case, the first text is used as the text for inputting the search box, the preset text length is used as the limited text length limited by the search box, and the target sub-text is used as the sub-text containing the effective information in the first text.
Optionally, the determining module includes: the first determining sub-module is used for determining a first candidate sub-text in the candidate sub-texts as a target sub-text under the condition that a first interface comprising a plurality of candidate sub-texts is displayed, wherein the first candidate sub-text is obtained after a user selects from the candidate sub-texts; or, the second determining sub-module is configured to determine a second target candidate sub-text associated with the target keyword from the plurality of candidate sub-texts as the target sub-text.
Optionally, the number of the target sub-texts is multiple; the search device further includes: the second receiving module is used for receiving first input of at least one to-be-adjusted sub text in the target sub texts from a user; the adjusting module is used for responding to the first input and adjusting the position of at least one sub text to be adjusted; a generation module specifically configured to: and generating a second text according to the adjusted position relation of the plurality of target sub-texts.
Optionally, the searching apparatus further comprises: the third receiving module is used for receiving the newly added input of the user; and the adding module is used for responding to the newly added input and adding the content corresponding to the newly added input into the target sub-text.
Optionally, the searching apparatus further comprises: the fourth receiving module is used for receiving a second input of the user; the display module is used for responding to the second input and displaying a second interface; the second interface displays a plurality of candidate sub texts, target sub texts in the candidate sub texts are displayed in a first mode, and other sub texts except the target sub texts in the candidate sub texts are displayed in a second mode.
In the embodiment of the application, the searching device can respond to the selected input after receiving the selected input of the user to the first text, under the condition that the text length of the first text is greater than the preset text length, split the first text into a plurality of candidate sub-texts, then determine a target sub-text in the plurality of candidate sub-texts, generate a second text according to the target sub-text, and search the second text, wherein the text length of the second text is less than or equal to the preset text length. In this case, the first text is used as the text for inputting the search box, the preset text length is used as the limited text length limited by the search box, and the target sub-text is used as the sub-text containing the effective information in the first text. And in addition, under the condition that the obtained search result possibly deviates from the search result wanted by the user, a second interface can be displayed according to the second input of the user, so that the user can quickly redetermine the target sub-text in the candidate sub-texts through the second interface, and the search requirement of the user is better met.
The searching device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
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 (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The search apparatus provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1, fig. 3, fig. 5, and fig. 7, and is not described here again to avoid repetition.
Optionally, as shown in fig. 9, an electronic device 900 is further provided in this embodiment of the present application, and includes a processor 901, a memory 902, and a program or an instruction stored in the memory 902 and executable on the processor 901, where the program or the instruction is executed by the processor 901 to implement each process of the foregoing search method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: 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.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
Wherein, the processor 1010 is configured to receive a user's selected input for the first text; responding to the selected input, and splitting the first text into a plurality of candidate sub-texts under the condition that the text length of the first text is larger than the preset text length; determining a target sub-text in the plurality of candidate sub-texts; and generating a second text according to the target sub-text, and searching the second text, wherein the text length of the second text is less than or equal to the preset text length.
In this embodiment, after receiving a selection input of a user to a first text, in response to the selection input, when the text length of the first text is greater than a preset text length, the processor 1010 may split the first text into a plurality of candidate sub-texts, determine a target sub-text in the plurality of candidate sub-texts, generate a second text according to the target sub-text, and search the second text, where the text length of the second text is less than or equal to the preset text length. In this case, the first text is used as the text for inputting the search box, the preset text length is used as the limited text length limited by the search box, and the target sub-text is used as the sub-text containing the effective information in the first text.
The processor 1010 is specifically configured to, in determining a target sub-text in the plurality of candidate sub-texts: under the condition that a first interface comprising a plurality of candidate sub texts is displayed, determining a first candidate sub text in the candidate sub texts as a target sub text, wherein the first candidate sub text is obtained after a user selects from the candidate sub texts; alternatively, a second candidate sub-text associated with the target keyword among the plurality of candidate sub-texts is determined as the target sub-text.
The number of the target sub-texts is multiple, and the processor 1010 is further configured to, before generating the second text according to the target sub-text: receiving a first input of a user to at least one to-be-adjusted sub text in a plurality of target sub texts; responding to the first input, and adjusting the position of at least one sub text to be adjusted; the processor 1010 generates a second text according to the target sub-text, and is specifically configured to: and generating a second text according to the adjusted position relation of the plurality of target sub-texts.
Processor 1010, prior to generating the second text from the target sub-text, is further configured to: receiving a new input of a user; and responding to the newly added input, and adding the content corresponding to the newly added input into the target sub-text.
The processor 1010, after searching for the second text, is further configured to: receiving a second input of the user; displaying a second interface in response to the second input; the second interface displays a plurality of candidate sub texts, target sub texts in the candidate sub texts are displayed in a first mode, and other sub texts except the target sub texts in the candidate sub texts are displayed in a second mode.
In this embodiment, after receiving a selection input of a user to a first text, in response to the selection input, when the text length of the first text is greater than a preset text length, the processor 1010 may split the first text into a plurality of candidate sub-texts, determine a target sub-text in the plurality of candidate sub-texts, generate a second text according to the target sub-text, and search the second text, where the text length of the second text is less than or equal to the preset text length. In this case, the first text is used as the text for inputting the search box, the preset text length is used as the limited text length limited by the search box, and the target sub-text is used as the sub-text containing the effective information in the first text. And in addition, under the condition that the obtained search result possibly deviates from the search result wanted by the user, a second interface can be displayed according to the second input of the user, so that the user can quickly redetermine the target sub-text in the candidate sub-texts through the second interface, and the search requirement of the user is better met.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing 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, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as 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 (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above search method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, such as Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, etc.
The embodiment of the present application further 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 execute a program or an instruction to implement each process of the above search method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may 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) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method of the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A method of searching, comprising:
receiving a user's selected input of a first text;
in response to the selected input, splitting the first text into a plurality of candidate sub-texts under the condition that the text length of the first text is greater than a preset text length;
determining a target sub-text of the plurality of candidate sub-texts;
and generating a second text according to the target sub-text, and searching the second text, wherein the text length of the second text is less than or equal to the preset text length.
2. The method of claim 1, wherein the determining a target sub-text of the plurality of candidate sub-texts comprises:
under the condition that a first interface comprising the candidate sub texts is displayed, determining a first candidate sub text in the candidate sub texts as a target sub text, wherein the first candidate sub text is selected from the candidate sub texts by a user;
or, determining a second candidate sub-text associated with the target keyword in the plurality of candidate sub-texts as the target sub-text.
3. The method of claim 1, wherein the number of target sub-texts is plural;
before generating the second text according to the target sub-text, the method further includes:
receiving a first input of a user to at least one to-be-adjusted sub text in the plurality of target sub texts;
responding to the first input, and adjusting the position of the at least one to-be-adjusted sub text;
the generating of the second text according to the target sub-text comprises:
and generating the second text according to the adjusted position relation of the plurality of target sub-texts.
4. The method of claim 1, wherein before generating the second text from the target sub-text, the method further comprises:
receiving a new input of a user;
and responding to the newly added input, and adding the content corresponding to the newly added input into the target sub-text.
5. The method of claim 1, wherein after searching the second text, the method further comprises:
receiving a second input of the user;
displaying a second interface in response to the second input; the plurality of candidate sub texts are displayed in the second interface, the target sub text in the plurality of candidate sub texts is displayed in a first mode, and other sub texts except the target sub text in the plurality of candidate sub texts are displayed in a second mode.
6. A search apparatus, comprising:
the first receiving module is used for receiving the selected input of the first text by the user;
the splitting module is used for responding to the selected input and splitting the first text into a plurality of candidate sub-texts under the condition that the text length of the first text is larger than the preset text length;
a determining module for determining a target sub-text of the plurality of candidate sub-texts;
the generating module is used for generating a second text according to the target sub-text;
and the searching module is used for searching the second text generated by the generating module, wherein the text length of the second text is less than or equal to the preset text length.
7. The apparatus of claim 6, wherein the determining module comprises:
the first determining sub-module is used for determining a first candidate sub-text in the candidate sub-texts as a target sub-text under the condition that a first interface comprising the candidate sub-texts is displayed, wherein the first candidate sub-text is obtained after a user selects from the candidate sub-texts;
or, the second determining sub-module is configured to determine a second target candidate sub-text associated with the target keyword from the plurality of candidate sub-texts as the target sub-text.
8. The apparatus of claim 6, wherein the number of the target sub-texts is plural;
the device further comprises:
the second receiving module is used for receiving first input of at least one to-be-adjusted sub text in the target sub texts from a user;
the adjusting module is used for responding to the first input and adjusting the position of the at least one to-be-adjusted sub text;
the generation module is specifically configured to:
and generating the second text according to the adjusted position relation of the plurality of target sub-texts.
9. The apparatus of claim 6, further comprising:
the third receiving module is used for receiving the newly added input of the user;
and the adding module is used for responding to the newly added input and adding the content corresponding to the newly added input into the target sub-text.
10. The apparatus of claim 6, further comprising:
the fourth receiving module is used for receiving a second input of the user;
the display module is used for responding to the second input and displaying a second interface; the plurality of candidate sub texts are displayed in the second interface, the target sub text in the plurality of candidate sub texts is displayed in a first mode, and other sub texts except the target sub text in the plurality of candidate sub texts are displayed in a second mode.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the search method of any one of claims 1-5.
12. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the search method according to any one of claims 1 to 5.
CN202110463236.9A 2021-04-27 2021-04-27 Searching method and device, electronic equipment and readable storage medium Pending CN113010072A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110463236.9A CN113010072A (en) 2021-04-27 2021-04-27 Searching method and device, electronic equipment and readable storage medium
PCT/CN2022/088392 WO2022228294A1 (en) 2021-04-27 2022-04-22 Method and apparatus for carrying out searching, electronic device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110463236.9A CN113010072A (en) 2021-04-27 2021-04-27 Searching method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113010072A true CN113010072A (en) 2021-06-22

Family

ID=76380847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110463236.9A Pending CN113010072A (en) 2021-04-27 2021-04-27 Searching method and device, electronic equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN113010072A (en)
WO (1) WO2022228294A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022228294A1 (en) * 2021-04-27 2022-11-03 维沃移动通信(杭州)有限公司 Method and apparatus for carrying out searching, electronic device, and readable storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04111064A (en) * 1990-08-31 1992-04-13 Hitachi Ltd Parallel string search device
US5745745A (en) * 1994-06-29 1998-04-28 Hitachi, Ltd. Text search method and apparatus for structured documents
US20110022609A1 (en) * 2009-07-24 2011-01-27 Avaya Inc. System and Method for Generating Search Terms
CN106933959A (en) * 2013-11-15 2017-07-07 北京奇虎科技有限公司 Browser side carries out the method and browser of web search
CN107291772A (en) * 2016-04-11 2017-10-24 北京搜狗科技发展有限公司 One kind search access method, device and electronic equipment
CN110134760A (en) * 2019-05-17 2019-08-16 北京思维造物信息科技股份有限公司 A kind of searching method, device, equipment and medium
CN110232110A (en) * 2019-05-29 2019-09-13 深圳市霏凡网络科技有限公司 A kind of patent retrieval analysis method, system and storage medium
CN111061838A (en) * 2019-12-18 2020-04-24 广东智媒云图科技股份有限公司 Text feature keyword determination method and device and storage medium
CN111124709A (en) * 2019-12-13 2020-05-08 维沃移动通信有限公司 Text processing method and electronic equipment
CN111159359A (en) * 2019-12-31 2020-05-15 达闼科技成都有限公司 Document retrieval method, document retrieval device and computer-readable storage medium
CN111949765A (en) * 2020-08-20 2020-11-17 深圳市卡牛科技有限公司 Similar text searching method, system, equipment and storage medium based on semantics
CN112380244A (en) * 2020-12-02 2021-02-19 杭州筑龙信息技术股份有限公司 Word segmentation searching method and device, electronic equipment and readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8819034B2 (en) * 2005-12-14 2014-08-26 Blackberry Limited Method and apparatus for generating a new event directly from a document
CN102609208B (en) * 2012-02-13 2014-01-15 广州市动景计算机科技有限公司 Method and system for word capture on screen of touch screen equipment, and touch screen equipment
CN102945243B (en) * 2012-09-20 2018-05-04 百度在线网络技术(北京)有限公司 A kind of contact details recognition methods based on browsing content
CN102929924A (en) * 2012-09-20 2013-02-13 百度在线网络技术(北京)有限公司 Method and device for generating word selecting searching result based on browsing content
CN102929925A (en) * 2012-09-20 2013-02-13 百度在线网络技术(北京)有限公司 Search method and device based on browsing content
CN113010072A (en) * 2021-04-27 2021-06-22 维沃移动通信(杭州)有限公司 Searching method and device, electronic equipment and readable storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04111064A (en) * 1990-08-31 1992-04-13 Hitachi Ltd Parallel string search device
US5745745A (en) * 1994-06-29 1998-04-28 Hitachi, Ltd. Text search method and apparatus for structured documents
US20110022609A1 (en) * 2009-07-24 2011-01-27 Avaya Inc. System and Method for Generating Search Terms
CN106933959A (en) * 2013-11-15 2017-07-07 北京奇虎科技有限公司 Browser side carries out the method and browser of web search
CN107291772A (en) * 2016-04-11 2017-10-24 北京搜狗科技发展有限公司 One kind search access method, device and electronic equipment
CN110134760A (en) * 2019-05-17 2019-08-16 北京思维造物信息科技股份有限公司 A kind of searching method, device, equipment and medium
CN110232110A (en) * 2019-05-29 2019-09-13 深圳市霏凡网络科技有限公司 A kind of patent retrieval analysis method, system and storage medium
CN111124709A (en) * 2019-12-13 2020-05-08 维沃移动通信有限公司 Text processing method and electronic equipment
CN111061838A (en) * 2019-12-18 2020-04-24 广东智媒云图科技股份有限公司 Text feature keyword determination method and device and storage medium
CN111159359A (en) * 2019-12-31 2020-05-15 达闼科技成都有限公司 Document retrieval method, document retrieval device and computer-readable storage medium
CN111949765A (en) * 2020-08-20 2020-11-17 深圳市卡牛科技有限公司 Similar text searching method, system, equipment and storage medium based on semantics
CN112380244A (en) * 2020-12-02 2021-02-19 杭州筑龙信息技术股份有限公司 Word segmentation searching method and device, electronic equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022228294A1 (en) * 2021-04-27 2022-11-03 维沃移动通信(杭州)有限公司 Method and apparatus for carrying out searching, electronic device, and readable storage medium

Also Published As

Publication number Publication date
WO2022228294A1 (en) 2022-11-03

Similar Documents

Publication Publication Date Title
CN112988006A (en) Display method, display device, electronic equipment and storage medium
CN113220393A (en) Display method and device and electronic equipment
CN114374663B (en) Message processing method and message processing device
CN113037925B (en) Information processing method, information processing apparatus, electronic device, and readable storage medium
CN113114845B (en) Notification message display method and device
CN113849092A (en) Content sharing method and device and electronic equipment
CN112399010B (en) Page display method and device and electronic equipment
WO2022228294A1 (en) Method and apparatus for carrying out searching, electronic device, and readable storage medium
CN113127653B (en) Information display method and device
CN115309487A (en) Display method, display device, electronic equipment and readable storage medium
CN113536745A (en) Character processing method and character processing device
CN112307273A (en) Information query method and device and electronic equipment
CN112818094A (en) Chat content processing method and device and electronic equipment
CN112698734A (en) Candidate word display method and device and electronic equipment
CN113282830A (en) Display method and display device
CN113157966A (en) Display method and device and electronic equipment
CN112286613A (en) Interface display method and interface display device
CN112596646B (en) Information display method and device and electronic equipment
KR20150093045A (en) Sketch Retrieval system, user equipment, service equipment and service method based on meteorological phenomena information and computer readable medium having computer program recorded therefor
CN112612400B (en) Text content processing method and electronic equipment
CN113076010B (en) Input method, input device, electronic equipment and medium
CN112711674A (en) Method and device for generating song list
CN108509058B (en) Input method and related equipment
CN113010251A (en) Information processing method and device and electronic equipment
CN113239660A (en) Text display method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210622