A file recording method, system, terminal and medium facilitating file searching

By recording file operation records and information, the system infers file recommendation information and displays it on the human-computer interaction interface, solving the problem of low file search efficiency and achieving intuitive file location display and precise file management.

CN116467260BActive Publication Date: 2025-12-16INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310331256.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2025-12-16
Estimated Expiration
2043-03-30

AI Technical Summary

Technical Problem

Existing technologies are inefficient in the process of searching for files, especially frequently used files, and the accuracy of search tools is insufficient, resulting in wasted time.

Method used

By recording file operation records and information, the system infers recommended file information and directly displays the file location on the human-computer interaction interface, thereby improving file search efficiency.

Benefits of technology

Users can directly see the file location on the human-computer interaction interface, reducing the steps of searching the path and improving the efficiency and accuracy of file search.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116467260B_ABST
    Figure CN116467260B_ABST
Patent Text Reader

Abstract

The application discloses the field of file record, and particularly discloses a file record method, system, terminal and medium convenient for file searching, which responds to the operation file, records the operation record of opening and closing the file and the file information of the operated file, infers the file recommendation information of each time period of the day according to the operation record and the file information, and displays the file recommendation information and the position information of the recommended file on the man-machine interactive interface.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of file recording, and in particular to a file recording method, system, terminal and medium facilitating file searching. BACKGROUND

[0002] In people's daily life and work, no matter what profession is engaged in, a large number of computers need to be used. In the process of using the computer, files need to be frequently searched and opened. There are often such scenes that when some files are urgently needed, the files cannot be found in a short time. Although the operating system itself has a search tool, the files cannot be accurately found due to inaccurate search words, or the search is cancelled because of too long waiting time. A lot of time is spent on searching in work, and how to quickly obtain the required files becomes a problem.

[0003] A file searching method is disclosed in the related art. First, an index file is created, the file type of a first cache file is obtained, and the index directory corresponding to the first cache file is determined in the index file according to the file type of the first cache file. The indication identifier corresponding to the first cache file is obtained. The file name corresponding to the first cache file is obtained, and the file name corresponding to the first cache file and the indication identifier corresponding to the first cache file are stored in the index directory in the form of a key-value pair. When searching for a file, the file type corresponding to the file to be searched is obtained, the index directory corresponding to the file is determined in the index file according to the file type, the file name corresponding to the file is obtained, and the key-value pair corresponding to the file name is searched in the index directory according to the file name. The indication identifier corresponding to the file name is determined according to the key-value pair, the cache path of the file is determined according to the indication identifier, and the file is searched according to the cache path of the file.

[0004] It can be seen that the related art first determines the index directory according to the file type, then finds the path of the file by using the index directory, and then finds the file according to the path. This method cannot directly display the file location and still consumes some time to search, especially for frequently used files. SUMMARY

[0005] To solve the above problems, the present application provides a file recording method, system, terminal and medium facilitating file searching, which screens target files according to file operation records, and directly displays the location information of the target files on a human-computer interaction interface, thereby improving the searching efficiency of the target files.

[0006] In a first aspect, the technical solution of the present application provides a file recording method facilitating file searching, including the following steps:

[0007] In response to an operation on a file, operation records of opening and closing the file and file information of the operated file are recorded;

[0008] inference of file recommendation information of each time period of the day according to the operation record and the file information;

[0009] displaying the file recommendation information and the location information of the recommended file on the man-machine interactive interface.

[0010] In an optional embodiment, in response to the operation of the file, the following steps are further included:

[0011] creating a user table; the record fields in the user table include user identification, user name, maximum storage days of operation record and maximum number of file recommendation;

[0012] detecting the current login user, generating an operation record table, a file information table and a file recommendation table of the current login user; the operation record table is used for recording the operation record of opening and closing the file, the file information table is used for recording the file information of the operated file, and the file recommendation table is used for recording the inferred file recommendation information;

[0013] recording the user name of the current login user to the user name field of the user table, and generating the user identification and recording to the user identification field of the user table;

[0014] entering the default maximum storage days of operation record and the maximum number of file recommendation in the user table.

[0015] In an optional embodiment, the record fields of the operation record table include operation number, file number, file opening time, file closing time and use duration field.

[0016] The record fields of the file information table include file number, file name, directory depth, last use time, total use duration, total use times, suffix, type, recommendation score, first associated file, association probability of the first associated file, second associated file and association probability of the second associated file.

[0017] The record fields of the file recommendation table include time period division of the day and file recommendation information of each time period.

[0018] In an optional embodiment, in response to the operation of the file, the operation record of opening and closing the file and the file information of the operated file are recorded, and specifically include:

[0019] in response to the opening file operation, generating a number in the file information table, and entering the file name, directory depth, suffix, type of the current opened file into the file information table; at the same time, generating an operation number in the operation record table, and recording the file number and file opening time to the operation record table;

[0020] In response to the closing file operation, the corresponding record field of the current closed file in the operation record table is found, the file closing time and the use duration of the file are recorded, the closing time of the current closed file is recorded in the last use time field in the file information table, the use duration of this time is accumulated and recorded in the total use duration, and the total use times are increased by one and recorded in the total use times field.

[0021] In an optional embodiment, the file recommendation information of each time period of the day is calculated according to the operation record and the file information, specifically including:

