CN111767451A - Searching method, electronic equipment and computer readable storage medium - Google Patents

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

Info

Publication number
CN111767451A
CN111767451A CN202010041758.5A CN202010041758A CN111767451A CN 111767451 A CN111767451 A CN 111767451A CN 202010041758 A CN202010041758 A CN 202010041758A CN 111767451 A CN111767451 A CN 111767451A
Authority
CN
China
Prior art keywords
search
data
searching
terms
splitting
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.)
Granted
Application number
CN202010041758.5A
Other languages
Chinese (zh)
Other versions
CN111767451B (en
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 Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Wodong Tianjun Information 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 Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Wodong Tianjun Information Technology Co Ltd
Priority to CN202010041758.5A priority Critical patent/CN111767451B/en
Publication of CN111767451A publication Critical patent/CN111767451A/en
Application granted granted Critical
Publication of CN111767451B publication Critical patent/CN111767451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F16/9532Query formulation
    • 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
    • G06F16/9538Presentation of query results

Abstract

The invention provides a searching method, electronic equipment and a computer readable storage medium. In the method, search data input by a user in a search box is received, and when the search data contains separators, the search data is divided into a plurality of search terms, so that the search terms are searched in a data set respectively, and a search result is output. The technical scheme provided by the invention can improve the convenience degree of the searching process and improve the searching success rate.

Description

Searching method, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a search method, an electronic device, and a computer-readable storage medium.
Background
With the development of computer technology, each User Interface (UI) component library supports cascade selection controls, such as the Ant Design, IView, and other UI component libraries. When data searching is required to be carried out from the data set and the data set to be searched has a clear hierarchical structure, the function of searching stage by stage can be realized through the cascade selection control.
At present, a cascade selection control can only support a single-stage fuzzy search function, when multi-stage contents need to be searched, searching needs to be carried out according to a specified format strictly, and if the multi-stage contents do not conform to the specified format, matching is difficult to succeed, and searching fails. The searching mode is difficult to meet the searching requirement of actual service, and is inconvenient for users to use.
Disclosure of Invention
The invention provides a searching method, electronic equipment and a computer readable storage medium, which are used for improving the convenience degree of a searching process and improving the success rate of searching.
In a first aspect, the present invention provides a search method, including:
receiving search data input by a user in a search box;
splitting the search data into a plurality of search terms when the search data contains separators;
searching the plurality of search terms in the data set respectively;
and outputting the search result.
In a second aspect, the present invention provides an electronic device comprising:
the receiving module is used for receiving search data input by a user in the search box;
the splitting module is used for splitting the search data into a plurality of search words when the search data contains separators;
the searching module is used for respectively searching the plurality of search terms in the data set;
and the output module is used for outputting the search result.
In a third aspect, the present invention provides an electronic device comprising: comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the search method according to the first aspect when executing the program.
In a fourth aspect, the invention provides a computer readable storage medium having stored thereon a computer program for execution by a processor to perform the method according to the first aspect.
The invention provides a searching method, electronic equipment and a computer-readable storage medium, wherein after search data input by a user is received, if the search data contains separators, the search data is divided into a plurality of search words, the search words are searched respectively, and results are output. In the embodiment of the application, the search data is split, the search data input by the user has no special format requirement, the search requirements under different service scenes can be met, the use by the user is facilitated, the convenience degree of the search process is improved, and the success rate of the search process is also improved to a certain extent.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIGS. 1A-1C are schematic diagrams of search results according to the prior art;
fig. 2 is a schematic flowchart of a searching method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an original data set of a logistics warehouse according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an intermediate transformed data set of a logistics warehouse according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a search result according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating another search result according to an embodiment of the present invention;
fig. 7 is a functional block diagram of an electronic device according to an embodiment of the present invention;
fig. 8 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The technical scheme provided by the embodiment of the invention can be applied to any electronic equipment, and the electronic equipment can be terminal equipment or a server.
The terminal device may be a wireless terminal or a wired terminal. A wireless terminal may refer to a device that provides voice and/or other traffic data connectivity to a user, a handheld device having wireless connection capability, or other processing device connected to a wireless modem. A wireless terminal, which may be a mobile terminal such as a mobile telephone (or "cellular" telephone) and a computer having a mobile terminal, for example, a portable, pocket, hand-held, computer-included, or vehicle-mounted mobile device, may communicate with one or more core Network devices via a Radio Access Network (RAN), and may exchange language and/or data with the RAN. For another example, the Wireless terminal may also be a Personal Communication Service (PCS) phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), and other devices. A wireless Terminal may also be referred to as a system, a Subscriber Unit (Subscriber Unit), a Subscriber Station (Subscriber Station), a Mobile Station (Mobile), a Remote Station (Remote Station), a Remote Terminal (Remote Terminal), an Access Terminal (Access Terminal), a User Terminal (User Terminal), a User agent (User agent), and a User Device or User Equipment, which are not limited herein. Optionally, the terminal device may also be a smart watch, a tablet computer, or the like.
The searching method provided by the embodiment of the invention can be suitable for any searching scene. Especially for search scenarios where a hierarchical relationship exists for the data.
For example, a scene of sight search in the prior art is taken as an example. Search systems (or databases, or systems to which search systems pertain) typically store data in a regional hierarchical relationship of province-city-attraction.
In this scenario, the search system may implement a single level search function. Taking a search scene of 'Beijing-scenic spot' as an example, the search system can output all scenic spots of the Beijing according to search data 'Beijing' input by a user; alternatively, the search system may output the "Imperial palace" as the specific attraction based on the "Imperial palace" input by the user.
In addition, the search system can also realize fuzzy search in single-stage search. For example, based on search data of "palace" input by the user, scenic spots with names of "palace" such as the old palace, the yong and the palace are output.
However, search systems typically implement cascading selection controls when implementing a multi-level search. And the cascade selection control requires searching according to a preset specified format. For example, the designated format may be "primary/secondary character", where "/" is a separator between different levels, and where there is a space between the primary character and the separator and a space between the secondary character and the separator in the designated format. For convenience of description, the space is used as an invalid character in the search data, and characters actually participating in data search filtering, such as "primary characters" and "secondary characters", are used as valid characters.
Based on this design, fig. 1 shows a schematic diagram of several possible search results in the prior art, as an example:
in one embodiment, please refer to the scenario shown in fig. 1A. The search data input by the user in the input box is ' Beijing/Imperial palace ', wherein a space exists between the effective character ' Beijing ' and the separator '/', and a space exists between the Imperial palace ' and the separator '/', so that the requirement of the search system on the designated format of multi-level search is met, the search system searches in the database, and the search result ' Beijing/Imperial palace ' can be obtained.
In another embodiment, please refer to the scenario shown in FIG. 1B. The search data input by the user in the input box is "beijing/Imperial palace", "beijing" is adjacent to the separator "/", no space exists, and "Imperial palace" is adjacent to the separator "/", no space exists, and does not conform to the specified format, so that the search system cannot search for valid data, and the search result output to the user is shown in fig. 1B, and "no matching data" is displayed.
In another embodiment, please refer to the scenario shown in FIG. 1C. The search data input by the user in the input box is "beijing/palace", "beijing" is adjacent to the separator "/", no space exists, and "the palace" is adjacent to the separator "/", and no space exists, so that the search system does not conform to a specified format, fuzzy search cannot be realized, effective data cannot be searched by the search system, and a search result output to the user is shown in fig. 1C, and "no matching data" is displayed.
In summary, in the existing search scenario, when performing multi-level search, effective search cannot be performed on search data that does not satisfy a specified format, and multi-level fuzzy search cannot be implemented, so that the multi-level search function is weak, and it is difficult to satisfy the multi-level search requirement in actual services.
The technical scheme provided by the invention aims to solve the technical problems in the prior art.
The following describes the technical solutions of the present invention and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Example one
The embodiment of the invention provides a searching method. Referring to fig. 2, a search method provided in an embodiment of the present invention may include the following steps:
s202, receiving search data input by a user in a search box.
The embodiment of the invention has no special limitation on the search data input by the user, the user can input any search data in a user-defined mode in the input box, the search data can contain one or more effective characters, and the types of the effective characters can be any one or more of numbers, letters, single characters and words. For example, the received search data input by the user may be "the home palace" or "the palace". For another example, the received search data input by the user may be the address number "806", or may be a partial address number "8".
The searching method provided by the embodiment of the invention is suitable for single-level searching and is also suitable for multi-level searching. When a user needs to perform multi-level search, a separator needs to be added in search data, so that a search system can split effective characters based on the separator. For example, the search data received by the search system may be "Beijing/Gong," where there is an invalid character (space) between the valid character "Gong" and the separator "/".
The embodiment of the present invention is not particularly limited to the relationship between a plurality of valid characters in the search data. Any two valid characters can be in the same type or in different types. As another example, the search data received by the search system may also be "806/Down mountain," where the valid character "806" is the address number and the valid character "Down mountain" is the address name. For another example, the search data received by the search system may also be "806/5", where the valid character "806" is the complete address number and the valid character "5" is a partial number in the address number.
S204, when the search data contains the separators, the search data is divided into a plurality of search words.
As before, when there is a separator, then the valid characters on both sides of the separator are split. Specifically, the effective characters in the search data are split by using the separators as splitting points to obtain a plurality of search words.
For example, if the search data is "beijing/palace", where there is an invalid character (space) between the valid character "palace" and the separator "/", the search data may be split into two search terms: "Beijing" and "palace".
For another example, if the search data is "806/down hill", the search data is split into two search terms with the separator "/" as a split point: "806" and "Tangshan".
For another example, if the search data is "806/5", the search data is divided into two search terms with a separator "/" as a division point: "806" and "5".
S206, searching a plurality of search terms in the data set respectively.
In performing this step, each search term is searched separately. The search method is described in detail later.
And S208, outputting the search result.
In summary, in the embodiment shown in fig. 2, after receiving the search data input by the user, if the search data includes a separator, the search data is divided into a plurality of search terms, the search terms are searched respectively, and a result is output. In the embodiment of the application, the search data is split, the search data input by the user has no special format requirement, the search requirements under different service scenes can be met, the use by the user is facilitated, the convenience degree of the search process is improved, and the success rate of the search process is also improved to a certain extent.
Hereinafter, the search method provided by the embodiment of the present invention is further described on the basis of the method shown in fig. 2.
The searching method provided by the embodiment of the invention is realized by respectively searching a plurality of search terms after the plurality of search terms are obtained by splitting by taking the separators as splitting points, and is irrelevant to whether invalid characters exist in the search data. Therefore, in the embodiment of the present invention, whether or not there is an invalid character between the delimiter and the valid character is not particularly limited.
In other words, in the search data, the delimiter is adjacent to the effective character. For example, the search data may be "806/Down mountain"; also for example, the search data may be "Beijing/Gong".
Alternatively, invalid characters may also be present between at least one side of the separator and the valid characters in the search data. For example, the search data may be "806/Down mountain," where a space exists between the valid character "806" and the separator "/"; as another example, the search data may be "806/Down mountain," where a space exists between the valid character "Down mountain" and the separator "/"; as another example, the search data may be "806/down hill," where a space exists between the valid character "806" and the separator "/", and a space also exists between the valid character "down hill" and the separator "/".
In addition, it is understood that in the foregoing examples, a space is an invalid character, and a separator is "/" is merely an exemplary embodiment, and in an actual search scenario, the embodiment of the present invention is not particularly limited to the representation manner of the separator and the invalid character. For example, the separator may be a short horizontal line "-", and for example, the separator may also be a diagonal line "\\", and for example, the separator may also be a wavy line "-", and so on. In an actual application scenario, the preset can be customized in the search system. Further, the invalid characters may include, but are not limited to, spaces, for example, when the separator is "/", the invalid characters may include a short horizontal line "-", a diagonal line "\\", a wavy line "-", and the like, in addition to the spaces.
It should be noted that, the embodiment of the present invention has no particular limitation on the number of separators included in the search data input by the user. N delimiters may be included in the search data, and thus, the search data may be split into N +1 search terms, where N is an integer greater than 1. For example, a separator may be included in the search data, whereby the search data may be split into two search terms. For another example, the search data may include 3 delimiters, and thus, the search data may be divided into 4 search terms.
In the embodiment of the present invention, data sets in the search system may also be stored according to a hierarchical relationship. Further, the data set may be stored in the format of the aforementioned search data. For example, the data set is stored in the format of "character 1/character 2".
For example, referring to fig. 3, fig. 3 is a schematic diagram of a raw data set of a logistics warehouse according to an embodiment of the present invention. As shown in fig. 3, the data sets may be stored in a hierarchical relationship of the logistics bins and in a format indicating the hierarchical relationship. As shown in fig. 3, each piece of data is stored in the format of "upper level physical distribution warehouse (physical distribution warehouse number)/lower level physical distribution warehouse (physical distribution warehouse number)". The storage format can clearly show the hierarchical relationship of the data.
In the specific search process, the original data in fig. 3 may be converted into a one-dimensional array partitioned by separators instead of an array of hierarchical relationships by a recursive method, so as to form the storage format shown in fig. 4. The storage mode shown in fig. 4 is beneficial to improving the efficiency of the searching step and is also convenient for clearly displaying the final searching result.
Based on the conversion of the storage format of the data set, it is also beneficial to make the search result output by the search system have the same format as the search data, for example, as shown in the search results shown in fig. 5 and 6.
In the embodiment of the invention, when searching for the search terms, the search terms can be sequentially and circularly searched in the data set according to the hierarchical relationship indicated by the separators.
For example. If the search system receives the search data "8/6" input by the user, the search system may split the search data into two search terms "8" and "6" based on the separator. Therefore, the search system can search for the '8' in the data set and then search for the '6' in the data set according to the sequence of the hierarchical relationship from high to low to obtain the search result.
When searching is performed on each search term separately, the search can be performed over the full range of the search set. Illustratively, FIG. 5 shows a schematic diagram of search results output by a search system. As shown in fig. 5, in the search result, the third piece of data is "australian melbourne delivery center (804)/australian melbourne overseas TC warehouse No. 1 library (828)", that is, the search result of the search word "8" is also output in the secondary search relationship.
In such embodiments, all or a portion of the plurality of search terms may be included in the search results. For example, if the search data is "8/6", and a search result including the search word "8" is searched for, but a search result related to the search word "6" is not searched for, only a search result related to the search word "8" may be output among the search results.
In other words, among the plurality of search terms, as long as a search result of at least one search term can be searched, the search result may be output. And in this embodiment, if a relevant search result cannot be searched for any search word, and the search result is null, then a prompt message of "no matching data" may be output. In other words, when no search term is searched for in the data set, the search result is empty.
The mode of searching in the full range is more favorable for obtaining wider search results, and as long as data related to search terms exist in the data, the hierarchical relation is not required to be considered, namely the data are output as search results, and the search granularity is thicker.
In another embodiment, when searching for each search term separately, the search may also be performed according to the corresponding hierarchical relationship. At this time, when at least two search terms are included in the search result, the two search terms satisfy the hierarchical relationship indicated by the delimiter. In other words, when the search system receives that the search data input by the user is "8/6", the search system searches the data set for data in which the upper data includes the search word "8" and the lower data includes "6" and outputs the data as the search result. For example, reference may be made to another search result diagram shown in fig. 6. As shown in fig. 6, in each search result output, the hierarchical relationship indicated by the search data is satisfied between the effective characters.
In this embodiment, if data satisfying the hierarchical relationship of the search data can be searched, the output search result is not empty. If only search results of a part of search terms are searched, or if search results of a plurality of search terms are searched but the hierarchical relationship is not satisfied, the search fails, and prompt information of "no matching data" can be output. For example, if the search data is "8/6", and a search result including the search word "8" is searched for, but a search result related to the search word "6" is not searched for, a prompt message of "no matching data" may be output. For another example, if the search data is "8/6" and the search result including the search word "8" and the search word "6" is "606/808", the hierarchical relationship indicated by "8/6" is not satisfied, and the presentation information of "no matching data" may be output.
In the embodiment, the search result closer to the actual service requirement of the user can be obtained, and the search granularity is finer.
The two previous embodiments have different retrieval granularities, and in an actual service scene, the search system can realize the search with different thickness and strength according to the actual service requirement.
In the embodiment of the invention, after the search result is obtained, the search words in the search result can be highlighted when the search result is output, which is convenient for the user to view.
In an exemplary embodiment, when the search system outputs the search result, the search terms carried in the search result may be wrapped in a red style, so as to output the processed search result. That is, the search term may be highlighted in a red font.
It is to be understood that some or all of the steps or operations in the above-described embodiments are merely examples, and other operations or variations of various operations may be performed by the embodiments of the present application. Further, the various steps may be performed in a different order presented in the above-described embodiments, and it is possible that not all of the operations in the above-described embodiments are performed.
The words used in this application are words of description only and not of limitation of the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Example two
Based on the search method provided in the first embodiment, the embodiment of the present invention further provides an embodiment of an apparatus for implementing each step and method in the above method embodiment.
An embodiment of the present invention provides an electronic device, please refer to fig. 7, where the electronic device 700 includes:
a receiving module 72, configured to receive search data input by a user in a search box;
a splitting module 74, configured to split the search data into a plurality of search terms when the search data includes separators;
a searching module 76, configured to search a plurality of search terms in the data set respectively;
and an output module 78 for outputting the search result.
In one embodiment of the invention, in the search data, the delimiter is adjacent to the valid character; alternatively, in the search data, an invalid character exists between at least one side of the separator and the valid character.
In another embodiment of the present invention, the splitting module 74 is specifically configured to: and splitting the effective characters in the search data by taking the separators as splitting points to obtain a plurality of search terms.
In another embodiment of the present invention, the searching module 76 is specifically configured to: and searching each search word in the data set in turn in a circulating manner according to the hierarchical relation indicated by the separators.
In another embodiment of the present invention, the search result includes all or part of the plurality of search terms.
In another embodiment of the present invention, when at least two search terms are included in the search result, the two search terms satisfy the hierarchical relationship indicated by the delimiter.
In another embodiment of the invention, the search terms in the search results are highlighted.
In another embodiment of the present invention, the output module 78 is specifically configured to: wrapping search words carried in the search results in a red style; and outputting the processed searched result.
In another embodiment of the invention, the search results are in the same format as the search data.
In another embodiment of the invention, the search result is null when no search term is searched for in the data set.
The electronic device 700 of the embodiment shown in fig. 7 may be used to implement the technical solutions of the above method embodiments, and further reference may be made to the relevant descriptions in the method embodiments for implementation principles and technical effects, and optionally, the electronic device 700 may be a server or a terminal.
It should be understood that the above division of the modules of the electronic device 700 shown in fig. 7 is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling by the processing element in software, and part of the modules can be realized in the form of hardware. For example, the processing module 74 may be a separate processing element, or may be integrated into the electronic device 700, for example, implemented in a chip of the terminal, or may be stored in a memory of the electronic device 700 in the form of a program, and called by a processing element of the electronic device 700 to execute the functions of the above modules. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element here may be an integrated circuit with signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when some of the above modules are implemented in the form of a processing element scheduler, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling programs. As another example, these modules may be integrated together, implemented in the form of a system-on-a-chip (SOC).
Also, an embodiment of the present invention provides an electronic device, please refer to fig. 8, where the electronic device 700 includes: comprising a memory 710, a processor 720 and a computer program stored on the memory 710 and executable on the processor 720, the method according to the above embodiment may be implemented when the processor 720 executes the program.
The number of the processors 720 in the electronic device 700 may be one or more, and the processors 720 may also be referred to as processing units, which may implement certain control functions. Processor 720 may be a general purpose processor, or a special purpose processor, etc. In an alternative design, processor 720 may also store instructions that are executable by processor 720 to cause electronic device 700 to perform the methods described in the above-described method embodiments.
In yet another possible design, the electronic device 700 may include circuitry that may implement the functionality of transmitting or receiving or communicating in the foregoing method embodiments.
Optionally, the number of the memories 710 in the electronic device 700 may be one or more, and the memory 710 stores instructions or intermediate data, and the instructions may be executed on the processor 720, so that the electronic device 700 performs the method described in the above method embodiment. Optionally, other related data may also be stored in the memory 710. Optionally, processor 720 may also store instructions and/or data therein. The processor 720 and the memory 710 may be provided separately or may be integrated together.
In addition, as shown in fig. 8, a transceiver 730 is further disposed in the electronic device 700, where the transceiver 730 may be referred to as a transceiver unit, a transceiver circuit, a transceiver, or the like, and is used for data transmission or communication with a test device or other terminal devices, and details are not repeated here.
As shown in fig. 8, the memory 710, the processor 720 and the transceiver 730 are connected by a bus and communicate.
Furthermore, an embodiment of the present invention provides a readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method according to the first embodiment.
Since each module in this embodiment can execute the method shown in the first embodiment, reference may be made to the related description of the first embodiment for a part of this embodiment that is not described in detail.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. A method of searching, comprising:
receiving search data input by a user in a search box;
splitting the search data into a plurality of search terms when the search data contains separators;
searching the plurality of search terms in the data set respectively;
and outputting the search result.
2. The method of claim 1,
in the search data, the delimiter is adjacent to a valid character; alternatively, the first and second electrodes may be,
in the search data, an invalid character exists between at least one side of the delimiter and the valid character.
3. The method of claim 1, wherein the splitting the search data into a plurality of search terms comprises:
and splitting the effective characters in the search data by taking the separators as splitting points to obtain a plurality of search words.
4. The method according to any one of claims 1-3, wherein the searching the plurality of search terms in the data set separately comprises:
and sequentially and circularly searching each search word in the data set according to the hierarchical relation indicated by the separators.
5. The method of any of claims 1-3, wherein all or a portion of the plurality of search terms are included in the search results.
6. The method according to any one of claims 1 to 3, wherein when at least two of the search terms are included in the search result, the two search terms satisfy the hierarchical relationship indicated by the delimiter.
7. The method of any of claims 1-3, wherein the search terms in the search results are highlighted.
8. The method of claim 7, wherein outputting the search result comprises:
wrapping the search terms carried in the search results in a red style;
and outputting the processed search result.
9. The method of claim 1, wherein the search result is in the same format as the search data.
10. The method of claim 1, wherein the search result is empty when no search term is searched for in the data set.
11. An electronic device, comprising:
the receiving module is used for receiving search data input by a user in the search box;
the splitting module is used for splitting the search data into a plurality of search words when the search data contains separators;
the searching module is used for respectively searching the plurality of search terms in the data set;
and the output module is used for outputting the search result.
12. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the search method according to any one of claims 1 to 10 when executing the program.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the search method according to any one of claims 1 to 10.
CN202010041758.5A 2020-01-15 2020-01-15 Searching method, electronic device and computer readable storage medium Active CN111767451B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010041758.5A CN111767451B (en) 2020-01-15 2020-01-15 Searching method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010041758.5A CN111767451B (en) 2020-01-15 2020-01-15 Searching method, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111767451A true CN111767451A (en) 2020-10-13
CN111767451B CN111767451B (en) 2024-04-16

