CN113127718A - Text search method and device, readable medium and electronic equipment - Google Patents

Text search method and device, readable medium and electronic equipment Download PDF

Info

Publication number
CN113127718A
CN113127718A CN202110536580.6A CN202110536580A CN113127718A CN 113127718 A CN113127718 A CN 113127718A CN 202110536580 A CN202110536580 A CN 202110536580A CN 113127718 A CN113127718 A CN 113127718A
Authority
CN
China
Prior art keywords
text
searchable
search box
determining
search
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
CN202110536580.6A
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110536580.6A priority Critical patent/CN113127718A/en
Publication of CN113127718A publication Critical patent/CN113127718A/en
Priority to PCT/CN2022/082421 priority patent/WO2022242302A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • 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
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The disclosure relates to a text search method, a text search device, a readable medium and an electronic device, wherein the text search device comprises: displaying a search box, wherein one or more searchable texts are displayed in the search box; receiving a trigger operation of a user on a search box; determining a target text in the searchable text according to the trigger operation under the condition that the trigger operation is a preset trigger operation; and searching the target text and displaying a search result page of the target text. By the technical scheme, when the user is interested in the searchable text displayed in the search box, the search result can be displayed to the user more quickly, and the interactive experience of the text search function is improved by improving the efficiency of searching the text displayed in the search box by the user.

Description