[0022] Step 1, the step of invalid record deletion;

[0023] (1) the file closing time of each record in the operation record table is obtained;

[0024] (2) the days from the file closing time to the current time are calculated and recorded as t;

[0025] (3) whether t > d is judged, if yes, the corresponding operation record is deleted, and according to the file number and the file use duration in the deleted operation record, the total use duration in the file information table is reduced by the file use duration to obtain a new total use duration, and the total use times in the file information table are updated;

[0026] Step 2, the step of counting the attribute recommendation score of each file in the file information table;

[0027] (1) the file attributes of each file are counted, including the total use times, the total use duration, the last opening time and the directory depth;

[0028] (2) according to the relationship between the file maximum number recorded in the user table and the file attributes, the attribute recommendation score of each file is obtained;

[0029] Step 3, the calculation step of the total recommendation score of the file;

[0030] (1) the initial total recommendation score of file A is recorded as f A , the weight of the total use times of the file is W1, the weight of the total use duration is W2, the weight of the last opening time is W3, and the weight of the directory depth is W4, then the total recommendation score of file A is:

[0031]

[0032] Wherein, a is the total use times recommendation score of the file, b is the total use duration recommendation score, c is the last opening time recommendation score, and d is the directory depth recommendation score;

[0033] (2) In the operation record table, query the first h and the last h operation records of file A, set the number of times file A appears in the operation record table as x, and the number of times file Z appears in the first h and the last h operation records of file A as y, then the association probability of file Z relative to file A is p Z =y / x; wherein, if the number of times file Z appears in the first h and the last h operation records of file A is one or more times, y is recorded as 1, and if it does not appear, y is recorded as 0;

[0034] Calculate the association probability of all associated files of file A relative to file A;

[0035] According to the association probability of each associated file, screen out the first associated file and the second associated file of file A;

[0036] Record the first associated file and its association probability, and the second management file and its association probability to the corresponding fields in the file information table;

[0037] Wherein, the first associated file and the second associated file meet the following conditions: set file i as the first associated file of file A, file j as the second associated file of file A, and Г(p k ) as the association probability set of other files k relative to file A except file i and file j, then the association probability satisfies p i >p j >l, wherein

[0038] (3) The step of recalculating the total recommendation score of file according to the associated file and its association probability;

[0039] Set the final total recommendation score of file A as m A , and the number of times file A appears as an associated file of other files as q, set the file in which file A appears in the associated file as a related file, and the initial total recommendation score of the rth related file as f r , and the association probability of the associated file A of the rth related file as p r , then m

[0040]

[0041] Update the final total recommendation score of file A as m A to the corresponding field in the file information table;

[0042] Step 4, the step of inferring the file recommendation information of each time period of the day;

[0043] Divide a day into multiple time periods, set the probability of file A in T time period as u A , and the total use time length of file A as C A, the start time of the vth operation record of file A is S v , the end time is E v , and the length of the T period is t v , then

[0044] wherein, when S v <T and E v >T, t v =E v -T,

[0045] when S v <(T+1) and E v <(T+1), t v =T+1-S v ,

[0046] when S v <T and E v >(T+1), t v =1,

[0047] when S v >T and E V <(T+1), t v =E V -S v ,

[0048] and t v =0 under other conditions.

[0049] The recommended score g A of file A in the T period can be obtained as follows: g A =m A +f A *u A .

[0050] The file numbers are written into the file recommendation information field of the corresponding time period of the file recommendation table in the order of the calculated g A from large to small.

[0051] In an optional embodiment, step 2 specifically comprises:

[0052] The total file usage times of all files in the file information table are counted and sorted in the order from more to less, and the sorting is numbered from 1. The number of file A is a. If a

[0053] The total use time length of all files in the file information table is counted, sorted in descending order, numbered from 1, and the number of file A is b; if b < n, the total use time length recommendation score of file A is n-b; if b >= n, the total use time length recommendation score of file A is 0;

[0054] The last opening time of all files in the file information table is counted, sorted in descending order, numbered from 1, and the number of file A is c; if c < n, the last opening time recommendation score of file A is n-c; if c >= n, the last opening time recommendation score of file A is 0;

[0055] The directory depth of all files in the file information table is counted, sorted in descending order, numbered from 1, and the number of file A is d; if d < n, the directory depth recommendation score of file A is n-d; if d >= n, the directory depth recommendation score of file A is 0;

[0056] Wherein, n is the maximum number of file recommendations recorded in the user table.

[0057] In an optional embodiment, the file recommendation information and the location information of the recommended file are displayed on the human-computer interaction interface, specifically including:

[0058] According to the time period in which the current operating system time is located, the file recommendation order is read from the file recommendation table and displayed on the human-computer interaction interface;

[0059] The name, directory and suffix of the file are displayed on the human-computer interaction interface according to the file recommendation order.

[0060] In a second aspect, the technical solution of the present application provides a file recording system for facilitating file searching, comprising,

[0061] The file operation information recording module: in response to the operation of the file, records the operation record of opening and closing the file and the file information of the operated file;

[0062] The file recommendation information inference module: infers the file recommendation information of each time period of the day according to the operation record and the file information;

[0063] The file recommendation information display module: displays the file recommendation information and the location information of the recommended file on the human-computer interaction interface.

