CN113656679B - User searching method and device - Google Patents

User searching method and device Download PDF

Info

Publication number
CN113656679B
CN113656679B CN202110998593.5A CN202110998593A CN113656679B CN 113656679 B CN113656679 B CN 113656679B CN 202110998593 A CN202110998593 A CN 202110998593A CN 113656679 B CN113656679 B CN 113656679B
Authority
CN
China
Prior art keywords
search
user
history
target
record
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
CN202110998593.5A
Other languages
Chinese (zh)
Other versions
CN113656679A (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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202110998593.5A priority Critical patent/CN113656679B/en
Publication of CN113656679A publication Critical patent/CN113656679A/en
Application granted granted Critical
Publication of CN113656679B publication Critical patent/CN113656679B/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/951Indexing; Web crawling techniques
    • 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/9535Search customisation based on user profiles and personalisation
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the specification provides a user searching method and device, wherein the user searching method comprises the following steps: checking the input search keywords; if the verification is not passed, searching is carried out in a history index table according to the search keyword; the history index table is constructed based on history search records; determining a target search record in at least one historical search record obtained by retrieval; and carrying out information assembly according to the target search record and the user information of the target user to obtain a search result.

Description

User searching method and device
Technical Field
The present document relates to the field of data processing technologies, and in particular, to a user searching method and apparatus.
Background
With the widespread popularity of intelligent terminals, more and more users access various services provided by the internet through the intelligent terminals, in order to search for needed information in massive information of the internet, a search engine is becoming an indispensable tool, and a commonly used search engine performs accurate search according to search words input by the users, but in many situations, the users often forget complete search words, such as communication numbers, bank card numbers and the like, and the users may need to spend more time and effort to search for the complete search words, which brings trouble to the searching process of the users.
Disclosure of Invention
One or more embodiments of the present specification provide a user search method, including: and checking the input search keywords. And if the verification is not passed, searching in the history index table according to the search keyword. The history index table is constructed based on history search records. A target search record of the retrieved at least one historical search record is determined. And carrying out information assembly according to the target search record and the user information of the target user to obtain a search result.
One or more embodiments of the present specification provide a user search apparatus including: and the keyword verification module is configured to verify the input search keywords. And if the verification is not passed, operating a retrieval module. The retrieval module is configured to retrieve in a history index table according to the search keyword. The history index table is constructed based on history search records. The target search record determining module is configured to determine a target search record in at least one history search record obtained by retrieval. And the information assembly module is configured to carry out information assembly according to the target search record and the user information of the target user to obtain a search result.
One or more embodiments of the present specification provide a user search apparatus including: a processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to: and checking the input search keywords. And if the verification is not passed, searching in the history index table according to the search keyword. The history index table is constructed based on history search records. A target search record of the retrieved at least one historical search record is determined. And carrying out information assembly according to the target search record and the user information of the target user to obtain a search result.
One or more embodiments of the present specification provide a storage medium storing computer-executable instructions that, when executed by a processor, implement the following: and checking the input search keywords. And if the verification is not passed, searching in the history index table according to the search keyword. The history index table is constructed based on history search records. A target search record of the retrieved at least one historical search record is determined. And carrying out information assembly according to the target search record and the user information of the target user to obtain a search result.
Drawings
For a clearer description of one or more embodiments of the present description or of the solutions of the prior art, the drawings that are needed in the description of the embodiments or of the prior art will be briefly described below, it being obvious that the drawings in the description that follow are only some of the embodiments described in the present description, from which other drawings can be obtained, without inventive faculty, for a person skilled in the art;
FIG. 1 is a process flow diagram of a user search method provided in one or more embodiments of the present disclosure;
FIG. 2 is a schematic diagram of a search results page provided by one or more embodiments of the present disclosure;
FIG. 3 is a process flow diagram of a user search method for use in a service access scenario provided in one or more embodiments of the present disclosure;
FIG. 4 is a schematic diagram of a user search apparatus provided in one or more embodiments of the present disclosure;
fig. 5 is a schematic structural diagram of a user search device according to one or more embodiments of the present disclosure.
Detailed Description
In order to enable a person skilled in the art to better understand the technical solutions in one or more embodiments of the present specification, the technical solutions in one or more embodiments of the present specification will be clearly and completely described below with reference to the drawings in one or more embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one or more embodiments of the present disclosure without inventive effort, are intended to be within the scope of the present disclosure.
The embodiment of the user searching method provided by the specification comprises the following steps:
referring to fig. 1, a process flow diagram of a user searching method provided in this embodiment is shown, referring to fig. 2, a schematic diagram of a search result page provided in this embodiment is shown, and referring to fig. 3, a process flow diagram of a user searching method applied to a service access scenario provided in this embodiment is shown.
Referring to fig. 1, the user searching method provided in this embodiment specifically includes steps S102 to S108.
Step S102, checking the input search keywords.
In practice, a user often shields a communication number in consideration of data privacy protection, for example, "i can not search me through the communication number" is set, in this case, the user needs to search through an email address or a transfer card number of historical transfer, but the email address and the character length of the transfer card number are long, so that the user cannot input a complete email address and a complete bank card number to search, and in addition, for a user who has transferred and is in a non-friend relationship, if the user needs to transfer again, the difficulty of searching the other party is very high, and even the other party cannot be searched.
In view of this, in the user searching method provided in this embodiment, by recording a history search record in the process of performing an accurate search on a user history, specifically, recording a user identifier of a search user initiating a search, a user identifier of a target user being searched, and a history search word input in the process of searching the target user by the search user in the history search record, and constructing a history index table based on the history search record, in the process of performing the user search, if the input search keyword does not meet the condition of performing the accurate search, performing a fuzzy search in the constructed history index table, thereby determining the target user once searched in the history index table, and displaying the tag of the target user being searched by the history through information assembly, thereby establishing a search system in which the fuzzy search supplements the accurate search, the accurate search is used as a data base of the fuzzy search, improving the search success rate through the fuzzy search, and simultaneously, performing the fuzzy search based on the history search record generated in the accurate search process, improving the user search efficiency, and simultaneously ensuring the user data in the search process.
The search keyword refers to a search word input in a search process. It should be noted that, the search keyword may be a complete search word, such as a complete 11-bit communication number input, or a complete email address; in addition, the search keyword may also be part of a complete search word, such as the first 3 or the last 4 digits of a complete 11-digit communication number.
In this embodiment, by checking the input search keyword, whether the search keyword belongs to a complete search word or a local search word is checked, and if the checking result indicates that the search keyword is the complete search word, a precise search mode is adopted to perform user search; and if the verification result shows that the search keyword is a part of the complete search word, performing user search in a fuzzy search mode.
Specifically, in an optional implementation manner provided in this embodiment, in order to improve the verification efficiency and the verification accuracy for the search keyword, the verification is performed from the part of speech type of the search keyword, which specifically includes: formatting the search keywords to obtain formatted keywords; and checking the formatted keywords by adopting a checking expression of the word type to which the search keywords belong.
For example, removing spaces and illegal characters contained in the input search keywords, determining the word types of the search keywords, and then inputting the removed search keywords into regular expressions corresponding to the determined word types for verification; if the word type of the search keyword is determined to be the communication number type, a regular expression corresponding to the communication number type is input for verification processing, so that whether the input search keyword is a complete 11-bit communication number is verified.
When the method is specifically implemented, after the search keywords are verified, if the verification is passed, user searching is performed in a precise searching mode; if not, performing step S104 to step S106 to perform user search by adopting a fuzzy search mode. Here, the history index table relied on in the fuzzy search process is constructed based on the history search record generated in the accurate search process, so in order to improve the success rate of the fuzzy search, in an optional implementation manner provided in this embodiment, in the process of checking to pass and performing user search by adopting an accurate search mode, the history search record which adopts the accurate search and is successfully searched is updated to the history index table, so that the history index table is perfected in the accurate search process, thereby improving the search conversion rate of the fuzzy search.
After the input search keywords are checked, and under the condition that the check is passed, the accurate search processing is performed in the following manner: searching a user information base for a target user with account information matched with the formatted keywords; if the search result is empty, generating a reminding message that the search is empty; and if the search result is not null, outputting the search result, creating a corresponding historical search record based on the search result, and recording the historical search record into the historical record index table.
Further, in order to promote the perception degree of the search user initiating the search and inputting the search keyword to the search result, in an optional implementation manner provided in this embodiment, in the process of outputting the search result, through the association relationship and the assembly of the user information, the information of the target user and the relationship with the search user obtained by the search intuitively displayed to the search user are specifically output by adopting the following manner:
reading user information of the target user from the user information base, and determining an association relationship between the target user and a search user inputting the search keyword;
and carrying out information assembly based on the association relation and the user information, and outputting an information assembly result as a search result.
For example, the nickname, the name and the communication number of the target user obtained by searching are read from the user information base, and the relationship between the target user obtained by searching and the searching user is determined to be the friend relationship, then the nickname, the name and the communication number are assembled with the friend relationship, and finally the searching display label of the target user with the label of the friend relationship, the nickname, the name and the communication number after desensitization is obtained.
In addition, in the case that the verification is performed on the search keyword and the verification is not passed, fuzzy search is performed based on the search keyword, so as to improve the search efficiency in the fuzzy search process, in an optional implementation manner provided in this embodiment, after the verification is performed on the input search keyword, if the verification is not passed, it is detected whether the number of word positions of the search keyword (for example, the number of word positions of the search word input by the user is 136 and 3) is greater than the word position threshold of the belonging word type; if yes, the following step S104 is executed; if not, generating a reminding message with empty search.
Step S104, if the verification is not passed, searching is carried out in the history index table according to the search keyword.
As described above, in this embodiment, by establishing a search system in which the fuzzy search supplements the accurate search and the accurate search serves as the data base of the fuzzy search, the success rate of the search is improved by supplementing the accurate search with the fuzzy search, and at the same time, the conversion rate of the search is improved by performing the fuzzy search on the basis of the history search record generated in the accurate search process. In this step, the fuzzy search process of searching the history index table and determining the search record in step S106 described below is implemented based on the history search record generated in the above-mentioned accurate search process, specifically, the fuzzy search process is a process of searching in the history index table constructed based on the history search record using the search keyword as a search input.
Optionally, the history index table includes at least one of: a first identification field corresponding to a user identification of a history search user, a second identification field corresponding to a user identification of a history target user obtained by searching by the history search user, and an information field corresponding to history search words input by the history search user or account information of the history target user.
For example, a history index table shown below:
3 history search records are shown in the table above, wherein the 1 st history search record is: the history searching user xxxx001 inputs a communication number '135 xxxxxxxx' as a search word to perform accurate search, and a history target user xxxxxx 004 binding the communication number '135 xxxxxxxx' is obtained through search;
the 2 nd historical search record is: the history searching user xxxxxx 002 inputs an email address 'xxxxxxxx@gmail.com' as a search word to perform accurate search, and obtains a history target user xxxxxx 005 binding the email address 'xxxxxxxx@gmail.com' through search;
the 3 rd historical search record is: the history searching user xxxxxx 003 inputs a transfer card number "6220xxxxxxxx033" as a search word to conduct accurate searching, and the history target user xxxxxx 006 binding the transfer card number "6220xxxxxxxx033" is obtained through searching.
In specific implementation, the process of searching in the history index table according to the search keyword refers to searching the history search record containing the search keyword in the history index table. In an optional implementation manner provided in this embodiment, searching in the history index table according to the search keyword includes: and searching historical search words or historical search records of which account information contains the search keywords in the historical record index table as a search result.
In addition, in the process of searching in the history index table, the searching efficiency is improved by introducing an inverted index mechanism, and searching is performed on the basis of the established inverted index and the history index table, and the specific searching process comprises the following steps: searching record numbers of historical search records containing the search keywords in a pre-established inverted index; and determining a history search record corresponding to the record number in the history index table as a search result.
Further, in a specific execution process, in order to promote the search experience of the user, after searching in the history index table according to the search keyword, on the basis of detecting whether the history search record obtained by searching is empty, reminding the situation that the history search record obtained by searching is empty, namely reminding a fuzzy search result that the search result in the fuzzy search process is empty, so as to remind the search user who inputs the search keyword to further perfect the search keyword or replace the search keyword for searching, in an alternative implementation provided by the embodiment, after searching in the history index table according to the search keyword, judging whether the number of the history search records obtained by searching is empty; if yes, indicating that the current search result of the fuzzy search is empty, and generating a reminding message that the search is empty; if not, the step S106 is executed to determine the target search record in at least one history search record obtained by searching.
Step S106, determining a target search record in at least one history search record obtained by retrieval.
The above steps may be performed according to the search keyword, after searching in the history index table, the history search record obtained by searching may be one or more, and for the one or more history search records obtained by searching, the history search record includes a history search word input by the history search user during the searching process, where the history search word includes account information of the history target user, but in practical application, the account information of the history target user may be changed, for example, when the history search user inputs a communication number "135 xxxxxxxxx" as a search word, an accurate search is performed, and the communication number "135 xxxxxxx" obtained by searching only represents a communication number bound by the history target user xxxxxx 004 when the history search user xxxx001 searches, and the communication number bound by the target user xxxxxxxx 004 may be changed after the search of the history search user xxxxxxxx 001.
In view of this, in order to improve the accuracy of the fuzzy search, in determining the target search record in the at least one history search record obtained by the search, the accuracy of the target search record obtained by the fuzzy search is improved by detecting the validity of each history search record in the at least one history search record obtained by the search, and specifically, in an optional implementation manner provided in this embodiment, the target search record in the at least one history search record obtained by the search is determined in the following manner:
And executing the following operations for each history search record in at least one history search record in the search results:
judging whether account information of a history target user contained in the history search record is updated or not;
if not, the treatment is not carried out;
if yes, deleting the history search record with updated account information from the search result, and taking the rest history search record in the search result as the target search record.
And S108, carrying out information assembly according to the target search record and the user information of the target user to obtain a search result.
In the specific implementation, based on the target search record determined in the step, the step starts from the target search record and the user information of the target user determined according to the target search record, performs information assembly of the target user, and finally obtains a search result. In an optional implementation manner provided in this embodiment, the information assembling according to the target search record and the user information of the target user includes:
determining a target user according to the user identification of the historical target user contained in the target search record, and determining a search tag of the target user;
And carrying out information assembly on the search tag and the user information of the target user read from a user information base.
For example, a search user inputs a search keyword "135", searches in a history index table, and obtains a history search record with an information field containing the search keyword "135", where a target user recorded in the history search record is a user "× and then determines that the user" × is a history search user of the current search user, that is: the search tag is determined as "history search", then, header information, name and desensitized communication number of the user are read from the user information base, the search tag is assembled with the read header information, name and desensitized communication number, and the display of the search display identifier obtained by information assembly is shown in 201 in fig. 2.
Further, the user search experience may be improved by sorting the target users, for example, sorting the target users according to the relationship between the searched target users and the searched users who input the search keywords, and after the information of the target users is assembled with the user information of the target users read from the user information base, the method of sorting the target users is as follows: calculating the association degree of the target user and the search user inputting the search keyword; and sequencing the target users according to the association degree.
In addition, the ranking may be performed according to the number of historical searches or the historical search time interval (the time interval between the historical search time and the current search time), specifically, after the search tag is assembled with the user information of the target user read from the user information base, the number of historical searches and/or the historical search time interval of the target user are determined, and the target user is ranked based on the number of historical searches and/or the historical search time interval.
It should be noted that, in practice, many users are sensitive to protection of data privacy, so that the authority to be searched may be limited, for example, "i cannot be searched" is set, and in this case, in an optional implementation manner provided in this embodiment, in determining a target user according to a historical target user corresponding to a historical target user identifier included in each target search record, a candidate user is determined according to a user identifier of the historical target user included in the target search record; and filtering the candidate users with data authority triggering preset authority rules according to the data authority of the candidate users, and determining the filtered residual candidate users as the target users. For example, the data privacy of the user is protected by filtering the target user with the data authority set as 'not searching me'.
In an actual application scenario, user searching often occurs in an access process of an application or a service, the application or the service initiates a search call, and after completing searching, a search result is returned to the application or the service initiating the search call, in this process, in order to further promote a search experience of a user in the access process of the application or the service, and further promote an interaction experience of the user on the application or the service, in an optional implementation manner provided in this embodiment, after obtaining the search result, a search result page is generated and output according to a search display identifier of a target user included in the search result and an access identifier of the service initiating the search call.
Along the above example, the searching user initiates a searching call in the accessing process of the gift card service in the application, determines that the searching label of the user's' x 'is' history searching 'after searching according to the input searching keyword' 135 ', reads the head portrait information, the name and the desensitized communication number of the user's 'x' from the user information base, and carrying out information assembly on the search tag 'history search' and the read head portrait information, name and desensitized communication number to obtain a search display identifier 201, and generating a search result page and displaying the search result page on the terminal equipment of a searching user according to the search display identifier and the access identifier 202 of the gift card service.
The following further describes the user search method provided in this embodiment by taking an application of the user search method provided in this embodiment to a service access scenario as an example, and referring to fig. 3, the user search method applied to the service access scenario specifically includes steps S302 to S316.
Step S302, checking the search keywords by adopting a checking expression of the word type to which the input search keywords belong;
if the verification is not passed, executing step S304;
if the verification is passed, searching a user information base for a target user with account information matched with the search keyword; if the search result is empty, generating a reminding message that the search is empty; and if the search result is not null, outputting the search result, creating a corresponding historical search record based on the search result, and recording the historical search record in a historical record index table.
Wherein the search result outputting includes: reading user information of a target user from a user information base, determining an association relation between the target user and a search user inputting a search keyword, performing information assembly based on the association relation and the user information, and outputting an information assembly result as a search result.
Step S304, detecting whether the word number of the search keyword is larger than the word number threshold of the belonging word type;
If yes, go to step S306 to step S308;
if not, generating a reminding message with empty search.
Step S306, the record numbers of the history search records containing the search keywords are searched in the inverted index, and the history search records corresponding to the record numbers in the history index table are determined as search results.
Step S308, judging whether account information of the history target user contained in each history search record in the search result is updated;
if yes, go to step S310 to step S316;
if not, go to step S312 to step S316.
Step S310, deleting the history search record with updated account information from the search result, and taking the rest history search record in the search result as a target search record.
Step S312, determining the target user according to the user identification of the historical target user contained in the target search record, and filtering out the target user of the data authority triggering preset authority rule.
Step S314, determining the search tag of the target user, and carrying out information assembly on the search tag and the user information of the target user read from the user information base.
Step S316, according to the search display identification of the target user obtained by assembly and the access identification of the service initiating the search call, a search result page is generated and output.
An embodiment of a user search apparatus provided in the present specification is as follows:
in the above-described embodiments, a user search method is provided, and a user search apparatus is provided corresponding thereto, and is described below with reference to the accompanying drawings.
Referring to fig. 4, a schematic diagram of a user search apparatus according to the present embodiment is shown.
Since the apparatus embodiments correspond to the method embodiments, the description is relatively simple, and the relevant portions should be referred to the corresponding descriptions of the method embodiments provided above. The device embodiments described below are merely illustrative.
The present embodiment provides a user search apparatus including:
a keyword verification module 402 configured to verify an input search keyword;
if the verification is not passed, a retrieval module 404 is operated, and the retrieval module 404 is configured to retrieve in a history index table according to the search keyword; the history index table is constructed based on history search records;
a target search record determination module 406 configured to determine a target search record of the retrieved at least one historical search record;
and the information assembling module 408 is configured to assemble information according to the target search record and the user information of the target user to obtain a search result.
An embodiment of a user search device provided in the present specification is as follows:
in correspondence to the above-described user search method, one or more embodiments of the present disclosure further provide a user search device, based on the same technical concept, for performing the above-provided user search method, and fig. 5 is a schematic structural diagram of a user search device provided by one or more embodiments of the present disclosure.
The user search device provided in this embodiment includes:
as shown in fig. 5, the user search device may have a relatively large difference due to different configurations or capabilities, and may include one or more processors 501 and a memory 502, where the memory 502 may store one or more stored applications or data. Wherein the memory 502 may be transient storage or persistent storage. The application programs stored in memory 502 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in the user search device. Still further, the processor 501 may be configured to communicate with the memory 502 and execute a series of computer executable instructions in the memory 502 on a user search device. The user search device may also include one or more power supplies 503, one or more wired or wireless network interfaces 504, one or more input/output interfaces 505, one or more keyboards 506, and the like.
In a particular embodiment, a user search device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the user search device, and configured to be executed by one or more processors, the one or more programs comprising computer-executable instructions for:
checking the input search keywords;
if the verification is not passed, searching is carried out in a history index table according to the search keyword; the history index table is constructed based on history search records;
determining a target search record in at least one historical search record obtained by retrieval;
and carrying out information assembly according to the target search record and the user information of the target user to obtain a search result.
An embodiment of a storage medium provided in the present specification is as follows:
corresponding to the user search method described above, one or more embodiments of the present specification further provide a storage medium based on the same technical idea.
The storage medium provided in this embodiment is configured to store computer executable instructions that, when executed by a processor, implement the following flow:
checking the input search keywords;
if the verification is not passed, searching is carried out in a history index table according to the search keyword; the history index table is constructed based on history search records;
determining a target search record in at least one historical search record obtained by retrieval;
and carrying out information assembly according to the target search record and the user information of the target user to obtain a search result.
It should be noted that, the embodiments about the storage medium in the present specification and the embodiments about the user search method in the present specification are based on the same inventive concept, so that the specific implementation of this embodiment may refer to the implementation of the foregoing corresponding method, and the repetition is not repeated.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In the 30 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each unit may be implemented in the same piece or pieces of software and/or hardware when implementing the embodiments of the present specification.
One skilled in the relevant art will recognize that one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
One or more embodiments of the present specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is by way of example only and is not intended to limit the present disclosure. Various modifications and changes may occur to those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. that fall within the spirit and principles of the present document are intended to be included within the scope of the claims of the present document.

Claims (16)

1. A user search method, comprising:
carrying out integrity check on the input search keywords;
if the verification is not passed, searching is carried out in a history index table according to the search keyword; the history index table is constructed based on history search records;
determining a target search record in at least one historical search record obtained by retrieval;
and carrying out information assembly according to the target search record and the user information of the target user to obtain a search result.
2. The user search method of claim 1, wherein the performing integrity check on the input search keyword comprises:
formatting the search keywords to obtain formatted keywords;
and checking the formatted keywords by adopting a checking expression of the word type to which the search keywords belong.
3. The user search method of claim 2, further comprising, after the performing of the integrity check step on the input search keyword:
if the verification is passed, searching a user information base for a target user with account information matched with the formatted keywords;
if the search result is empty, generating a reminding message that the search is empty;
and if the search result is not null, outputting the search result, creating a corresponding historical search record based on the search result, and recording the historical search record into the historical record index table.
4. A user search method as claimed in claim 3, said performing search result output comprising:
reading user information of a target user from the user information base, and determining an association relationship between the target user and a search user inputting the search keyword;
and carrying out information assembly based on the association relation and the user information, and outputting an information assembly result as a search result.
5. The user searching method according to claim 1, after the step of performing the integrity check on the input search keyword and before the step of performing the search in the history index table according to the search keyword if the verification is not passed, further comprising:
if the verification is not passed, detecting whether the word number of the search keyword is larger than a word number threshold of the belonging word type;
if yes, executing the next step;
if not, generating a reminding message with empty search.
6. The user search method of claim 1, the history index table comprising at least one of:
a first identification field corresponding to a user identification of a history search user, a second identification field corresponding to a user identification of a history target user obtained by searching by the history search user, and an information field corresponding to history search words input by the history search user or account information of the history target user.
7. The user search method according to claim 1, wherein the searching in the history index table according to the search keyword includes:
searching historical search words or historical search records of which account information contains the search keywords in the historical record index table as a search result;
Or,
searching record numbers of historical search records containing the search keywords in a pre-established inverted index;
and determining a history search record corresponding to the record number in the history index table as a search result.
8. The user searching method according to claim 7, wherein if the verification is not passed, after the step of searching in the history index table according to the search keyword is performed, and before the step of determining the target search record in the at least one history search record obtained by searching is performed, further comprising:
judging whether the number of the history search records obtained by retrieval is empty or not;
if yes, generating a reminding message with empty search;
and if not, executing the target search record step in the at least one history search record obtained by the determined search.
9. The user search method of claim 7, the determining a target search record of the at least one history search record retrieved, comprising:
and executing the following operations for each history search record in at least one history search record in the search results:
judging whether account information of a history target user contained in the history search record is updated or not;
If yes, deleting the history search record with updated account information from the search result, and taking the rest history search record in the search result as the target search record.
10. The user search method according to claim 1, wherein the information assembling according to the target search record and the user information of the target user comprises:
determining a target user according to the user identification of the historical target user contained in the target search record, and determining a search tag of the target user;
and carrying out information assembly on the search tag and the user information of the target user read from a user information base.
11. The user search method of claim 10, after the sub-step of information assembling the search tag with the user information of the target user read from a user information base is performed, further comprising:
calculating the association degree of the target user and the search user inputting the search keyword;
and sequencing the target users according to the association degree.
12. The user search method of claim 10, wherein the determining the target user according to the user identification of the historical target user contained in the target search record comprises:
Determining candidate users according to user identifications of historical target users contained in the target search records;
and filtering the candidate users with data authority triggering preset authority rules according to the data authority of the candidate users, and determining the filtered residual candidate users as the target users.
13. The user searching method according to claim 1, wherein the step of obtaining the search result is performed by performing information assembly according to the target search record and user information of the target user, and further comprises:
and generating and outputting a search result page according to the search display identifier of the target user contained in the search result and the access identifier of the service initiating the search call.
14. A user search apparatus comprising:
the keyword verification module is configured to carry out integrity verification on the input search keywords;
if the verification is not passed, a retrieval module is operated, and the retrieval module is configured to retrieve in a history index table according to the search keyword; the history index table is constructed based on history search records;
a target search record determination module configured to determine a target search record of the retrieved at least one history search record;
And the information assembly module is configured to carry out information assembly according to the target search record and the user information of the target user to obtain a search result.
15. A user search apparatus comprising:
a processor; the method comprises the steps of,
a memory configured to store computer-executable instructions that, when executed, cause the processor to:
carrying out integrity check on the input search keywords;
if the verification is not passed, searching is carried out in a history index table according to the search keyword; the history index table is constructed based on history search records;
determining a target search record in at least one historical search record obtained by retrieval;
and carrying out information assembly according to the target search record and the user information of the target user to obtain a search result.
16. A storage medium storing computer-executable instructions that when executed by a processor implement the following:
carrying out integrity check on the input search keywords;
if the verification is not passed, searching is carried out in a history index table according to the search keyword; the history index table is constructed based on history search records;
Determining a target search record in at least one historical search record obtained by retrieval;
and carrying out information assembly according to the target search record and the user information of the target user to obtain a search result.
CN202110998593.5A 2021-08-27 2021-08-27 User searching method and device Active CN113656679B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110998593.5A CN113656679B (en) 2021-08-27 2021-08-27 User searching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110998593.5A CN113656679B (en) 2021-08-27 2021-08-27 User searching method and device

Publications (2)

Publication Number Publication Date
CN113656679A CN113656679A (en) 2021-11-16
CN113656679B true CN113656679B (en) 2024-03-12

Family

ID=78482251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110998593.5A Active CN113656679B (en) 2021-08-27 2021-08-27 User searching method and device

Country Status (1)

Country Link
CN (1) CN113656679B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115080637A (en) * 2022-07-14 2022-09-20 中国船舶科学研究中心 Block chain data retrieval method for improving retrieval efficiency
CN115766517A (en) * 2022-11-18 2023-03-07 维沃移动通信有限公司 Information verification method and device, electronic equipment and storage medium
CN116564316B (en) * 2023-07-11 2023-11-03 北京边锋信息技术有限公司 Voice man-machine interaction method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462557A (en) * 2014-12-25 2015-03-25 北京奇虎科技有限公司 Instant searching method and device based on search history
CN105335391A (en) * 2014-07-09 2016-02-17 阿里巴巴集团控股有限公司 Processing method and device of search request on the basis of search engine
WO2019128364A1 (en) * 2017-12-29 2019-07-04 北京京东尚科信息技术有限公司 Object searching method and system, computer system and computer readable storage medium
CN110955814A (en) * 2019-10-29 2020-04-03 哈尔滨师范大学 Big data intelligent searching method
CN111666448A (en) * 2020-04-21 2020-09-15 北京奇艺世纪科技有限公司 Search method, search device, electronic equipment and computer-readable storage medium
CN111708740A (en) * 2020-06-16 2020-09-25 荆门汇易佳信息科技有限公司 Mass search query log calculation analysis system based on cloud platform
CN111767445A (en) * 2020-06-29 2020-10-13 平安科技(深圳)有限公司 Data searching method and device, computer equipment and storage medium
CN112632385A (en) * 2020-12-29 2021-04-09 中国平安人寿保险股份有限公司 Course recommendation method and device, computer equipment and medium
CN112966086A (en) * 2021-03-12 2021-06-15 湖南大学 Verifiable fuzzy search method based on position sensitive hash function

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335391A (en) * 2014-07-09 2016-02-17 阿里巴巴集团控股有限公司 Processing method and device of search request on the basis of search engine
CN104462557A (en) * 2014-12-25 2015-03-25 北京奇虎科技有限公司 Instant searching method and device based on search history
WO2019128364A1 (en) * 2017-12-29 2019-07-04 北京京东尚科信息技术有限公司 Object searching method and system, computer system and computer readable storage medium
CN110955814A (en) * 2019-10-29 2020-04-03 哈尔滨师范大学 Big data intelligent searching method
CN111666448A (en) * 2020-04-21 2020-09-15 北京奇艺世纪科技有限公司 Search method, search device, electronic equipment and computer-readable storage medium
CN111708740A (en) * 2020-06-16 2020-09-25 荆门汇易佳信息科技有限公司 Mass search query log calculation analysis system based on cloud platform
CN111767445A (en) * 2020-06-29 2020-10-13 平安科技(深圳)有限公司 Data searching method and device, computer equipment and storage medium
CN112632385A (en) * 2020-12-29 2021-04-09 中国平安人寿保险股份有限公司 Course recommendation method and device, computer equipment and medium
CN112966086A (en) * 2021-03-12 2021-06-15 湖南大学 Verifiable fuzzy search method based on position sensitive hash function

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于Word2vec的内容态势感知方法;魏忠;周俊;石元兵;黄明浩;;通信技术(05);全文 *

Also Published As

Publication number Publication date
CN113656679A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
CN113656679B (en) User searching method and device
CN115935428A (en) Information desensitization method, device and system
CN110032857B (en) Account registration and trusted device identification methods and devices
CN110503435B (en) Transaction early warning method, device and equipment based on blockchain
CN117076650B (en) Intelligent dialogue method, device, medium and equipment based on large language model
CN110232156B (en) Information recommendation method and device based on long text
CN112015569B (en) Message reminding processing method and device
CN110245136B (en) Data retrieval method, device, equipment and storage equipment
CN110516918B (en) Risk identification method and risk identification device
CN115905266B (en) Processing method of graph structure data and storage engine for graph structure data
CN115221523B (en) Data processing method, device and equipment
CN113220187B (en) Micro banking business interaction method and related equipment
CN113176988B (en) Data recording method and device
CN114969266A (en) Bill processing method and device
CN117035695B (en) Information early warning method and device, readable storage medium and electronic equipment
CN108804603B (en) Man-machine written dialogue method and system, server and medium
CN115757302B (en) Data analysis method, device, equipment and storage medium
CN113312484B (en) Object tag processing method and device
CN117931672A (en) Query processing method and device applied to code change
CN109242478B (en) Password red packet creating method and device
CN114143286B (en) Method and device for positioning target object and electronic equipment
CN115994214A (en) Text recommendation method and device
CN116595969A (en) Text generation method and device, storage medium and electronic equipment
CN116843181A (en) Risk identification method and risk identification device
CN118468842A (en) Trusted policy generation method and device

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