Text search method and device, readable medium and electronic equipment
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a text search method, an apparatus, a readable medium, and an electronic device.
Background
Currently, most information applications are usually provided with a search box for providing a user with an interface for quickly retrieving information of interest. For example, in an information search box a of some application software in the mobile terminal shown in fig. 1a, a plurality of searchable texts such as "searchable text 1" and "searchable text 2" are displayed in parallel in the horizontal direction, which represent the currently most popular search keyword for the interested user to click and view. However, when the user is interested by the hot word in the search box, for example, when viewing the information related to the hot word "searchable text 1", two clicks are required, that is, the search box a is clicked first, and then the hot word B "searchable text 1" shown under the search box a is clicked again in the invoked search page shown in fig. 1B, so that the function of searching the hot word can be really triggered. Therefore, in the current scene, the operation of searching hot words by the user is complicated, and the efficiency of searching hot words by the user is influenced.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, the present disclosure provides a text search method, including:
displaying a search box, wherein one or more searchable texts are displayed in the search box;
receiving a trigger operation of a user on the search box;
under the condition that the trigger operation is a preset trigger operation, determining a target text in the searchable text according to the trigger operation;
and searching the target text and displaying a search result page of the target text.
In a second aspect, the present disclosure provides a text search apparatus, the apparatus comprising:
the device comprises a display module, a search module and a display module, wherein the display module is used for displaying a search box, and one or more searchable texts are displayed in the search box;
the receiving module is used for receiving the triggering operation of the user on the search box;
the determining module is used for determining a target text in the searchable text according to the triggering operation under the condition that the triggering operation is a preset triggering operation;
and the searching module is used for searching the target text and displaying a searching result page of the target text.
In a third aspect, the present disclosure provides a computer readable medium having stored thereon a computer program which, when executed by a processing apparatus, performs the steps of the method of the first aspect.
In a fourth aspect, the present disclosure provides an electronic device comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method of the first aspect.
By the technical scheme, when the user is interested in the searchable text displayed in the search box, the search result can be displayed to the user more quickly, and the interactive experience of the text search function is improved by improving the efficiency of searching the text displayed in the search box by the user.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale. In the drawings:
fig. 1a and 1b are schematic views of display interfaces for text search, respectively, according to the prior art.
Fig. 2 is a flowchart illustrating a text search method according to an exemplary embodiment of the present disclosure.
Fig. 3 is a schematic view of a display interface for displaying search results in a text search method according to yet another exemplary embodiment of the present disclosure.
Fig. 4 is a flowchart illustrating a text search method according to still another exemplary embodiment of the present disclosure.
Fig. 5 is a flowchart illustrating a text search method according to still another exemplary embodiment of the present disclosure.
Fig. 6 is a flowchart illustrating a text search method according to still another exemplary embodiment of the present disclosure.
Fig. 7 is a flowchart illustrating a text search method according to still another exemplary embodiment of the present disclosure.
Fig. 8 is a block diagram illustrating a structure of a text search apparatus according to an exemplary embodiment of the present disclosure.
Fig. 9 is a block diagram illustrating a structure of a text search apparatus according to still another exemplary embodiment of the present disclosure.
Fig. 10 is a block diagram illustrating a structure of a text search apparatus according to still another exemplary embodiment of the present disclosure.
FIG. 11 shows a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Fig. 2 is a flowchart illustrating a text search method according to an exemplary embodiment of the present disclosure. As shown in fig. 2, the method includes steps 201 to 204.
In step 201, a search box is displayed, wherein one or more searchable texts are displayed in the search box.
The search box can be displayed in a display interface of any form of intelligent terminal equipment, such as a display interface of a mobile terminal. The search box is used for a user to input keywords to search related information, the keywords input by the user through voice or characters can be displayed in the search box, and the search can be carried out in a database according to the keywords through a preset search button. The search box may be, for example, a news information search box in news information application software, or may be, for example, a short video information search box in short video application software. When a user opens, for example, news-related application software, the news-related application software may provide the search box in its display interface, and the user may enter a keyword through the search box to perform a news-related search.
In order to more intuitively push the hotspot information to the user, the search box may display the hotspot keywords which are searched for more times, that is, the searchable text, so as to prominently and intuitively push the current hotspot, as shown in the search box a in fig. 1 a. The manner of displaying the searchable text in the search box may be various, for example, two texts may be displayed in the search box as a group in a rolling manner in a fixed order as shown in fig. 1a, each text may be separately displayed in the search box in a rolling manner in a fixed order, or the text with the highest heat in the current time may be directly displayed in the search box, and so on. The manner in which the selectable text is displayed in the search box is not limited in this disclosure.
In step 202, a trigger operation of the search box by the user is received.
The trigger operation may be different according to different intelligent terminal devices, for example, in a case that the display screen of the intelligent terminal device is not a touch screen display screen, the trigger operation may be an operation input by a user operating an input device such as a mouse, a keyboard, and the like, for example, a left-click of a mouse, a left-click of a left key, and the like; in the case that the display screen of the intelligent terminal device is a touch screen display screen, the triggering operation may be a click operation, a double click operation, a long press operation, and the like, which are directly input through the touch screen by the user.
In the event that the trigger operation is received, the trigger operation may be identified.
In step 203, in a case that the trigger operation is a preset trigger operation, determining a target text in the searchable text according to the trigger operation.
In one possible embodiment, the preset trigger operation may be a long press operation or a double click operation.
And determining a target text in the searchable texts displayed in the search box under the condition that the trigger operation is the preset trigger operation. In the case where only one searchable text is displayed in the search box, the searchable text displayed in the search box may be determined as the target text; in the case where two searchable texts as shown in fig. 1a are displayed in the search box, one of them may be determined as the target text according to the trigger operation, for example, in the case where the trigger operation is a long press operation, the searchable text corresponding to the press point position of the long press operation may be determined as the target text.
In step 204, the target text is searched, and a search result page of the target text is displayed.
Under the condition that the target text is determined, the target text can be directly searched without inputting a keyword in the search box again by the user and triggering the search button to search, and without clicking the text displayed below the search box for the second time to search the text as shown in fig. 1 b.
The present disclosure is illustrated below by way of example.
If the search box is provided in the news information display interface of a certain news information application software of the mobile terminal with the touch screen function as shown in fig. 1a, and two searchable texts, namely a "searchable text 1" and a "searchable text 2", are currently displayed in the search box a, the preset trigger operation is preset to be a long-press operation, and the long-press duration is not less than 1 s. If the triggering operation of the user on the search box A is received at the moment, and the triggering operation meets the preset triggering operation after the triggering operation is identified, determining a target text in two searchable texts in the search box A according to the triggering operation; if the corresponding searchable text is determined to be "searchable text 1" according to the trigger operation, the searchable text 1 may be determined to be a target text, the target text is directly searched, and a search result page as shown in fig. 3 is displayed. The user can directly view the search result of the target text after inputting the trigger operation.
By the technical scheme, when the user is interested in the searchable text displayed in the search box, the search result can be displayed to the user more quickly, and the interactive experience of the text search function is improved by improving the efficiency of searching the text displayed in the search box by the user.
Fig. 4 is a flowchart illustrating a text search method according to still another exemplary embodiment of the present disclosure. As shown in fig. 4, the method further includes steps 401 to 403.
In step 401, it is determined whether the trigger operation is a preset trigger operation, if yes, the process goes to step 402, and if not, the process returns to step 202 to continue receiving the trigger operation.
In step 402, determining a pressed point position corresponding to the trigger operation;
in step 403, the target text is determined in the searchable text according to the location of the pressed point.
That is, in a case where it is determined that the trigger operation input by the user is the preset trigger operation, the target text may be determined by selecting one or more searchable texts displayed in the search box by a pressing point position corresponding to the trigger operation. For example, display position ranges respectively corresponding to one or more searchable texts currently displayed in the search box may be determined; and then determining the target text according to the position relationship between the pressing point position and the display position range corresponding to the searchable text, for example, when the pressing point position is within the display position range corresponding to the searchable text, determining the searchable text as the target text. Alternatively, the target text may be determined according to the position of the pressed point position in the search box, for example, in a case where two searchable texts are sequentially displayed in the horizontal direction in the search box, it may be arranged that when the pressed point position is in the left area of the search box, the searchable text on the left side in the horizontal direction is determined as the target text, and when the pressed point position is in the right area of the search box, the searchable text on the right side in the horizontal direction is determined as the target text, and so on.
In addition, the pressing point position and the display position range corresponding to the searchable text may also be determined in various manners, for example, the pressing point position may be determined by a horizontal and/or vertical shift of the pressing point, and the display range corresponding to each searchable text may also be determined by a horizontal shift range and/or a vertical shift range of each searchable text. The offset may be an offset value with respect to the search box or an offset value with respect to the display interface boundary, as long as the position of the pressed point and the corresponding searchable text are determined with respect to the same reference position when offset.
Fig. 5 is a flowchart illustrating a text search method according to still another exemplary embodiment of the present disclosure.
An example of how to determine the target text when the position of the pressed point is determined by the offset in the horizontal direction and the display position range corresponding to the searchable text is determined according to the offset range in the horizontal direction is shown, wherein the display position range includes the horizontal position range. As shown in fig. 5, the method further includes steps 501 to 403.
In step 501, the horizontal direction offset of the location of the keypress point in the search box is calculated.
In step 502, the target text is determined based on the horizontal direction display position range in which the horizontal direction offset is located.
When calculating the horizontal offset of the pressed point position in the search box, the coordinate (xt, yt) of the pressed point position and the start coordinate xs of the search box in the horizontal direction may be obtained first, and the horizontal offset of the pressed point in the search box may be xpress ═ xt-xs; the horizontal direction display position ranges corresponding to the searchable texts may be (bx1, ex1), (bx2, ex2), …, (bxN, exN), where bx1, bx2, bxN, etc. are the start coordinates of the horizontal direction display range of each searchable text, and ex1, ex2, exN, etc. are the end coordinates of the horizontal direction display range of each searchable text, and the horizontal direction display range where the horizontal direction offset xpress is located is determined, so that the target text corresponding to the trigger operation can be determined. For example, if the horizontal direction display position range corresponding to the searchable text closest to the horizontal boundary of the search box is (bx1, ex1), the bx1 may be not equal to xs, or may be equal to xs, and may be set according to the requirements of practical applications.
Specifically, the method for determining the pressing point position and the display position range corresponding to the searchable text may be set according to the manner in which the searchable text is displayed in the search box. For example, if the search box is a horizontal search box in which the searchable text displayed is also displayed in the horizontal direction, the target text or the like may be specified based on the offset of the pressed point position in the horizontal direction and the display position range of the searchable text corresponding to the horizontal direction. If the searchable text in the search box is displayed in the vertical direction in addition to the horizontal direction, the target text may be determined based on the horizontal and vertical offsets of the pressed point and the corresponding display position ranges of the searchable text in the horizontal and vertical directions.
In a possible implementation manner, when the display position ranges respectively corresponding to the one or more searchable texts currently displayed in the search box are determined, the display position ranges respectively corresponding to the one or more searchable texts currently displayed in the search box may be determined according to the font style and the font size of the one or more searchable texts currently displayed in the search box. That is, in the case where the fonts and the font sizes of the searchable texts displayed in the search box are different, the display position ranges corresponding to the respective searchable texts may be different. Thus, the target text can be determined more accurately according to the trigger operation.
The preset trigger operation may be, for example, a long press operation or a double click operation. When the preset trigger operation is a long press operation, the press point of the long press is the press point position corresponding to the trigger operation, and when the preset trigger operation is a double-click operation, the position of the first click or the position of the second click can be selected as the press point position corresponding to the trigger operation. According to different preset trigger operation settings, the mode of determining the position of the pressing point corresponding to the trigger operation can be correspondingly different.
Fig. 6 is a flowchart illustrating a text search method according to still another exemplary embodiment of the present disclosure. As shown in fig. 6, the method further includes step 601 and step 602. Wherein the preset trigger operation is a pressure trigger operation.
In step 601, a pressing force corresponding to the trigger operation is determined.
In step 602, the target text is determined in the searchable text according to the degree of pressing.
The method for determining whether the trigger operation is the pressure trigger operation may be to acquire a pressing force degree corresponding to the trigger operation, and determine that the trigger operation is the pressure trigger operation when the pressing force degree of the trigger operation is higher than a certain pressure threshold. Or, the pressing time length and the pressing force degree of the trigger operation may be determined at the same time, and when both the pressing time length and the pressing force degree of the trigger operation satisfy the preset condition, the trigger operation is determined to be the pressure trigger operation. The determination method of the pressure trigger operation is not limited in this disclosure, and condition setting may be performed according to actual conditions.
After the preset trigger operation is determined to be the pressure trigger operation, the target text can be determined in the searchable text according to the pressing force degree corresponding to the pressure trigger operation. For example, corresponding sorting serial numbers may be assigned to one or more searchable texts displayed in a search box, the number of pressure intervals to be divided is determined according to the number of the searchable texts for the pressing force degree that can be obtained by the pressure trigger operation, each pressure interval corresponds to the sorting serial number corresponding to each searchable text, and then the target text may be determined according to the pressure interval in which the pressing force degree corresponding to the trigger operation input by the user is located.
The following describes a scheme of determining a target text according to a pressing force degree by an example. Under the condition that two searchable texts are displayed in a search box, a serial number corresponding to one of the searchable texts is 1, a serial number corresponding to the other searchable text is 2, then the pressing force corresponding to the pressure trigger operation can be divided into two pressure intervals with continuous pressure values through a partition threshold, the first pressure interval corresponds to the searchable text with the serial number of 1, and the second pressure interval corresponds to the searchable text with the serial number of 2; when the pressing force degree corresponding to the trigger operation input by the user is in the first pressure interval, the searchable text with the sequence number of 1 may be determined as the target text, and when the pressing force degree corresponding to the trigger operation is in the second pressure interval, the searchable text with the sequence number of 2 may be determined as the target text.
The user can input the pressure trigger operation by pressing any position in the search box, and after the trigger operation is judged to be the pressure trigger operation, a corresponding searchable text displayed in the search box can be directly determined as the target text according to the corresponding pressing force degree. After the user inputs the pressure trigger operation, the user may continuously input the trigger operation, that is, the user may change the degree of pressing without loosing his hand after pressing the search box and reaching the threshold that can determine the trigger operation as the pressure trigger operation. Therefore, after determining the target text according to the pressing force corresponding to the trigger operation, before searching the target text, it is further necessary to determine whether the trigger operation has been input and ended, that is, whether the user has released his hand, and thus the input of the trigger operation is ended. And under the condition that the triggering operation is judged to be input and ended, determining the target text obtained by determining the finally obtained pressing force degree before the input is ended as the text which needs to be searched actually, and searching. In addition, under the condition that the triggering operation is not input and ended, the target text determined and obtained according to the pressing force degree of the triggering operation acquired in real time can be displayed in a highlighting mode such as highlight display, so that the user can clearly know the currently selected searchable text.
Fig. 7 is a flowchart illustrating a text search method according to still another exemplary embodiment of the present disclosure. As shown in fig. 7, the method further includes step 701.
In step 701, that is, in the case that the trigger operation is not a preset trigger operation, a text input interface is provided in the page where the search box is located.
The text input interface may be a voice input interface, a text input interface, or both. The voice input interface is used for obtaining the keywords required to be searched by the user through voice input of the user, and the character input interface is used for obtaining the keywords required to be searched by the user through character input of the user. The text input interface may be, for example, a virtual keyboard displayed on the display interface, and the voice input interface may be in the form of a button for starting voice input, and after the user clicks the button, the voice input of the user is received to determine the keyword to be searched.
By the technical method, the search efficiency of the searchable text displayed in the search box can be improved under the condition that the normal keyword input function of the search box is ensured, and the search experience of a user is guaranteed.
Fig. 8 is a block diagram illustrating a structure of a text search apparatus according to an exemplary embodiment of the present disclosure. As shown in fig. 8, the apparatus includes: a display module 10, configured to display a search box, where one or more searchable texts are displayed in the search box; a receiving module 20, configured to receive a trigger operation of the search box by a user; a determining module 30, configured to determine, according to the trigger operation, a target text in the searchable text when the trigger operation is a preset trigger operation; and the searching module 40 is used for searching the target text and displaying a searching result page of the target text through the display module.
By the technical scheme, when the user is interested in the searchable text displayed in the search box, the search result can be displayed to the user more quickly, and the interactive experience of the text search function is improved by improving the efficiency of searching the text displayed in the search box by the user.
Fig. 9 is a block diagram illustrating a structure of a text search apparatus according to still another exemplary embodiment of the present disclosure. As shown in fig. 9, the determining module 30 includes: the first determining submodule 301 is configured to determine a pressing point position corresponding to the trigger operation; a second determining sub-module 302, configured to determine the target text in the searchable text according to the location of the pressed point.
In a possible implementation, the second determining submodule 302 further includes: the text display position range determining submodule is used for determining display position ranges corresponding to one or more searchable texts currently displayed in the search box; and the target text determining submodule is used for determining the target text according to the position relation between the pressing point position and the display position range respectively corresponding to the searchable text.
In a possible embodiment, the pressing point position is determined by a shift of the pressing point in the horizontal direction and/or the vertical direction; the display ranges respectively corresponding to the searchable texts are determined by the horizontal offset range and/or the vertical offset range of each searchable text.
In one possible implementation, the one or more searchable texts are displayed horizontally in the search box, the display position range includes a horizontal direction position range, and the target text determination sub-module is further configured to: calculating the horizontal direction offset of the position of the pressing point in the search box; determining the target text based on the horizontal direction display position range in which the horizontal direction offset is located.
In one possible implementation, the text display position range determining sub-module is further configured to: and determining display position ranges respectively corresponding to the one or more searchable texts currently displayed in the search box according to the fonts and the font sizes of the one or more searchable texts currently displayed in the search box.
In one possible embodiment, the preset trigger operation is a long press operation or a double-click operation.
Fig. 10 is a block diagram illustrating a structure of a text search apparatus according to still another exemplary embodiment of the present disclosure. As shown in fig. 10, the determining module 30 includes: a third determining submodule 303, configured to determine a pressing force degree corresponding to the trigger operation; a fourth determining sub-module 304, configured to determine the target text in the searchable text according to the degree of pressing.
In a possible embodiment, the apparatus further comprises: and the processing module is used for providing a text input interface in the page where the search box is located under the condition that the triggering operation is not the preset triggering operation.
Referring now to FIG. 11, a block diagram of an electronic device 100 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 11 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 11, the electronic device 1100 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 1101 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)1102 or a program loaded from a storage means 1108 into a Random Access Memory (RAM) 1103. In the RAM 1103, various programs and data necessary for the operation of the electronic device 1100 are also stored. The processing device 1101, the ROM 1102, and the RAM 1103 are connected to each other by a bus 1104. An input/output (I/O) interface 1105 is also connected to bus 1104.
Generally, the following devices may be connected to the I/O interface 1105: input devices 1106 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 1107 including, for example, Liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices 1108, including, for example, magnetic tape, hard disk, etc.; and a communication device 1109. The communication means 1109 may allow the electronic device 1100 to communicate wirelessly or wiredly with other devices to exchange data. While fig. 11 illustrates an electronic device 1100 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication device 1109, or installed from the storage device 1108, or installed from the ROM 1102. The computer program, when executed by the processing device 1101, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: displaying a search box, wherein one or more searchable texts are displayed in the search box; receiving a trigger operation of a user on the search box; under the condition that the trigger operation is a preset trigger operation, determining a target text in the searchable text according to the trigger operation; and searching the target text and displaying a search result page of the target text. .
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. The name of a module does not in some cases constitute a limitation of the module itself, and for example, providing an acquisition module may also be described as "a module providing a search box".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Example 1 provides a text search method according to one or more embodiments of the present disclosure, the method including: displaying a search box, wherein one or more searchable texts are displayed in the search box; receiving a trigger operation of a user on the search box; under the condition that the trigger operation is a preset trigger operation, determining a target text in the searchable text according to the trigger operation; and searching the target text and displaying a search result page of the target text.
Example 2 provides the method of example 1, wherein determining a target text in the searchable text according to the triggering operation includes: determining a pressing point position corresponding to the triggering operation; and determining the target text in the searchable text according to the pressing point position.
Example 3 provides the method of example 2, the determining the target text in the searchable text according to the pressed point location including, in accordance with one or more embodiments of the present disclosure: determining display position ranges respectively corresponding to one or more searchable texts currently displayed in the search box; and determining the target text according to the position relation between the pressing point position and the display position range respectively corresponding to the searchable text.
Example 4 provides the method of example 3, the press point location determined by a shift of the press point in a horizontal direction and/or a vertical direction, in accordance with one or more embodiments of the present disclosure; the display ranges respectively corresponding to the searchable texts are determined by the horizontal offset range and/or the vertical offset range of each searchable text.
Example 5 provides the method of example 3, wherein the one or more searchable texts are displayed horizontally in the search box, the display position range includes a horizontal direction position range, and the determining the target text according to the position relationship between the pressed point position and the display position range to which the searchable texts respectively correspond includes: calculating the horizontal direction offset of the position of the pressing point in the search box; determining the target text based on the horizontal direction display position range in which the horizontal direction offset is located.
Example 6 provides the method of example 3, wherein determining respective display position ranges corresponding to the one or more searchable texts currently displayed in the search box comprises: and determining display position ranges respectively corresponding to the one or more searchable texts currently displayed in the search box according to the fonts and the font sizes of the one or more searchable texts currently displayed in the search box.
Example 7 provides the method of any of examples 1-6, the preset trigger operation being a long press operation or a double click operation, in accordance with one or more embodiments of the present disclosure.
Example 8 provides the method of example 1, wherein the preset trigger operation is a pressure trigger operation, and determining the target text in the searchable text according to the trigger operation includes: determining a pressing force degree corresponding to the trigger operation; and determining the target text in the searchable text according to the pressing force.
Example 9 provides the method of any of examples 1-6, further comprising, in accordance with one or more embodiments of the present disclosure: and under the condition that the triggering operation is not the preset triggering operation, providing a text input interface in the search page where the search box is located.
Example 10 provides, in accordance with one or more embodiments of the present disclosure, a text search apparatus, characterized in that the apparatus comprises: the device comprises a display module, a search module and a display module, wherein the display module is used for displaying a search box, and one or more searchable texts are displayed in the search box; the receiving module is used for receiving the triggering operation of the user on the search box; the determining module is used for determining a target text in the searchable text according to the triggering operation under the condition that the triggering operation is a preset triggering operation; and the searching module is used for searching the target text and displaying a searching result page of the target text through the display module.
Example 11 provides a computer-readable medium having stored thereon a computer program that, when executed by a processing apparatus, performs the steps of the method of any of examples 1-9, in accordance with one or more embodiments of the present disclosure.
Example 12 provides, in accordance with one or more embodiments of the present disclosure, an electronic device, comprising: a storage device having a computer program stored thereon; processing means for executing the computer program in the storage means to carry out the steps of the method of any of examples 1-9.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims (12)