[0064] In a third aspect, the technical solution of the present application provides a terminal, comprising:

[0065] The memory is used to store the file recording program for facilitating file searching;

[0066] A processor is configured to execute the file recording program to implement the steps of the file recording method.

[0067] In a fourth aspect, the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a file recording program for facilitating file searching, and the file recording program is configured to implement the steps of the file recording method for facilitating file searching when executed by a processor.

[0068] The file recording method, device, terminal and medium provided by the present application have the following advantages: the operation record and the file information of the file are recorded, the file recommendation information is inferred according to the operation record and the file information, the file recommendation information contains the position information of the recommended file, and the file recommendation information is directly displayed on the human-computer interaction interface, so that the user can intuitively see the directory position of the recommended file on the human-computer interaction interface, and the file storage path does not need to be searched again, the searching efficiency of the target file (i.e., the recommended file) is greatly improved, the recommendation is more accurate according to the difference processing of the operation records of each period, and the practicability is improved. BRIEF DESCRIPTION OF DRAWINGS

[0069] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.

[0070] Figure 1 FIG. 1 is a schematic diagram of the principle architecture of the file recording method for facilitating file searching provided by the present application.

[0071] Figure 2 FIG. 2 is a flowchart of the file recording method for facilitating file searching provided by the present application.

[0072] Figure 3 FIG. 3 is a schematic diagram of the principle architecture of the file recording method for facilitating file searching provided by the present application.

[0073] Figure 4 FIG. 4 is a flowchart of the file recording method for facilitating file searching provided by the present application.

[0074] Figure 5 FIG. 5 is a schematic block diagram of the file recording system structure for facilitating file searching provided by the present application.

[0075] Figure 6It is a structure schematic view of a terminal provided by an embodiment of the present application. DETAILED DESCRIPTION

[0076] In order to make the personnel in the technical field better understand the scheme of the present application, the present application is further described in detail below in combination with the drawings and specific embodiments. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by the person of ordinary skill in the art without making creative labor belong to the protection scope of the present application.

[0077] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application.

[0078] In order to facilitate understanding, the principle of the method is described first. Figure 1 It is a principle architecture schematic view of a file recording method for facilitating file searching provided by the present application. There are multiple files on a terminal device. When opening and closing operations are performed on the files, the operation records of opening and closing the files are recorded, and the file information of the files, such as the use duration and the use frequency, is recorded. Then, some recommended files are inferred by comprehensively considering the operation rules and the file information. These recommended files are the files that the user may use. The information of these files, including the position information, is displayed on a human-computer interaction interface. The user can directly view the positions of these files on the human-computer interaction interface, without the need to search again, thereby greatly improving the efficiency of finding the files.

[0079] Figure 2 It is a flowchart schematic view of a file recording method for facilitating file searching provided by an embodiment of the present application, Figure 2 The execution subject can be a file recording system for facilitating file searching. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0080] As Figure 2 shown, the method comprises the following steps.

[0081] S1, in response to the operation of the file, recording the operation records of opening and closing the file and the file information of the operated file.

[0082] When a user operates a file, the process of operating the file is detected, and the operation record is recorded. The operation record can be opening the file or closing the file. Of course, the time of the operation is also recorded, and the file information of the operated file, such as the file name, the use frequency, and the use duration, is also recorded.

[0083] S2, inferring file recommendation information of each time period of the day according to the operation record and the file information.

[0084] The time of the day is divided into multiple time periods, for example, 1 hour as a time period, and the recommended file of each time period is inferred according to all operation records and file information before the current time, that is, the file most likely to be used in each time period.

[0085] S3, displaying the file recommendation information and the position information of the recommended file on the man-machine interactive interface.

[0086] After inferring the file recommendation information, the file recommendation information is displayed on the man-machine interactive interface, and the position information of the recommended file is displayed on the man-machine interactive interface, so that the user can directly and intuitively see the directory of the file on the man-machine interactive interface without further searching.

[0087] The file record method provided by the embodiment is convenient for file searching, records operation records and file information, and then infers file recommendation information according to the operation records and the file information, the file recommendation information contains position information of the recommended file, and then the file recommendation information is directly displayed on the man-machine interactive interface, so that the user can intuitively see the directory position of the recommended file on the man-machine interactive interface without further searching for a file storage path, which greatly improves the searching efficiency of the target file (that is, the recommended file), and makes the recommendation more accurate and improves the practicability through differential processing of the operation records of each time period.

[0088] Figure 3 It is a principle architecture schematic diagram of the file record method convenient for file searching provided by the embodiment, a user table is created, user information of a logged-in user is recorded in the user table, then an operation record table, a file information table and a file recommendation table are created for each user, the operation record is recorded in the operation record table, the file information of the operated file is recorded in the file information table, and the inferred file recommendation information is recorded in the file recommendation table, so as to facilitate information recording and viewing. Figure 4 It is a method flowchart schematic diagram, Figure 4 The execution subject can be a file record system convenient for file searching, and the order of steps in the flowchart can be changed according to different needs, and some steps can be omitted.

[0089] As shown in Figure 4 The method comprises the following steps.

[0090] S1, creating a user table.

[0091] The record fields in the user table include user identification, user name, maximum storage time of operation record and maximum number of file recommendations.