Family

ID=72718648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010041758.5A Active CN111767451B (en) 2020-01-15 2020-01-15 Searching method, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111767451B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114296606A (en) * 2021-12-27 2022-04-08 武汉悦学帮网络技术有限公司 Text search method and device, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070052027A (en) * 2005-11-16 2007-05-21 김태원 Apparatus and method for keyword searching according to priority of inputted word and computer readable medium having stored thereon computer executable instruction for performing the method
KR20070057557A (en) * 2005-12-02 2007-06-07 이욱재 Apparatus and method for keyword searching according to attribute of inputted word and computer readable medium having stored thereon computer executable instruction for performing the method
US20080052275A1 (en) * 2006-08-28 2008-02-28 Darshan Vishwanath Kantak Structured match in a directory sponsored search system
CN101673299A (en) * 2009-09-29 2010-03-17 金蝶软件(中国)有限公司 ERP system and data search method and device thereof
KR20100132829A (en) * 2009-06-10 2010-12-20 (주)엠앤소프트 A character row searching apparatus and method
US20120233153A1 (en) * 2011-03-11 2012-09-13 International Business Machines Corporation Hierarchical browsing operations on a directory attribute
CN103218364A (en) * 2012-01-19 2013-07-24 阿里巴巴集团控股有限公司 Searching method and system
CN105956047A (en) * 2016-04-26 2016-09-21 北京橙鑫数据科技有限公司 Search method and device
KR20170016657A (en) * 2015-08-04 2017-02-14 서울시립대학교 산학협력단 An apparatus for managing document using table of contents, a method thereof, and a computer recordable medium storing the method
CN107748773A (en) * 2017-10-12 2018-03-02 深圳盈诺德信息技术有限公司 Data search method, device and storage medium based on Enterprise Resources Plan
KR101892067B1 (en) * 2017-03-28 2018-08-27 주식회사 리얼타임테크 Method for storing and searching of text logdata based relational database
CN108681603A (en) * 2018-05-22 2018-10-19 福建天泉教育科技有限公司 The method of fast search tree structure data, storage medium in database

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070052027A (en) * 2005-11-16 2007-05-21 김태원 Apparatus and method for keyword searching according to priority of inputted word and computer readable medium having stored thereon computer executable instruction for performing the method
KR20070057557A (en) * 2005-12-02 2007-06-07 이욱재 Apparatus and method for keyword searching according to attribute of inputted word and computer readable medium having stored thereon computer executable instruction for performing the method
US20080052275A1 (en) * 2006-08-28 2008-02-28 Darshan Vishwanath Kantak Structured match in a directory sponsored search system
KR20100132829A (en) * 2009-06-10 2010-12-20 (주)엠앤소프트 A character row searching apparatus and method
CN101673299A (en) * 2009-09-29 2010-03-17 金蝶软件(中国)有限公司 ERP system and data search method and device thereof
US20120233153A1 (en) * 2011-03-11 2012-09-13 International Business Machines Corporation Hierarchical browsing operations on a directory attribute
CN103218364A (en) * 2012-01-19 2013-07-24 阿里巴巴集团控股有限公司 Searching method and system
KR20170016657A (en) * 2015-08-04 2017-02-14 서울시립대학교 산학협력단 An apparatus for managing document using table of contents, a method thereof, and a computer recordable medium storing the method
CN105956047A (en) * 2016-04-26 2016-09-21 北京橙鑫数据科技有限公司 Search method and device
KR101892067B1 (en) * 2017-03-28 2018-08-27 주식회사 리얼타임테크 Method for storing and searching of text logdata based relational database
CN107748773A (en) * 2017-10-12 2018-03-02 深圳盈诺德信息技术有限公司 Data search method, device and storage medium based on Enterprise Resources Plan
CN108681603A (en) * 2018-05-22 2018-10-19 福建天泉教育科技有限公司 The method of fast search tree structure data, storage medium in database

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘劲松;张彬;柴文磊;魏建行;刘振鹏;: "校园网园区搜索引擎的设计与实现", 河北大学学报(自然科学版), no. 04, pages 108 - 113 *
徐然;: "简单的搜索框"不简单"", 计算机与网络, no. 12, pages 48 - 49 *
温云辉;: "多关键词查找相关产品的一种实现", 黎明职业大学学报, no. 04, pages 28 - 32 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114296606A (en) * 2021-12-27 2022-04-08 武汉悦学帮网络技术有限公司 Text search method and device, electronic equipment and storage medium
CN114296606B (en) * 2021-12-27 2024-05-03 武汉悦学帮网络技术有限公司 Text searching method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111767451B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
CN109299110A (en) Data query method, apparatus, storage medium and electronic equipment
CN111859470B (en) Business data chaining method and device
CN105740405B (en) Method and device for storing data
CN113259359B (en) Edge node capability supplementing method, system, medium and electronic terminal
CN112311600A (en) Strategy suggestion generation method and device based on network data analysis
CN111930770A (en) Data query method and device and electronic equipment
CN113704307A (en) Data query method, device, server and computer readable storage medium
CN111767451B (en) Searching method, electronic device and computer readable storage medium
US20230413247A1 (en) Method for communication processing, terminal device, and non-transitory computer-readable storage medium
CN105302827A (en) Event search method and device
CN103577510A (en) Search result data display method, search server and mobile terminal
CN111625600B (en) Data storage processing method, system, computer equipment and storage medium
KR20150077473A (en) Information acquisition method, device and terminal
CN111510995B (en) Wireless communication method and apparatus
US20170171320A1 (en) Method, terminal and domain name server for connecting terminal to server
CN110493735B (en) Short message processing method and device
US11395129B2 (en) Virtual sim card acquisition method, subscriber terminal and server
CN112235723A (en) Positioning method, positioning device, electronic equipment and computer readable storage medium
CN113194523B (en) Network connection establishing method, device, terminal and storage medium
CN113779325B (en) Data query method, device, storage medium and electronic equipment
CN114490095B (en) Request result determination method and device, storage medium and electronic device
CN116954474A (en) Method, apparatus, device, storage medium and program product for data reading
CN116192333A (en) Rarely used word transmission method and device, electronic equipment and computer storage medium
CN117812043A (en) Method, device and equipment for developing domain name management by iOS
CN116383294A (en) Data integration method, device, storage medium and computer 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
GR01 Patent grant
GR01 Patent grant