1. A text search method, the method comprising:
displaying a search box, wherein one or more searchable texts are displayed in the search box;
receiving a trigger operation of a user on the search box;
under the condition that the trigger operation is a preset trigger operation, determining a target text in the searchable text according to the trigger operation;
and searching the target text and displaying a search result page of the target text.
2. The method of claim 1, wherein the determining a target text in the searchable text according to the trigger operation comprises:
determining a pressing point position corresponding to the triggering operation;
and determining the target text in the searchable text according to the pressing point position.
3. The method according to claim 2, wherein the determining the target text in the searchable text according to the location of the pressed point comprises:
determining display position ranges respectively corresponding to one or more searchable texts currently displayed in the search box;
and determining the target text according to the position relation between the pressing point position and the display position range respectively corresponding to the searchable text.
4. A method according to claim 3, characterized in that the pressing point position is determined by a shift of the pressing point in the horizontal direction and/or in the vertical direction; the display ranges respectively corresponding to the searchable texts are determined by the horizontal offset range and/or the vertical offset range of each searchable text.
5. The method of claim 3, wherein the one or more searchable texts are displayed horizontally in the search box, wherein the display position range includes a horizontal position range, and wherein determining the target text according to the position relationship between the pressed point position and the display position range to which the searchable texts respectively correspond comprises:
calculating the horizontal direction offset of the position of the pressing point in the search box;
determining the target text based on the horizontal direction display position range in which the horizontal direction offset is located.
6. The method of claim 3, wherein the determining a range of display positions respectively corresponding to the one or more searchable texts currently displayed in the search box comprises:
and determining display position ranges respectively corresponding to the one or more searchable texts currently displayed in the search box according to the fonts and the font sizes of the one or more searchable texts currently displayed in the search box.
7. The method according to any of claims 1-6, wherein the preset trigger operation is a long press operation or a double click operation.
8. The method according to claim 1, wherein the preset trigger operation is a pressure trigger operation, and the determining a target text in the searchable text according to the trigger operation comprises:
determining a pressing force degree corresponding to the trigger operation;
and determining the target text in the searchable text according to the pressing force.
9. The method according to any one of claims 1-6, further comprising:
and under the condition that the triggering operation is not the preset triggering operation, providing a text input interface in the search page where the search box is located.
10. A text search apparatus, characterized in that the apparatus comprises:
the device comprises a display module, a search module and a display module, wherein the display module is used for displaying a search box, and one or more searchable texts are displayed in the search box;
the receiving module is used for receiving the triggering operation of the user on the search box;
the determining module is used for determining a target text in the searchable text according to the triggering operation under the condition that the triggering operation is a preset triggering operation;
and the searching module is used for searching the target text and displaying a searching result page of the target text through the display module.
11. A computer-readable medium, on which a computer program is stored, characterized in that the program, when being executed by processing means, carries out the steps of the method of any one of claims 1-9.
12. An electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method according to any one of claims 1 to 9.
CN202110536580.6A 2021-05-17 2021-05-17 Text search method and device, readable medium and electronic equipment Pending CN113127718A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110536580.6A CN113127718A (en) 2021-05-17 2021-05-17 Text search method and device, readable medium and electronic equipment
PCT/CN2022/082421 WO2022242302A1 (en) 2021-05-17 2022-03-23 Text search method and apparatus, readable medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110536580.6A CN113127718A (en) 2021-05-17 2021-05-17 Text search method and device, readable medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113127718A true CN113127718A (en) 2021-07-16