[0092] Wherein the user identification and the user name are used for the identity of the user, distinguishing each user. The maximum storage days of the operation record only refer to the operation record of the recent days, and the operation record before the days is not considered. The maximum recommended number of files refers to the recommended files of the number.

[0093] S2, detecting the current login user, and recording the user information into the user table.

[0094] The user name of the current login user is recorded into the user name field of the user table, and the user identification is recorded into the user identification field of the user table. The default maximum storage days of the operation record and the maximum recommended number of files are recorded into the user table.

[0095] Of course, the preset maximum storage days of the operation record and the maximum recommended number of files are recorded into the user table by default, and the user can modify the maximum storage days of the operation record and the maximum recommended number of files according to the need. For example, the default maximum days of the operation record d is 30 days, and the maximum recommended number of files n is 20.

[0096] S3, generating the operation record table, the file information table and the file recommendation table of the current login user.

[0097] The naming of the operation record table, the file information table and the file recommendation table can be the current login user as the beginning. For example, if the user name of the current login user is root, then the operation record table is root_operation, the file information table is root_file, and the file recommendation table is root_file_recommend. If the system is switched to log in as another user (for example, admin), then the operation record table, the file information table and the file recommendation table starting with admin are created again.

[0098] It can be understood that when a user logs in, after detecting the login information, the operation record table, the file information table and the file recommendation table of the current login user can be created first, and then the user information in the user table is recorded. The execution sequence in the specific embodiment does not affect the implementation of the present application.

[0099] In an implementable embodiment, the record field of the operation record table includes: operation number, file number, file opening time, file closing time, and use duration field.

[0100] The record field of the file information table includes: file number, file name, directory depth, last use time, total use duration, total use times, suffix name, type, recommended score, first associated file, association probability of the first associated file, second associated file, and association probability of the second associated file. Of course, the MD5 field of the file can also be included. The type of the file refers to document, video, music, picture and program, etc. The directory depth refers to the directory hierarchy of the file.

[0101] The record field of the file recommendation table contains time period division of the day and file recommendation information of each time period. For example, each time period of 0, 1, 2, 3…23 is taken as a table header field, in which 0 represents the time period between 0 o'clock and 1 o'clock, 1 represents the time period between 1 o'clock and 2 o'clock, and so on, and 23 represents the time period between 23 o'clock and 24 o'clock.

[0102] The above is the initial configuration stage, and then enters the information recording and calculation stage.

[0103] S4, in response to the operation of the file, records the operation record of opening and closing the file and the file information of the operated file.

[0104] The operation on the file includes two aspects of opening and closing.

[0105] S4.1, in response to the operation of opening the file, generates a number in the file information table, and records the file name, directory depth, suffix name and type of the current opened file in the file information table; at the same time, generates an operation number in the operation record table, and records the file number and file opening time in the operation record table.

[0106] S4.2, in response to the operation of closing the file, finds the corresponding record field of the current closed file in the operation record table, and records the file closing time and use time of the file; at the same time, records the closing time of the current closed file in the last use time field in the file information table, accumulates and records the use time of this time in the total use time, and increases the total use times by one and records in the total use times field.

[0107] S5, calculates the file recommendation information of each time period of the day according to the operation record and the file information.

[0108] S5.1, deletes invalid records based on the maximum number d of operation records recorded in the user table.

[0109] First, detect the operation record table of the user, obtain the file closing time of each record in the operation record table, calculate the number t of days from the file closing time of each record to the current time, judge whether t>d, if yes, delete the corresponding operation record, until all records satisfy t≤d.

[0110] When deleting the operation record in the operation record table, the total use time in the file information table is updated according to the file number and the file use time in the deleted operation record. The file information in the file information table is found according to the file number, and then the total use time of the corresponding file in the file information table is updated according to the file use time in the operation record. The total use time of the corresponding file in the file information table is updated once for each deleted operation record, and the total use time of the corresponding file in the file information table is reduced once for each deleted operation record.

[0111] S5.2, statistics of each file attribute recommendation score in the file information table.

[0112] First, the file attributes of each file are counted, and then the recommendation score of each file attribute of each file is obtained according to the relationship between the maximum number of files recorded in the user table and the file attributes. The file attributes include the total use time, the total use time, the last opening time, and the directory depth.

[0113] In an optional embodiment, the recommendation score is calculated as follows. n is the maximum number of files recorded in the user table.

[0114] 1) Count the total use time of all files in the file information table, and sort them in descending order. Number the sorting from 1, and set the number of file A as a. If a < n, the file total use time recommendation score of file A is n-a, if a ≥ n, the file total use time recommendation score of file A is 0.

[0115] 2) Count the total use time of all files in the file information table, and sort them in descending order. Number the sorting from 1, and set the number of file A as b. If b < n, the total use time recommendation score of file A is n-b, if b ≥ n, the total use time recommendation score of file A is 0.

[0116] 3) Count the last opening time of all files in the file information table, and sort them in descending order. Number the sorting from 1, and set the number of file A as c. If c < n, the last opening time recommendation score of file A is n-c, if c ≥ n, the last opening time recommendation score of file A is 0.

[0117] 4) Count the directory depth of all files in the file information table, and sort them in descending order. Number the sorting from 1, and set the number of file A as d. If d < n, the directory depth recommendation score of file A is n-d, if d ≥ n, the directory depth recommendation score of file A is 0.

