CN111767451B - Searching method, electronic device and computer readable storage medium - Google Patents

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

Info

Publication number
CN111767451B
CN111767451B CN202010041758.5A CN202010041758A CN111767451B CN 111767451 B CN111767451 B CN 111767451B CN 202010041758 A CN202010041758 A CN 202010041758A CN 111767451 B CN111767451 B CN 111767451B
Authority
CN
China
Prior art keywords
search
data
separator
searching
words
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.)
Active
Application number
CN202010041758.5A
Other languages
Chinese (zh)
Other versions
CN111767451A (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

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 search method, an electronic device and a computer readable storage medium. In the method, search data input by a user in a search box is received, when the search data comprises separators, the search data is split into a plurality of search words, so that the plurality of search words are searched in a data set respectively, and then search results are output. The technical scheme provided by the invention can improve the convenience degree of the searching process and the searching success rate.

Description

Searching method, electronic device 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 Ant Design, IView, and other UI component libraries. When data searching is needed from the data set, and the data set to be searched has a clearer hierarchical structure, a step-by-step searching function can be realized through the cascade selection control.
At present, the cascade selection control can only support a single-stage fuzzy search function, when multi-stage content needs to be searched, the multi-stage content needs to be searched strictly according to a specified format, and if the multi-stage content does not accord with the specified format, the matching is difficult to succeed, and the searching fails. The searching mode is difficult to meet the searching requirement of actual business, 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 searching success rate.
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 includes a separator;
searching the plurality of search words in the data set respectively;
and outputting search results.
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;
a splitting module for splitting the search data into a plurality of search terms when the search data includes a separator;
the searching module is used for searching the plurality of search words in the data set respectively;
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, which processor, when executing the program, implements the steps of the search method as described in the first aspect.
In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon a computer program for execution by a processor to implement the method of the first aspect.
The invention provides a searching method, electronic equipment and a computer readable storage medium. In the embodiment of the application, the search data is split, so that no special format requirement exists for the search data input by the user, the search requirements under different service scenes can be met, the use of 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 disclosure and together with the description, serve to explain the principles of the disclosure.
FIGS. 1A-1C are diagrams illustrating a search result in the prior art;
fig. 2 is a schematic flow chart of a search method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an original data set of a logistic bin according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an intermediate conversion data set of a logistic bin according to an embodiment of the present invention;
FIG. 5 is a diagram of a search result provided by an embodiment of the present invention;
FIG. 6 is a diagram of another search result provided by 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 entity structure diagram of an electronic device according to an embodiment of the present invention.
Specific embodiments of the present disclosure have been shown by way of the above drawings and will be described in more detail below. These drawings and the written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying 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 be a device that provides voice and/or other traffic data connectivity to a user, a handheld device with wireless connectivity, or other processing device connected to a wireless modem. The wireless terminal may communicate with one or more core network devices via a radio access network (Radio Access Network, RAN for short), which may be mobile terminals such as mobile phones (or "cellular" phones) and computers with mobile terminals, for example, portable, pocket, hand-held, computer-built-in or vehicle-mounted mobile devices that exchange voice and/or data with the radio access network. For another example, the wireless terminal may be a personal communication service (Personal Communication Service, abbreviated PCS) phone, a cordless phone, a session initiation protocol (Session Initiation Protocol, abbreviated SIP) phone, a wireless local loop (Wireless Local Loop, abbreviated WLL) station, a personal digital assistant (Personal Digital Assistant, abbreviated PDA) or the like. A wireless Terminal may also be referred to as a system, subscriber Unit (Subscriber Unit), subscriber Station (Subscriber Station), mobile Station (Mobile Station), mobile Station (Mobile), remote Station (Remote Station), remote Terminal (Remote Terminal), access Terminal (Access Terminal), user Terminal (User Terminal), user Agent (User Agent), user equipment (User Device or User Equipment), without limitation. Optionally, the terminal device may also be a device such as a smart watch or a tablet computer.
The searching method provided by the embodiment of the invention can be suitable for any searching scene. Especially for search scenarios where data is hierarchically related.
Illustratively, a sight searching scenario is taken as an example in the prior art. The search system (or database, or the system to which the search system belongs) typically stores data in terms of a regional hierarchy of province-city-attractions.
In this scenario, the search system may implement a single level search function. Taking the search scenario of Beijing-scenic spots as an example, the search system can output all scenic spots of Beijing according to the search data 'Beijing' input by the user; alternatively, the search system may output a specific sight of "home" based on "home" entered by the user.
In addition, the search system can also realize fuzzy search in single-stage search. For example, scenery points with names of "palace" such as a hometown, a harmony, etc. are output based on search data of "palace" input by the user.
However, search systems are typically implemented through cascading selection controls when implementing multi-level searches. And the cascade selection control requires searching according to a preset specified format. For example, the specified format may be "primary character/secondary character", where "/" is a separator between different levels, and in the specified format, there is a space between the primary character and the separator, and a space between the secondary character and the separator. For convenience of explanation, the space is used as an invalid character in the search data, and characters actually participating in the data search and filtering, such as a primary character, a secondary character, and the like, are used as valid characters for explanation.
Based on this design, fig. 1 shows, by way of example, a schematic diagram of several possible search results in the prior art:
in one embodiment, please refer to the scenario illustrated in fig. 1-A. The search data input by the user in the input box is 'Beijing/hometown', wherein a space exists between the effective character 'Beijing' and the separator '/', a space exists between the 'hometown' and the separator '/', the specified format of the search system aiming at multi-level search is met, the search system searches in the database, and the search result 'Beijing/hometown' can be obtained.
In another embodiment, please refer to the scenario illustrated in fig. 1-B. The search data input by the user in the input box is 'Beijing/Imperial palace', 'Beijing' and separator '/' are adjacent, wherein no space exists, the 'Imperial palace' and separator '/' are adjacent, no space exists, the specified format is not met, the search system cannot search for effective data, 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 illustrated in fig. 1-C. The search data input by the user in the input box is "Beijing/palace", "Beijing" is adjacent to the separator "/" and no space exists, the "palace" is adjacent to the separator "/" and no space exists, the specified format is not met, fuzzy search cannot be realized, the search system cannot search for effective data, and the search result output to the user is shown in fig. 1C and the "no-match data" is displayed.
In summary, in the existing search scenario, when multi-level search is performed, effective search cannot be performed on search data which does not meet a specified format, multi-level fuzzy search cannot be implemented, multi-level search functions are weak, and multi-level search requirements in actual services are difficult to meet.
The technical scheme provided by the invention aims to solve the technical problems in the prior art.
The following describes the technical scheme of the present invention and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Example 1
The embodiment of the invention provides a searching method. Referring to fig. 2, the searching method provided by the embodiment of the 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 the input box in a self-defined way, 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 entered by the user may be "hometown" or "womb". For another example, the received search data input by the user may be the address number "806" or a part of the address numbers "8" therein.
The searching method provided by the embodiment of the invention is suitable for single-stage searching and multi-stage searching. Wherein, when the user needs to perform multi-level searching, separators need to be added in the searching data, so that the searching system can split the effective characters based on the separators. For example, the search data received by the search system may be "Beijing/palace", where there are invalid characters (spaces) between the valid characters "palace" and the separator "/".
The embodiment of the invention is not particularly limited to the relation among a plurality of effective characters in the search data. Any two valid characters can be of the same kind or different kinds. For another example, the search data received by the search system may also be "806/Tangshan," where the valid character "806" is an address number and the valid character "Tangshan" is an 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 separators, splitting the search data 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 separator is taken as a splitting point, and effective characters in the search data are split to obtain a plurality of search words.
For example, if the search data is "beijing/gong", where there is an invalid character (space) between the valid character "gong" and the separator "/", the search data may be split into two search words: "Beijing" and "gong".
For another example, if the search data is "806/Tangshan", the search data is split into two search words with the separator "/" as the split point: "806" and "Tangshan".
For another example, if the search data is "806/5", the search data is split into two search words with the separator "/" as the split point: "806" and "5".
S206, searching the plurality of search words in the data set.
In performing this step, each search term is searched separately. The search mode is described in detail later.
S208, outputting search results.
In summary, in the embodiment shown in fig. 2, after receiving the search data input by the user, if the search data includes the separator, the search data is split into a plurality of search terms, and the plurality of search terms are searched respectively, and the result is output. In the embodiment of the application, the search data is split, so that no special format requirement exists for the search data input by the user, the search requirements under different service scenes can be met, the use of 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.
The search method provided by the embodiment of the invention is further described below on the basis of the method shown in fig. 2.
In the searching method provided by the embodiment of the invention, the separator is taken as the splitting point to split, and after a plurality of search words are obtained, the search is performed on the plurality of search words respectively, so that the searching method is realized regardless of whether invalid characters exist in the search data. Therefore, in the embodiment of the present invention, whether or not an invalid character is provided between the separator and the valid character is not particularly limited.
In other words, in the search data, the separator is adjacent to the valid character. For example, the search data may be "806/Tangshan"; for another example, the search data may be "Beijing/palace".
Alternatively, in the search data, there may be invalid characters between at least one side of the separator and the valid characters. For example, the search data may be "806/Tangshan" where there is a space between the valid character "806" and the separator "/"; for another example, the search data may be "806/Tangshan" where there is a space between the active character "Tangshan" and the separator "/"; for another example, the search data may be "806/tangshan", where a space exists between the active character "806" and the separator "/", and a space also exists between the active character "tangshan" and the separator "/".
It should be understood that, in the foregoing examples, the space is an invalid character, and the separator is "/" which is only an exemplary embodiment, and in the 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 "-", for example, the separator may also be a diagonal line "\", for example, the separator may also be a wavy line "-", and so on. In an actual application scene, the preset can be customized in the search system. In addition, the invalid character may include, but is not limited to, a space, for example, when the separator is "/", the invalid character may include a short horizontal line "-", a diagonal line "\", a wavy line "-", and the like, in addition to the space.
It should be further noted that, in the embodiment of the present invention, the number of separators included in the search data input by the user is not particularly limited. N separators can be included in the search data, thereby splitting the search data into N+1 search terms, where N is an integer greater than 1. For example, one separator may be included in the search data, whereby the search data may be split into two search terms. For another example, 3 separators may be included in the search data, whereby the search data may be split into 4 search terms.
In the embodiment of the invention, the data collection in the search system can be stored according to the hierarchical relationship. Further, the data sets may be stored in accordance with the format of the search data described above. For example, the data set is stored in a format of "character 1/character 2".
For example, reference may be made to fig. 3, and fig. 3 is a schematic diagram of an original 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 respective logistics bins and in a format for indicating the hierarchical relationship. As shown in fig. 3, each piece of data is stored in the format of "upper-level bin (bin number)/lower-level bin (bin number)". The storage format can clearly show the hierarchical relationship of the data.
In a specific search process, the original data in fig. 3 may be converted into a one-dimensional array divided by separators by a recursive method, instead of an array of hierarchical relationships, to form a storage format as shown in fig. 4. The storage mode shown in fig. 4 is beneficial to improving the efficiency of the searching step and also facilitates clear display of the final searching result.
The conversion of the storage format based on the data set is also beneficial to make the search result output by the search system be the same as the format of 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 the search words, each search word can be sequentially and circularly searched in the data set according to the hierarchical relationship indicated by the separator.
For example. If the search system receives the search data input by the user as "8/6", the search system can split the search data into two search words "8" and "6" according to the separator. Therefore, the search system can search '8' in the data set first and then '6' in the data set according to the order of the hierarchical relation from high to low, and the search result is obtained.
When searching for each search term separately, the search may be conducted over the full range of the search set. By way of example, FIG. 5 shows a schematic diagram of search results output by a search system. As shown in fig. 5, among the search results, the third piece of data is in "melbourne distribution center (804)/melbourne overseas TC bin No. 1 library (828)", that is, the search result of the search word "8" is also output in the secondary search relationship.
In such an embodiment, all or part of the plurality of search terms may be included in the search results. For example, if the search data is "8/6", and the search result having the search word "8" is searched, but the search result related to the search word "6" is not searched, only the search result related to the search word "8" may be outputted among the search results.
In other words, among the plurality of search words, the search result may be output as long as the search result of at least one search word can be searched. And, in this embodiment, if no relevant search result can be searched for any search word, the search result is empty, and at this time, a prompt message of "no match data" can be output. In other words, when no search term is found in the data set, the search results are null.
The method of searching in the whole range is more beneficial to obtaining wider search results, and as long as data related to the search word exists in the data, the hierarchical relationship is not needed to be considered, namely the data is output as the search result, and the search granularity is thicker.
In another embodiment, when searching each search term, searching may be performed according to a corresponding hierarchical relationship. At this time, when at least two search words are included in the search result, the two search words satisfy the hierarchical relationship indicated by the separator. In other words, if the search system receives the search data input by the user as "8/6", the data set is searched for data having the search word "8" in the upper level and data having "6" in the lower level, and the data set is output as the search result. For example, reference may be made to another search result schematic shown in FIG. 6. As shown in fig. 6, among the outputted search results, the effective characters satisfy the hierarchical relationship indicated by the search data.
In this embodiment, if data satisfying the hierarchical relationship of search data can be searched, the output search result is not null. If only the search results of a part of the search words are searched, or if the search results of a plurality of search words are searched but the above hierarchical relationship is not satisfied, the search fails, and a prompt message of "no matching data" may be output. For example, if the search data is "8/6", and the search result having the search word "8" is searched, but the search result related to the search word "6" is not searched, the prompt information of "no match data" may be output. For 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", and the hierarchical relationship indicated by "8/6" is not satisfied, the presentation information of "no matching data" may be output.
In this embodiment, the search result closer to the actual service requirement of the user is advantageously obtained, and the search granularity is finer.
In the actual service scenario, the search system can realize the searches with different thickness according to the actual service requirement.
In the embodiment of the invention, after the search result is obtained, the search word in the search result can be highlighted when the search result is output for the convenience of the user to check.
In an exemplary embodiment, when the search system outputs the search result, the search words carried in the search result may be wrapped in a red pattern, thereby outputting 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 embodiments are merely examples, and embodiments of the present application may also perform other operations or variations of various operations. Furthermore, the various steps may be performed in a different order presented in the above embodiments, and it is possible that not all of the operations in the above embodiments are performed.
The words used in this application are merely for describing embodiments and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a," "an," and "the" (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, when used in this application, the terms "comprises," "comprising," and/or "includes," and variations thereof, mean that the stated features, integers, steps, operations, elements, and/or components are present, but that the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof is not precluded.
Example two
Based on the searching method provided by the first embodiment, the embodiment of the invention further provides a device embodiment for realizing the steps and the method in the embodiment of the method.
Referring to fig. 7, an embodiment of the present invention provides an electronic device 700, including:
a receiving module 72, configured to receive search data input by a user in a search box;
a splitting module 74 for splitting the search data into a plurality of search terms when the search data includes a separator;
a search module 76 for searching for a plurality of search terms in the data set, respectively;
and an output module 78 for outputting the search results.
In one embodiment of the invention, in the search data, the separator is adjacent to the valid character; alternatively, in the search data, there are invalid characters between at least one side of the separator and the valid characters.
In another embodiment of the present invention, the splitting module 74 is specifically configured to: and taking the separator as a splitting point, splitting the effective characters in the search data to obtain a plurality of search words.
In another embodiment of the present invention, the search module 76 is specifically configured to: and sequentially and circularly searching each search word in the data set according to the hierarchical relation indicated by the separator.
In another embodiment of the present invention, the search results include 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 results, the two search terms satisfy the hierarchical relationship indicated by the separator.
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; 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 present invention, the search results are null when no search term is found in the data set.
The electronic device 700 of the embodiment shown in fig. 7 may be used to implement the technical solution of the above-mentioned method embodiment, and the implementation principle and technical effects may be further referred to the related description in the method embodiment, 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 merely a division of a logic function, and may be fully or partially integrated into a physical entity or may be physically separated. And these modules may all be implemented in software in the form of calls by the processing element; or can be realized in hardware; it is also possible that part of the modules are implemented in the form of software called by the processing element and part of the modules are implemented in the form of hardware. For example, the splitting module 74 may be a processing element that is set up separately, may be integrated into the electronic device 700, for example, a chip of a terminal, or may be stored in a memory of the electronic device 700 in a program form, and the functions of the above modules may be called and executed by a processing element of the electronic device 700. The implementation of the other modules is similar. In addition, all or part of the modules can be integrated together or can be independently implemented. 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 a software form.
For example, the modules above may be one or more integrated circuits configured to implement the methods above, such as: one or more specific integrated circuits (Application Specific Integrated Circuit, ASIC), or one or more microprocessors (digital singnal processor, DSP), or one or more field programmable gate arrays (Field Programmable Gate Array, FPGA), or the like. For another example, when a module above is implemented in the form of a processing element scheduler, the processing element may be a general purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Moreover, referring to fig. 8, an embodiment of the present invention provides an electronic device, 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 processor 720 may implement the method according to the above embodiments when executing 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 a processing unit, which may implement a certain control function. Processor 720 may be a general purpose processor or a special purpose processor, or the like. In an alternative design, processor 720 may also have instructions stored thereon that are executable by processor 720 to cause electronic device 700 to perform the methods described in the method embodiments above.
In yet another possible design, electronic device 700 may include circuitry that may perform the functions of transmitting or receiving or communicating in the foregoing method embodiments.
Alternatively, the number of memories 710 in the electronic device 700 may be one or more, and the memories 710 may have instructions or intermediate data stored thereon, which may be executed on the processor 720 to cause the electronic device 700 to perform the methods described in the above method embodiments. Optionally, other relevant data may also be stored in the memory 710. Instructions and/or data may also optionally be stored in processor 720. Processor 720 and memory 710 may be provided separately or may be integrated.
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, or a transceiver, etc. for performing data transmission or communication with a test device or other terminal devices, which is not described herein.
As shown in fig. 8, the memory 710, the processor 720 and the transceiver 730 are connected and communicate by a bus.
Furthermore, an embodiment of the present invention provides a readable storage medium having stored thereon a computer program to be executed by a processor to implement the method according to embodiment one.
Since each module in this embodiment is capable of executing the method shown in embodiment one, a part of this embodiment which is not described in detail can be referred to the description related to embodiment one.
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 adaptations, 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 is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A search method, 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 includes a separator;
searching the plurality of search words in the data set respectively;
outputting search results;
the splitting the search data into a plurality of search terms includes:
splitting the effective characters in the search data by taking the separator as a splitting point to obtain a plurality of search words;
the searching the plurality of search words in the data set respectively comprises the following steps:
according to the hierarchical relation indicated by the separator, sequentially and circularly searching each search word in the data set;
when the search result contains at least two search words, the two search words meet the hierarchical relationship indicated by the separator; the search results are in the same format as the search data.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
in the search data, the separator is adjacent to a valid character; or,
in the search data, there are invalid characters between at least one side of the separator and the valid characters.
3. The method of claim 1 or 2, wherein the search results include all or part of the plurality of search terms.
4. The method of claim 1 or 2, wherein the search terms in the search results are highlighted.
5. The method of claim 4, wherein the outputting the search results comprises:
wrapping the search words carried in the search results in a red style;
and outputting the processed search result.
6. The method of claim 1, wherein the search result is null when no of the search terms is searched in the data set.
7. An electronic device, comprising:
the receiving module is used for receiving search data input by a user in the search box;
a splitting module for splitting the search data into a plurality of search terms when the search data includes a separator;
the searching module is used for searching the plurality of search words in the data set respectively;
the output module is used for outputting search results;
the splitting module is specifically configured to split the valid characters in the search data by using the separator as a splitting point to obtain a plurality of search terms;
the searching module is specifically configured to sequentially and circularly search each search term in the data set according to the hierarchical relationship indicated by the separator;
when the search result contains at least two search words, the two search words meet the hierarchical relationship indicated by the separator; the search results are in the same format as the search data.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the search method according to any of claims 1-6 when the program is executed by the processor.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the search method of any of claims 1-6.
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 CN111767451A (en) 2020-10-13
CN111767451B true 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)