Family

ID=76782085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110536580.6A Pending CN113127718A (en) 2021-05-17 2021-05-17 Text search method and device, readable medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN113127718A (en)
WO (1) WO2022242302A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022242302A1 (en) * 2021-05-17 2022-11-24 北京字节跳动网络技术有限公司 Text search method and apparatus, readable medium, and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069013A (en) * 2015-07-10 2015-11-18 百度在线网络技术(北京)有限公司 Control method and device for providing input interface in search interface
CN105824552A (en) * 2015-07-29 2016-08-03 维沃移动通信有限公司 Text information recognition method and device
CN106445947A (en) * 2015-08-06 2017-02-22 阿里巴巴集团控股有限公司 Data searching method and system
CN106775378A (en) * 2016-11-25 2017-05-31 维沃移动通信有限公司 A kind of method and mobile terminal for determining input method candidate word
CN107179835A (en) * 2016-03-11 2017-09-19 北京搜狗科技发展有限公司 A kind of input method and device, a kind of device for being used to input
CN109033296A (en) * 2018-07-13 2018-12-18 网易传媒科技(北京)有限公司 For the method for search, system, medium and electronic equipment
CN109271574A (en) * 2018-08-28 2019-01-25 麒麟合盛网络技术股份有限公司 A kind of hot word recommended method and device
CN111400625A (en) * 2020-03-25 2020-07-10 北京字节跳动网络技术有限公司 Page processing method and device, electronic equipment and computer readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016101768A1 (en) * 2014-12-26 2016-06-30 北京奇虎科技有限公司 Terminal and touch operation-based search method and device
CN104850614B (en) * 2015-05-14 2018-07-27 百度在线网络技术(北京)有限公司 Recommendation query word shows method and apparatus
CN109933275A (en) * 2019-02-12 2019-06-25 努比亚技术有限公司 A kind of knowledge screen method, terminal and computer readable storage medium
CN112579854A (en) * 2019-09-30 2021-03-30 北京京东尚科信息技术有限公司 Information processing method, device, equipment and storage medium
CN113127718A (en) * 2021-05-17 2021-07-16 北京字节跳动网络技术有限公司 Text search method and device, readable medium and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069013A (en) * 2015-07-10 2015-11-18 百度在线网络技术(北京)有限公司 Control method and device for providing input interface in search interface
CN105824552A (en) * 2015-07-29 2016-08-03 维沃移动通信有限公司 Text information recognition method and device
CN106445947A (en) * 2015-08-06 2017-02-22 阿里巴巴集团控股有限公司 Data searching method and system
CN107179835A (en) * 2016-03-11 2017-09-19 北京搜狗科技发展有限公司 A kind of input method and device, a kind of device for being used to input
CN106775378A (en) * 2016-11-25 2017-05-31 维沃移动通信有限公司 A kind of method and mobile terminal for determining input method candidate word
CN109033296A (en) * 2018-07-13 2018-12-18 网易传媒科技(北京)有限公司 For the method for search, system, medium and electronic equipment
CN109271574A (en) * 2018-08-28 2019-01-25 麒麟合盛网络技术股份有限公司 A kind of hot word recommended method and device
CN111400625A (en) * 2020-03-25 2020-07-10 北京字节跳动网络技术有限公司 Page processing method and device, electronic equipment and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022242302A1 (en) * 2021-05-17 2022-11-24 北京字节跳动网络技术有限公司 Text search method and apparatus, readable medium, and electronic device