[0118] S5.3, calculate the initial recommendation score of file A.

[0119] Let the initial total recommendation score of file A be f A , the weight of the total number of uses of the file be W1, the weight of the total use time be W2, the weight of the last opening time be W3, and the weight of the directory depth be W4. Then the total recommendation score of file A is:

[0120]

[0121] Wherein a is the total number of uses of the file recommendation score, b is the total use time recommendation score, c is the last opening time recommendation score, and d is the directory depth recommendation score.

[0122] S5.4, according to the operation record of file A, find the associated file of file A.

[0123] In the operation record table, query the first h and the last h operation records of file A. Let the number of times file A appears in the operation record table be x, and the number of times file Z appears in the first and last h operation records of file A be y. Then the association probability of file Z relative to file A is p z =y / x; wherein if file Z appears once or more times in the first and last h operation records of file A, y is recorded as 1, and if it does not appear, y is recorded as 0, ensuring that y≤x.

[0124] Calculate the association probability of all associated files of file A with file A. According to the association probability of each associated file, filter out the first associated file and the second associated file of file A. Record the first associated file and its association probability, and the second management file and its association probability to the corresponding field in the file information table.

[0125] The first associated file and the second associated file meet the following conditions: let file i be the first associated file of file A, file j be the second associated file of file A, and Г(p k ) be the set of association probabilities of other files k to file A except file i and file j. Then the association probability satisfies p i >p j >l, wherein

[0126] S5.5, according to the associated file and its association probability, recalculate the total recommendation score of the file.

[0127] Let the final total recommendation score of file A be m A , the number of times file A appears as an associated file of other files be q, and the file in which file A appears in the associated file be the relevant file. Let the initial total recommendation score of the rth relevant file be f r , and the association probability of the associated file A of the rth relevant file be pr , then the final total recommendation score of file A is m

[0128]

[0129] The final total recommendation score of file A is m A The recommendation score in the file information table is updated.

[0130] S5.6, the file recommendation information of each time period in the day is inferred.

[0131] First, the duration of file A appearing in each time period is obtained, and the probability of file A appearing in each time period is calculated, and the recommendation score of file A in each time period is obtained according to the total duration, probability and recommendation score, and the file number is recorded in each time period of the file recommendation table according to the recommendation score.

[0132] Specifically, a day is divided into multiple time periods, and the probability of file A being in T time period is u A , the total use duration of file A is C A , the start time of the vth operation record of file A is S v , the closing time is E v , and the duration in T time period is t v , then

[0133] When S v <T and E v >T, t v =E v -T,

[0134] When S v <(T+1) and E v <(T+1), t v =T+1-S v ,

[0135] When S v <T and E v >(T+1), t v =1,

[0136] When S v >T and E V <(T+1), t v =E V -S v ,

[0137] Other conditions, t v =0.

[0138] Further, the recommendation score g A of file A in T (0≤T≤23) time period is: g A= m A + f A * u A .

[0139] The file numbers are written into the file recommendation information field of the corresponding time period of the file recommendation table in the order of the calculated g A size from large to small.

[0140] S6, the file recommendation information and the location information of the recommended file are displayed on the human-computer interaction interface.

[0141] According to the time period in which the current operating system time is located, the file recommendation order is read from the file recommendation table and displayed on the human-computer interaction interface; at the same time, the name, directory and suffix of the file are displayed on the human-computer interaction interface according to the file recommendation order.

[0142] In an optional embodiment, the human-computer interaction interface supports filtering files by suffix and file type. The human-computer interaction interface also provides settings for the maximum storage time of operation records and the maximum number of recommended files, which can be modified by the user. When the user modifies any of the two configurations, the probability-related information in the file information table will be emptied and recalculated according to the user's settings.

[0143] The file record method provided by the embodiment is convenient for file searching, can be implemented based on a desktop operating system, and constructs various parameter models of file operations based on users to ensure accurate analysis of frequently used files. The calculation based on time periods ensures different processing of each time period, making the recommendation more accurate. The directory depth and frequency are also considered to solve the real pain points of users searching for files. Associated recommendations are added to broaden the search dimension. Through interface display, custom configuration is supported to make user operation and use more convenient. The method comprehensively considers the opening and closing time period of the file, the file usage time, the file usage frequency, the directory depth of the file, the last usage time of the file, and the associated files of the file operation, and other factors affecting file recommendation, to obtain an accurate file recommendation result.

[0144] The above describes an embodiment of a file record method convenient for file searching. Based on the file record method convenient for file searching described above, the embodiment of the application further provides a file record system convenient for file searching corresponding to the method.

[0145] Figure 5is a file record system structure schematic block diagram provided by an embodiment of the present application, the system 500 can be divided into multiple function modules according to the function executed by the system 500, including: model creating module 510, file operation information recording module 520, file recommendation information inferring module 530, file recommendation information display module 540. The module referred to by the present application refers to a series of computer program segments capable of being executed by at least one processor and capable of completing fixed functions, which are stored in the memory.