Families Citing this family (1)

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

Citations (10)

* 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
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8977605B2 (en) * 2006-08-28 2015-03-10 Yahoo! Inc. Structured match in a directory sponsored search system
US20120233153A1 (en) * 2011-03-11 2012-09-13 International Business Machines Corporation Hierarchical browsing operations on a directory attribute

Patent Citations (10)

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

Also Published As

Publication number Publication date
CN111767451A (en) 2020-10-13

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
CN103069421A (en) Method and apparatus for processing search requests for a partitioned index
CN111461887A (en) Block chain consensus processing method and device and electronic equipment
CN110868339A (en) Node distribution method and device, electronic equipment and readable storage medium
CN113704307A (en) Data query method, device, server and computer readable storage medium
CN111431818B (en) Cross-domain request flow distribution method and device, storage medium and computer equipment
CN111767451B (en) Searching method, electronic device and computer readable storage medium
CN111510995B (en) Wireless communication method and apparatus
CN114064843B (en) Method, device and equipment for querying interplanetary line position nodes in RDF data
US11395129B2 (en) Virtual sim card acquisition method, subscriber terminal and server
CN112235723B (en) Positioning method, positioning device, electronic equipment and computer readable storage medium
CN106210230B (en) A kind of contact person increases method and terminal
CN113050985B (en) Front-end engineering dependency automatic registration method and device
US20170171320A1 (en) Method, terminal and domain name server for connecting terminal to server
CN105574453A (en) Two-dimensional code processing method and mobile terminal
CN110493735B (en) Short message processing method and device
CN114244467A (en) Cell search method and device
JP2011035811A (en) Storage system, access management apparatus, data transfer method and program
CN113194523B (en) Network connection establishing method, device, terminal and storage medium
CN113115400B (en) Communication method and device
CN116954474A (en) Method, apparatus, device, storage medium and program product for data reading
CN103248752B (en) Portable terminal and information processing method thereof
CN117812043A (en) Method, device and equipment for developing domain name management by iOS
CN116192333A (en) Rarely used word transmission method and device, electronic equipment and computer storage medium

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