Also Published As

Publication number Publication date
WO2022242302A1 (en) 2022-11-24

Similar Documents

Publication Publication Date Title
CN111414498B (en) Multimedia information recommendation method and device and electronic equipment
CN111510760B (en) Video information display method and device, storage medium and electronic equipment
CN111368185B (en) Data display method and device, storage medium and electronic equipment
CN111580718A (en) Page switching method and device of application program, electronic equipment and storage medium
US20230024650A1 (en) Method and apparatus for selecting menu items, readable medium and electronic device
CN108646972B (en) Method and equipment for displaying information and searching information
CN111400625B (en) Page processing method and device, electronic equipment and computer readable storage medium
CN112287206A (en) Information processing method and device and electronic equipment
CN112015314A (en) Information display method and device, electronic equipment and medium
CN111597467A (en) Display method and device and electronic equipment
EP4231143A1 (en) Information display method and apparatus, electronic device, and computer readable storage medium
CN111246304A (en) Video processing method and device, electronic equipment and computer readable storage medium
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN111461967B (en) Picture processing method, device, equipment and computer readable medium
CN111309240B (en) Content display method and device and electronic equipment
CN110806834A (en) Information processing method and device based on input method, electronic equipment and medium
CN111723309A (en) Method and device for searching web page
CN113239673A (en) Chart switching method and device, storage medium and electronic equipment
CN113127718A (en) Text search method and device, readable medium and electronic equipment
CN111708911A (en) Search method, search device, electronic equipment and computer-readable storage medium
CN111782895B (en) Retrieval processing method and device, readable medium and electronic equipment
CN114417782A (en) Display method and device and electronic equipment
CN113779461A (en) Data loading method and device and electronic equipment
CN113836415A (en) Information recommendation method, device, medium and equipment
CN114520928A (en) Display information generation method, information 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