[0146] The model creating module 510: creates a user table, detects the current login user, generates the operation record table, the file information table and the file recommendation table of the current login user, records the user name of the current login user to the user name field of the user table, generates the user identification and records to the user identification field of the user table, and enters the default operation record maximum storage days and the maximum number of file recommendations in the user table. The record field in the user table contains user identification, user name, operation record maximum storage days and maximum number of file recommendations. The operation record table is used for recording the operation record of opening and closing the file, the file information table is used for recording the file information of the operated file, and the file recommendation table is used for recording the inferred file recommendation information.

[0147] The file operation information recording module 520: in response to operating the file, records the operation record of opening and closing the file and the file information of the operated file.

[0148] The file recommendation information inferring module 530: infers the file recommendation information of each time period of the day according to the operation record and the file information.

[0149] The file recommendation information display module 540: displays the file recommendation information and the position information of the recommended file on the man-machine interface.

[0150] The file record system for facilitating file searching of the present embodiment is used to implement the aforementioned file record method for facilitating file searching, so the specific embodiments in the system can be seen in the embodiment part of the file record method for facilitating file searching in the foregoing, and therefore the specific embodiments can be referred to the description of the corresponding embodiment part, which will not be introduced here.

[0151] In addition, since the file record system for facilitating file searching of the present embodiment is used to implement the aforementioned file record method for facilitating file searching, its role corresponds to the role of the above method, which will not be described here.

[0152] Figure 6A structural schematic diagram of a terminal 600 provided by an embodiment of the present application includes a processor 610, a memory 620 and a communication unit 630. The processor 610 is configured to implement the following steps in a file record program for facilitating file searching stored in the memory 620:

[0153] In response to the operation on the file, record the operation record of opening and closing the file and the file information of the operated file;

[0154] Infer the file recommendation information of each time period of the day according to the operation record and the file information;

[0155] Display the file recommendation information and the location information of the recommended file on a human-computer interaction interface.

[0156] The present application records the operation record of the file and the file information, and then infers the file recommendation information according to the operation record and the file information. The file recommendation information contains the location information of the recommended file. Then the file recommendation information is directly displayed on the human-computer interaction interface. The user can intuitively see the directory location of the recommended file on the human-computer interaction interface without searching for the file storage path, etc. The searching efficiency of the target file (i.e. the recommended file) is greatly improved. At the same time, the difference processing according to the operation record of each time period makes the recommendation more accurate and improves the practicability.

[0157] The terminal 600 includes the processor 610, the memory 620 and the communication unit 630. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the server shown in the figure does not constitute a limitation on the present application. It can be a bus structure or a star structure. It can also include more or fewer components than shown in the figure, or combine some components, or have different component arrangements.

[0158] The memory 620 can be used to store the execution instructions of the processor 610. The memory 620 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 620 are executed by the processor 610, the terminal 600 can execute part or all of the steps in the following method embodiments.

[0159] The processor 610 is a control center of the storage terminal, connects various parts of the entire electronic terminal by using various interfaces and lines, and executes various functions of the electronic terminal and / or processes data by running or executing software programs and / or modules stored in the memory 620 and calling data stored in the memory. The processor can be composed of an integrated circuit (IC), for example, can be composed of a single packaged IC, or can be composed of multiple packaged ICs connected together. For example, the processor 610 can only include a central processing unit (CPU). In the embodiments of the application, the CPU can be a single operation core or can include multiple operation cores.

[0160] The communication unit 630 is used to establish a communication channel, so that the storage terminal can communicate with other terminals. User data sent by other terminals is received or user data is sent to other terminals.

[0161] The application also provides a computer storage medium, which can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0162] The computer storage medium stores a file record program facilitating file searching, and the file record program, when executed by the processor, implements the following steps:

[0163] In response to the operation of the file, an operation record of opening and closing the file and file information of the operated file are recorded;

[0164] File recommendation information of each time period of the day is inferred according to the operation record and the file information;

[0165] The file recommendation information and position information of the recommended file are displayed on a human-computer interaction interface.

[0166] The application records the operation record of the file and the file information, and then infers the file recommendation information according to the operation record and the file information, the file recommendation information contains the position information of the recommended file, and then the file recommendation information is directly displayed on the human-computer interaction interface, so that the user can intuitively see the directory position of the recommended file on the human-computer interaction interface without searching for the file storage path, etc., which greatly improves the searching efficiency of the target file (i.e. the recommended file), and the difference processing according to the operation record of each time period makes the recommendation more accurate and improves the practicability.

[0167] Those skilled in the art can clearly understand that the technical solutions in the embodiments of the present application can be implemented by means of software plus necessary universal hardware platforms. Based on such an understanding, the technical solutions in the embodiments of the present application can be embodied in a form of a software product, which can be stored in a storage medium such as a USB flash disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, and includes a plurality of instructions to cause a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, or the like) to execute all or part of the steps of the methods described in the embodiments of the present application.

[0168] In several embodiments provided by the present application, it should be understood that the disclosed system, device and method can be implemented in other manners. For example, the described device embodiments are merely schematic, and the division of units is merely a logical function division, and there can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different units, or the among different units, can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.

[0169] The units described as separated components can or can not be physically separated, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed on a plurality of network units. In actual implementation, some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments.

[0170] In addition, each function unit in the embodiments of the present application can be integrated in a processing unit, or each unit can exist physically as a separate unit, or two or more units can be integrated in one unit.

[0171] The above disclosure is merely preferred embodiments of the present application, but the present application is not limited thereto. Any modification without creative work, and several improvements and decorations made without departing from the principles of the present application, should fall within the protection scope of the present application.

Claims

1. A file recording method for facilitating file search, characterized by, The method comprises the following steps: In response to the operation file, record the operation record of opening and closing the file and the file information of the operated file; Infer the file recommendation information of each time period of the day according to the operation record and the file information; Display the file recommendation information and the location information of the recommended file on the man-machine interaction interface; According to the operation record and the file information, calculate the file recommendation information of each time period of the day, specifically including: Step 1, invalid record deletion step; Step 2, step of counting each attribute recommendation score of each file in the file information table; Step 3, file total recommendation score calculation step; Step 3, file total recommendation score calculation step includes; (1) the initial total recommended score of the file A is recorded as , the weight of the total use times of the file is , the weight of the total use time length is , the weight of the last opening time is , and the weight of the directory depth is , so that the initial total recommended score of the file A is obtained as ; Wherein, a is the total use frequency recommendation score, b is the total use time recommendation score, c is the last opening time recommendation score, d is the directory depth recommendation score, and n is the maximum number of file recommendations recorded in the user table; (2) Calculate the association probability of all associated files of file A and file A; (3) Recalculate the file total recommendation score according to the associated files and the association probability thereof; Let the final total recommended score of file A be , the number of times file A appears as an associated file of other files be q, let the file in which file A appears be a relevant file, the initial total recommended score of the rth relevant file be , and the association probability of file A in the rth relevant file be , then the final total recommended score of file A can be obtained as ; The final total recommendation score of file A is updating the recommendation score field in the file information table; Step 4, step of inferring the file recommendation information of each time period of the day; Divide a day into multiple time periods, set the probability of file A in T time period as , the total usage time length of file A as , the opening time of the vth operation record of file A as , the closing time as , the time length in T time period as , then ; wherein when , , When time, , When the condition is met , , time, , Other conditions when, ; Further, a recommended score of file A at T period can be obtained is: ; The file numbers are written in the file recommendation information field of the corresponding time period of the file recommendation table in the order of the calculated size from large to small.

2. The file recording method for facilitating file search according to claim 1, wherein, In response to the operation file, the following steps are further included: Create a user table; the record fields in the user table include user identification, user name, maximum storage time of operation record and maximum number of file recommendations; Detect the current login user, generate the operation record table, file information table and file recommendation table of the current login user; wherein the operation record table is used to record the operation record of opening and closing the file, the file information table is used to record the file information of the operated file, and the file recommendation table is used to record the inferred file recommendation information; Record the user name of the current login user to the user name field of the user table, and generate the user identification record to the user identification field of the user table; Enter the default maximum storage time of operation record and the maximum number of file recommendations in the user table.

3. The file recording method for facilitating file search according to claim 2, wherein, The record fields of the operation record table include: operation number, file number, file opening time, file closing time, use time field; The record fields of the file information table include: file number, file name, directory depth, last use time, total use time, total use frequency, suffix, type, recommendation score, first associated file, association probability of the first associated file, second associated file, association probability of the second associated file; The record fields of the file recommendation table include: time period division of the day and file recommendation information of each time period.

4. The file recording method for facilitating file search according to Claim 3, wherein, In response to the operation file, record the operation record of opening and closing the file and the file information of the operated file, specifically including: In response to the opening file operation, generate the number in the file information table, and record the file name, directory depth, suffix, type of the current opened file in the file information table; at the same time, generate the operation number in the operation record table, and record the file number and file opening time to the operation record table; In response to the closing file operation, the corresponding record field of the current closed file is found in the operation record table, the file closing time and the use duration of the file are recorded, and meanwhile, the closing time of the current closed file is recorded in the last use time field in the file information table, the use duration of this time is accumulated and recorded in the total use duration, and the total use times are increased and recorded in the total use times field.

5. The file recording method for facilitating file search according to Claim 4, wherein, According to the operation record and the file information, the file recommendation information of each time period of the day is calculated, specifically including: Step 1, the step of deleting invalid records; (1) obtaining the file closing time of each record in the operation record table; (2) calculating the days of the file closing time from the current, and recording as t; (3) judging whether t , if yes, deleting the corresponding operation record, and according to the file number and the file usage time length in the deleted operation record, subtracting the file usage time length from the total usage time length in the file information table to obtain a new total usage time length, and updating the total usage time in the file information table, wherein, is the default maximum number of operation records. Step 2, the step of counting the attribute recommendation score of each file in the file information table; (1) counting the file attributes of each file, including the total use times, the total use duration, the last opening time and the directory depth; (2) obtaining the attribute recommendation score of each file according to the relationship between the maximum number of files recorded in the user table and the file attributes; Step 3, the step of calculating the total file recommendation score; (1) the initial total recommended score of the file A is recorded as , the weight of the total use times of the file is , the weight of the total use time length is , the weight of the last opening time is , and the weight of the directory depth is , so that the initial total recommended score of the file A is obtained as ; Wherein, a is the total use times recommendation score, b is the total use duration recommendation score, c is the last opening time recommendation score, d is the directory depth recommendation score, and n is the maximum number of file recommendations recorded in the user table; (2) In the operation record table, the first h and the last h operation records of file A are queried, the number of times that file A appears in the operation record table is x, and the number of times that file Z appears in the first h and the last h operation records of file A is y, then the association probability of file Z relative to file A is ; wherein, if the number of times that file Z appears in the first h and the last h operation records of file A is one or more times, y is recorded as 1, and if file Z does not appear, y is recorded as 0; Calculating the association probability of all associated files of file A with file A; According to the association probability of each associated file, the first associated file and the second associated file of file A are screened out; The first associated file and its association probability, the second associated file and its association probability are recorded in the corresponding field in the file information table; Wherein, the first associated file and the second associated file satisfy the following conditions: let file i be the first associated file of file A, file j be the second associated file of file A, The association probability of other files k to file A is a set, and the association probability satisfies Wherein ; (3) the step of recalculating the total file recommendation score according to the associated file and its association probability; Let the final total recommended score of file A be , the number of times file A appears as an associated file of other files be q, let the file in which file A appears be a relevant file, the initial total recommended score of the rth relevant file be , and the association probability of file A of the rth relevant file be , then the final total recommended score of file A can be obtained as ; The final total recommendation score of file A is The recommendation score field in the file information table is updated.

6. The file recording method for facilitating file search according to Claim 5, wherein, Step 2 specifically includes: The total file usage times of all files in the statistical file information table are sorted in descending order, and the sorting is numbered from 1, and the number of file A is set as , if <n, the file total usage times recommendation score of file A is n- , if ≥n, the file total usage times recommendation score of file A is 0; Sort all the total usage time length of files in the statistical file information table in descending order, number the sorting from 1, and set the number of file A as , if <n, then the total usage time length recommendation score of file A is n- , if ≥n, then the total usage time length recommendation score of file A is 0; The last opening time of all files in the statistical file information table is sorted in order from recent to remote, and the sorting is numbered from 1, and the number of file A is set as , if <n, the last opening time recommendation score of file A is n- , if ≥n, the last opening time recommendation score of file A is 0; Sort all the directory depths of the files in the statistical file information table in descending order, number the sorting from 1, and set the number of the file A as , if <n, then the directory depth recommendation score of the file A is n- , if ≥n, then the directory depth recommendation score of the file A is 0; Wherein, n is the maximum number of file recommendations recorded in the user table.

7. The file recording method for facilitating file search according to Claim 6, wherein, The file recommendation information and the location information of the recommended file are displayed on the man-machine interaction interface, specifically including: According to the time period in which the current operating system time is located, the file recommendation order is read from the file recommendation table and displayed on the man-machine interaction interface; The name, directory and suffix of the file are displayed on the man-machine interaction interface according to the file recommendation order.

8. A file recording system for facilitating file search, characterized by, Including, File operation information recording module: in response to the operation file, the operation record of opening and closing the file and the file information of the operated file are recorded; File recommendation information inference module: according to the operation record and the file information, the file recommendation information of each time period of the day is inferred; File recommendation information display module: the file recommendation information and the location information of the recommended file are displayed on the man-machine interaction interface; According to the operation record and the file information, the file recommendation information of each time period of the day is calculated, specifically including: Step 1, the step of deleting invalid records; Step 2, the step of counting the attribute recommendation score of each file in the file information table; Step 3, the step of calculating the total file recommendation score; Step 3, the step of calculating the total file recommendation score includes; (1) the initial total recommended score of the file A is recorded as , the weight of the total use times of the file is , the weight of the total use time length is , the weight of the last opening time is , and the weight of the directory depth is , and the initial total recommended score of the file A is obtained as ; Wherein, a is the total use times recommendation score, b is the total use duration recommendation score, c is the last opening time recommendation score, d is the directory depth recommendation score, and n is the maximum number of file recommendations recorded in the user table; (2) calculating the association probability of all associated files of file A with file A; (3) recalculating the total recommendation score of files according to the associated files and the association probability thereof; Let the final total recommended score of file A be , the number of times file A appears as an associated file of other files be q, let the file in which file A appears be a relevant file, the initial total recommended score of the rth relevant file be , and the association probability of file A in the rth relevant file be , then the final total recommended score of file A can be obtained as ; The final total recommendation score of file A is updating the recommendation score field in the file information table; Step 4, inferring the file recommendation information of each time period of the day; Divide a day into multiple time periods, set the probability of file A in T time period as , the total use time length of file A as , the start time of the vth operation record of file A as , the closing time as , and the time length in T time period as , then ; wherein when satisfied, , When Time, , When the conditions are met , , time, , Other conditions when, ; Further, a recommended score of file A at T period can be obtained is: ; The file numbers are written in the file recommendation information field of the corresponding time period of the file recommendation table in the order of the calculated size from large to small.

9. A terminal, characterized by comprising: comprising: a memory for storing a file record program for facilitating file searching; a processor for executing the file record program for facilitating file searching to realize the steps of the file record method for facilitating file searching according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The readable storage medium has stored thereon a file record program for facilitating file searching, and the file record program for facilitating file searching, when executed by a processor, realizes the steps of the file record method for facilitating file searching according to any one of claims 1-7.

Citation Information

Patent Citations

  • File recommendation method, device, storage medium and intelligent terminal

    CN109240991A