CN116467260A - File recording method, system, terminal and medium convenient for file searching - Google Patents

File recording method, system, terminal and medium convenient for file searching Download PDF

Info

Publication number
CN116467260A
CN116467260A CN202310331256.XA CN202310331256A CN116467260A CN 116467260 A CN116467260 A CN 116467260A CN 202310331256 A CN202310331256 A CN 202310331256A CN 116467260 A CN116467260 A CN 116467260A
Authority
CN
China
Prior art keywords
file
recommendation
information
time
files
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310331256.XA
Other languages
Chinese (zh)
Inventor
刘程程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310331256.XA priority Critical patent/CN116467260A/en
Publication of CN116467260A publication Critical patent/CN116467260A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/156Query results presentation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to the field of file recording, and particularly discloses a file recording method, a system, a terminal and a medium which are convenient for file searching, wherein an operation record for opening and closing a file and file information of the operated file are recorded in response to the operation file; deducing file recommendation information of each time period of the day according to the operation record and the file information; and displaying the file recommendation information and the position information of the recommended file on a human-computer interaction interface. According to the method and the device, the user can intuitively see the directory position of the recommended file on the man-machine interaction interface, file storage paths and the like are not required to be searched, the searching efficiency of the target file (namely the recommended file) is greatly improved, meanwhile, difference processing is carried out according to operation records of each time period, the recommendation is more accurate, and the practicability is improved.

Description

File recording method, system, terminal and medium convenient for file searching
Technical Field
The invention belongs to the field of file recording, and particularly relates to a file recording method, a system, a terminal and a medium for facilitating file searching.
Background
In daily life work of people, a large amount of computers are needed to be used no matter what profession is being done. In using a computer, frequent searching and opening of files is required. There are often scenarios where a file cannot be found in a short time when it is necessary to find some file. Although the operating system itself has a search tool, the search word is not accurate enough, so that the file cannot be found accurately, or the search is cancelled because the search waiting time is too long. It takes a lot of time to find, and how to quickly obtain the required file becomes a problem.
The related art discloses a file searching method, firstly, an index file is created, the file type of a first cache file is obtained, and an index directory corresponding to the first cache file is determined in the index file according to the file type of the first cache file; acquiring an indication identifier corresponding to a first cache file; and acquiring a file name corresponding to the first cache file, and storing the file name corresponding to the first cache file and the indication identifier corresponding to the first cache file in the index directory in a key value pair mode. When searching a file, acquiring a file type corresponding to the file to be searched, and determining an index directory corresponding to the file in an index file according to the file type; acquiring a file name corresponding to the file, and searching a key value pair corresponding to the file name in the index directory according to the file name; determining an indication identifier corresponding to the file name according to the key value pair, and determining a cache path of the file according to the indication identifier; searching the file according to the cache path of the file.
It can be seen that the related technology is to determine the index directory according to the file type, then find the path of the file by using the index directory, and then find the file according to the path. This approach does not intuitively reveal the file location, and still takes some time to find, especially for some common files, which is less applicable.
Disclosure of Invention
In order to solve the problems, the invention provides a file recording method, a system, a terminal and a medium which are convenient for file searching, wherein a target file is screened out according to the operation record of the file, and the position information of the target file is directly displayed on a human-computer interaction interface, so that the searching efficiency of the target file is improved.
In a first aspect, the present invention provides a file recording method for facilitating file searching, including the following steps:
recording an operation record of opening and closing the file and file information of the operated file in response to the operation file;
deducing file recommendation information of each time period of the day according to the operation record and the file information;
and displaying the file recommendation information and the position information of the recommended file on a human-computer interaction interface.
In an alternative embodiment, before responding to the operation file, the method further comprises the following steps:
creating a user table; the record field in the user table comprises a user identifier, a user name, a maximum storage day of an operation record and a maximum recommended number of files;
detecting a current login user, and 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 operation records of opening and closing files, the file information table is used for recording file information of the operated files, and the file recommendation table is used for recording inferred file recommendation information;
Recording the user name of the current login user into a user name field of a user table, and generating a user identification record into a user identification field of the user table;
and recording the maximum storage days of the default operation records and the maximum recommended number of the files in the user table.
In an alternative embodiment, the record field of the operation record table includes: operation number, file opening time, file closing time, and long-time-to-use field;
the record field of the file information table contains: file number, file name, directory depth, last use time, total use times, suffix name, type, recommendation score, first association file, association probability of first association file, second association file, association probability of second association file;
the record field of the file recommendation table contains: time slot division of the day and file recommendation information of each time slot.
In an alternative embodiment, in response to the operation file, recording the operation record of opening and closing the file and the file information of the operated file, specifically including:
responding to the operation of opening the file, generating a number in a file information table, and inputting the file name, directory depth, suffix name and type of the current opened file into the file information table; meanwhile, generating an operation number in an operation record table, and recording the file number and the file opening time into the operation record table;
Responding to the file closing operation, searching corresponding record fields of the current closed file in an operation record table, and recording the file closing time and the using time of the file; and meanwhile, the closing time of the current closed file is recorded into a last using time field in a file information table, the total using time is accumulated and recorded in the current using time, and the total using times are increased and recorded into a total using times field.
In an alternative embodiment, the method calculates the file recommendation information of each time period of the day according to the operation record and the file information, and specifically includes:
step 1, a step of deleting invalid records;
(1) Acquiring the closing time of each recorded file in the operation record table;
(2) Calculating the current days of the file closing time distance, and marking as t;
(3) Judging whether t > d, if so, deleting the corresponding operation record, and simultaneously subtracting the file use time from the corresponding total use time in the file information table according to the file number and the file use time in the deleted operation record to obtain a new total use time, and updating the total use times in the file information table;
step 2, counting the recommended scores of each attribute of each file in the file information table;
(1) Counting file attributes of each file, wherein the file attributes comprise total use times, total use time length, last opening time and directory depth of the file;
(2) Obtaining the recommendation score of each file attribute of each file according to the relation between the maximum number of files and the file attributes recorded in the user table;
step 3, calculating total recommended score of the file;
(1) The initial total recommendation score of the record A is f A The weight of the total number of times of file use is W 1 The weight of the total using time length is W 2 The weight of the last opening time is W 3 The weight of the directory depth is W 4 The total recommendation score of the available file A is:
Wherein a is the total use times recommendation score of the file, b is the total use time recommendation score, c is the last opening time recommendation score, and d is the directory depth recommendation score;
(2) Inquiring operation records of the front h pieces and the rear h pieces of the file A in the operation record table, setting the frequency of occurrence of the file A in the operation record table as x, setting the frequency of occurrence of the file Z in the operation records of the front h pieces and the rear h pieces of the file A as y, and setting the association probability of the file Z relative to the file A as p Z =y/x; if the frequency of occurrence of the file Z in the operation records of the front and rear h pieces of the file A is one or more times, y is marked as 1, and if the file Z does not occur, y is marked as 0;
Calculating the association probability of all the associated files of the file A and the file A;
screening out a first associated file and a second associated file of the file A according to the associated probability of each associated file;
recording the first associated file and the associated probability thereof, the second management file and the associated probability thereof into corresponding fields in a file information table;
wherein the first association file and the second association 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, f (p k ) For the association probability set of the other files k except the file i and the file j to the file A, the association probability satisfies p i >p j >l, wherein
(3) A step of recalculating total recommendation scores of the files according to the associated files and the associated probabilities thereof;
let the final total recommendation score of File A be m A The occurrence number of the related files with the file A as other files is q, the file with the file A in the related files is set as the related file, and the r-th related file is set as the related fileThe initial total recommendation score of the file is f r The association probability of the association file A of the r-th related file is p r Then it can be obtained
The final total recommendation score of the file A is m A Updating the corresponding fields in the file information table;
step 4, deducing file recommendation information of each time slot of the day;
Dividing one day into a plurality of time periods, and setting the probability of the file A in the T time period as u A The total service time of the file A is C A The v-th operation record of the file A is started for S v Closing time E v The duration of the T period is T v Then
Wherein when S is satisfied v <T and E v >At T, T v =E v -T,
When S is v <(T+1) and E v <At (T+2), T v =T+1-S v ,
When meeting S v <T and E v >At (T+1), T v =1,
When S is v >T and E V <At (T+1), T v =E V -S v ,
Under other conditions, t v =0;
And further obtaining the recommendation score g of the file A in the T period A The method comprises the following steps: g A =m A +f A *u A
G obtained by calculating the file number A The order of the sizes is written into the file recommendation information fields of the corresponding time periods of the file recommendation table from the top to the bottom.
In an alternative embodiment, step 2 specifically includes:
counting the total use times of all files in a file information table, sequencing according to the sequence from more to less, numbering the sequencing from 1, setting the number of the file A as a, if a < n, recommending the total use times of the files of the file A as n-a, and if a is more than or equal to n, recommending the total use times of the files of the file A as 0;
counting total use time of all files in a file information table, sequencing according to the sequence from big to small, numbering the sequencing from 1, setting the number of the file A as b, if b is less than n, recommending the total use time of the file A as n-b, and if b is more than or equal to n, recommending the total use time of the file A as 0;
Counting the last opening time of all files in a file information table, sequencing according to the sequence from near to far, numbering the sequencing from 1, setting the number of the file A as c, if c is less than n, recommending the score of the last opening time of the file A as n-c, and if c is more than or equal to n, recommending the score of the last opening time of the file A as 0;
counting the directory depth of all files in the file information table, sequencing according to the sequence from big to small, numbering the sequencing from 1, setting the number of the file A as d, if d is less than n, the directory depth recommendation score of the file A is n-d, and if d is more than or equal to n, the directory depth recommendation score of the file A is 0;
and n is the maximum recommended number of the files recorded in the user table.
In an optional implementation manner, the file recommendation information and the location information of the recommended file are displayed on a man-machine interaction interface, which specifically includes:
reading file recommendation sequences from a file recommendation table according to the time period of the current operating system time and displaying the file recommendation sequences on a human-computer interaction interface;
and displaying the names, the catalogues and the suffix names of the files on the man-machine interaction interface according to the file recommendation sequence.
In a second aspect, the present invention provides a file recording system for facilitating file searching, including,
File operation information recording module: recording an operation record of opening and closing the file and file information of the operated file in response to the operation file;
a file recommendation information deducing module: deducing file recommendation information of each time period of the day according to the operation record and the file information;
file recommendation information display module: and displaying the file recommendation information and the position information of the recommended file on a human-computer interaction interface.
In a third aspect, a technical solution of the present invention provides a terminal, including:
the memory is used for storing a file record program which is convenient for file searching;
and the processor is used for realizing the file recording method for facilitating the file searching when executing the file recording program for facilitating the file searching.
In a fourth aspect, the present invention provides a computer readable storage medium, where a file recording program for facilitating file searching is stored, where the file recording program for facilitating file searching is executed by a processor to implement the steps of the file recording method for facilitating file searching according to any one of the above claims.
Compared with the prior art, the file recording method, device, terminal and medium convenient for file searching have the following beneficial effects: recording operation records and file information of the file, deducing file recommendation information according to the operation records and the file information, wherein the file recommendation information comprises position information of the recommended file, and then directly displaying the file recommendation information on a man-machine interaction interface, so that a user can intuitively see the directory position of the recommended file on the man-machine interaction interface without searching file storage paths and the like, the searching efficiency of a target file (namely the recommended file) is greatly improved, and meanwhile, difference processing is carried out according to the operation records of each period, so that the recommendation is more accurate, and the practicability is improved.
Drawings
For a clearer description of embodiments of the present application or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description that follow are only some embodiments of the present application, and that other drawings may be obtained from these drawings by a person of ordinary skill in the art without inventive effort.
Fig. 1 is a schematic diagram of a principle architecture of a file recording method for facilitating file searching according to the present invention.
Fig. 2 is a schematic flow chart of a file recording method for facilitating file searching according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a file recording method for facilitating file searching according to an embodiment of the present invention.
Fig. 4 is a schematic flow chart of a file recording method for facilitating file searching according to an embodiment of the present invention.
FIG. 5 is a schematic block diagram of a file recording system for facilitating file searching according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to provide a better understanding of the present application, those skilled in the art will now make further details of the present application with reference to the drawings and detailed description. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
For ease of understanding, the principles of the present method will first be described. Fig. 1 is a schematic diagram of a file recording method for facilitating file searching, in which a plurality of files are provided on a terminal device, when an opening and closing operation is performed on the files, operation records of the opening and closing files are recorded, file information of the files, such as use time, use times and the like, is recorded, then recommended files are deduced by comprehensively considering operation rules and file information, the recommended files are possibly used by users, information of the files, including position information, is displayed on a man-machine interaction interface, and the user can directly check the positions of the files on the man-machine interaction interface without searching, so that the efficiency of finding the files is greatly improved.
Fig. 2 is a schematic flow chart of a file recording method for facilitating file searching according to an embodiment of the present invention, where the execution body of fig. 2 may be a file recording system for facilitating file searching, and the order of steps in the flow chart may be changed according to different needs, and some may be omitted.
As shown in fig. 2, the method includes the following steps.
S1, responding to an operation file, and recording an operation record for opening and closing the file and file information of the operated file.
When a user operates a file, the progress of the operation file is detected, the operation record is recorded, which may be an opened file or a closed file, and of course, the operation time is recorded, and meanwhile, the file information of the operated file, such as the file name, the use times, the use duration and the like, is recorded.
S2, deducing file recommendation information of each time slot of the current day according to the operation record and the file information.
The time of day is divided into a plurality of time periods, for example, 1 hour as one time period, and recommended files for each time period, that is, files most likely to be used for each time period, are inferred from all operation records and file information before the current time.
And S3, displaying the file recommendation information and the position information of the recommended file on a human-computer interaction interface.
After the file recommendation information is deduced, the file recommendation information is displayed on a human-computer interaction interface, meanwhile, the position information of the file recommendation is displayed on the human-computer interaction interface, and a user can directly and intuitively see the directory where the file is located on the human-computer interaction interface without searching.
According to the file recording method convenient for file searching, the operation records and the file information of the files are recorded, the file recommendation information is deduced according to the operation records and the file information, the file recommendation information comprises the position information of the recommended files, then the file recommendation information is directly displayed on a human-computer interaction interface, a user can intuitively see the directory positions of the recommended files on the human-computer interaction interface without searching file storage paths and the like, searching efficiency of target files (namely the recommended files) is greatly improved, meanwhile, difference processing is carried out according to the operation records of each period, so that recommendation is more accurate, and practicability is improved.
Fig. 3 is a schematic diagram of a file recording method for facilitating file searching according to an embodiment of the present invention, in which a user table is created, user information of logged-in users 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, file information of the operated file is recorded in the file information table, and inferred file recommendation information is recorded in the file recommendation table, so that information recording and viewing are facilitated. FIG. 4 is a flow chart of the method, where the execution body of FIG. 4 may be a file recording system that facilitates file searching, and the order of steps in the flow chart may be changed and some may be omitted according to different needs.
As shown in fig. 4, the method includes the following steps.
S1, creating a user table.
The record field in the user table contains user identification, user name, maximum storage days of operation record and maximum recommended number of files.
The user identification and the user name are used for identifying the user, and the user identification and the user name are used for distinguishing the users. The maximum number of days of operation records refers only to the operation records of the last days, and the operation records before the days are not considered any more. The maximum recommended number of files refers to the recommended files of which the numbers are screened out.
S2, detecting the current login user, and inputting the user information into a user table.
Includes recording a user name of a currently logged-in user to a user name field of a user table and generating a user identification record to a user identification field of the user table. And recording the maximum storage days of the default operation records and the maximum recommended number of the files in the user table.
Of course, the default is that the preset maximum storage days of the operation records and the maximum recommended number of the files are recorded in the user table, and the user can also modify the maximum storage days of the operation records and the maximum recommended number of the files according to the needs. For example, the maximum number d of default operation records is 30 days, and the maximum recommended number n of files is 20.
And S3, generating an operation record table, a file information table and a file recommendation table of the current login user.
The naming of the operation record table, the file information table and the file recommendation table can be used as the beginning of the current login user, for example, the current login user name 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_record. If the system switches down to log in by other users (for example, admin), an operation record table, a file information table and a file recommendation table which start with admin are created again.
It can be understood that when a user logs in, after logging in information is detected, an operation record table, a file information table and a file recommendation table of the current logged in user can be created first, and then user information in the user table can be recorded. The order of execution in the specific embodiments does not affect the practice of the invention.
In one implementation, the record field of the operation record table includes: operation number, file open time, file close time, long-time-to-use field.
The record field of the file information table contains: file number, file name, directory depth, last use time, total use times, suffix name, type, recommendation score, first association file, association probability of first association file, second association file, association probability of second association file. Of course, the MD5 field of the file may also be included. Wherein the types of files refer to documents, videos, music, pictures, programs, and the like. Directory depth refers to the directory hierarchy of a file.
The record field of the file recommendation table contains: time slot division of the day and file recommendation information of each time slot. For example, each time period of 0, 1, 2, 3 … is taken as a header field, wherein 0 represents a time period between 0 and 1, and so on, and 23 represents a time period between 23 and 24.
The above is the initial configuration phase, after which the information recording and calculation phase is entered.
S4, responding to the operation file, and recording the operation record of opening and closing the file and the file information of the operated file.
Operations on files include both opening and closing aspects.
S4.1, generating numbers in a file information table in response to file opening operation, and inputting the file name, directory depth, suffix name and type of the current opened file into the file information table; and generating an operation number in the operation record table, and recording the file number and the file opening time into the operation record table.
S4.2, responding to file closing operation, searching corresponding record fields of a currently closed file in an operation record table, and recording file closing time and using time of the file; and meanwhile, the closing time of the current closed file is recorded into a last using time field in a file information table, the total using time is accumulated and recorded in the current using time, and the total using times are increased and recorded into a total using times field.
S5, calculating file recommendation information of each time period of the day according to the operation record and the file information.
S5.1, deleting the invalid record based on the maximum number d of operation records recorded in the user table.
Firstly, detecting an operation record table of a user, acquiring file closing time of each record in the operation record table, calculating the current days t of the file closing time distance of each record, judging whether t is more than d, and if so, deleting the corresponding operation record until all records meet t is less than or equal to d.
When deleting the operation record in the operation record table, simultaneously subtracting the file use time length from the corresponding total use time length in the file information table according to the file number and the file use time length in the deleted operation record to obtain a new total use time length, and updating the total use times in the file information table. The method comprises the steps of finding file information in a file information table according to file numbers, and subtracting the total use time length of the corresponding file in the file information table from the deleted file use time length according to the file use time length in an operation record to obtain new total use time length. And updating once every operation record is deleted, and simultaneously reducing once every operation record is deleted, wherein the total use times of corresponding files in the file information table are reduced.
S5.2, counting the recommendation scores of all the attributes of each file in the file information table.
Firstly, counting the file attribute of each file, and then obtaining the recommendation score of each file attribute according to the relation between the maximum number of files recorded in a user table and the file attribute. The file attributes include total number of times of use, total time of use, last opening time and directory depth.
In an alternative embodiment, the recommendation score is calculated as follows. And n is the maximum recommended number of the files recorded in the user table.
1) Counting the total number of use of all files in the file information table, sorting according to the order from more to less, numbering the sorting from 1, setting the number of the file A as a, if a < n, recommending the number of use of the file A as n-a, and if a is more than or equal to n, recommending the number of use of the file A as 0.
2) Counting total use time of all files in the file information table, sequencing according to the sequence from big to small, numbering the sequencing from 1, setting the number of the file A as b, if b is less than n, recommending the score of the total use time of the file A as n-b, and if b is more than or equal to n, recommending the score of the total use time of the file A as 0.
3) Counting the last opening time of all files in the file information table, sequencing the files according to the sequence from near to far, numbering the sequencing from 1, setting the number of the file A as c, if c is less than n, recommending the score of the last opening time of the file A as n-c, and if c is more than or equal to n, recommending the score of the last opening time of the file A as 0.
4) Counting the directory depth of all files in the file information table, sequencing according to the sequence from big to small, numbering the sequencing from 1, setting the number of the file A as d, if d is less than n, the directory depth recommendation score of the file A as n-d, and if d is more than or equal to n, the directory depth recommendation score of the file A as 0.
S5.3, calculating an initial recommendation score of the file A.
The initial total recommendation score of the record A is f A The weight of the total number of times of file use is W 1 The weight of the total using time length is W 2 The weight of the last opening time is W 3 The weight of the directory depth is W 4 The total recommendation score for file a is then available as:
wherein a is the total use times recommendation score of the file, b is the total use time recommendation score, c is the last opening time recommendation score, and d is the directory depth recommendation score.
S5.4, searching the associated file of the file A according to the operation record of the file A.
Inquiring operation records of the front h pieces and the rear h pieces of the file A in the operation record table, setting the frequency of occurrence of the file A in the operation record table as x, setting the frequency of occurrence of the file Z in the operation records of the front h pieces and the rear h pieces of the file A as y, and setting the association probability of the file Z relative to the file A as p z =y/x; if the frequency of occurrence of the file Z in the operation records of each h pieces of the front and rear of the file A is one or more times, y is marked as 1, and if the frequency of occurrence of the file Z is not zero, y is marked as 0, so that y is not more than x.
Calculating the association probabilities of all the associated files of the file A and the file A, screening out a first associated file and a second associated file of the file A according to the association probabilities of all the associated files, and recording the first associated file and the association probabilities thereof, and the second management file and the association probabilities thereof into corresponding fields in a file information table.
The first association file and the second association 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, f (p k ) For the association probability set of the other files k except the file i and the file j to the file A, the association probability satisfies p i >p j >l, wherein
S5.5, recalculating the total recommendation score of the file according to the associated file and the associated probability.
Let the final total recommendation score of File A be m A The occurrence number of the related files with the file A as other files is q, the file with the file A in the related files is set as the related file, and the initial total recommendation score of the r-th related file is f r The association probability of the association file A of the r-th related file is p r Then it can be obtained
The final total recommendation score of the file A is m A And updating the recommendation score field in the file information table.
And S5.6, deducing file recommendation information of each time slot of the day.
Firstly, the time length of the file A in each time period is obtained, the probability of the file A in each time period is calculated, the recommendation score of the file A in each time period is obtained according to the total time length, the probability and the recommendation score, and the file number is recorded into each time period of the file recommendation table according to the recommendation score.
Specifically, a day is divided into a plurality of time periods, and the probability that the file A is in the T time period is set as u A The total service time of the file A is C A The v-th operation record of the file A is started for S v Closing time E v The duration of the T period is T v Then
Wherein when S is satisfied v <T and E v >At T, T v =E v -T,
When S is v <(T+1) and E v <At (T+2), T v =T+1-S v ,
When meeting S v <T and E v >At (T+1), T v =1,
When S is v >T and E V <At (T+1), T v =E V -S v ,
Under other conditions, t v =0。
Furthermore, the recommended score g of the document A in the period of T (0.ltoreq.T.ltoreq.23) can be obtained A The method comprises the following steps: g A =m A +f A *u A
G obtained by calculating the file number A The order of the sizes is written into the file recommendation information fields of the corresponding time periods of the file recommendation table from the top to the bottom.
And S6, displaying the file recommendation information and the position information of the recommended file on a human-computer interaction interface.
Reading file recommendation sequences from a file recommendation table according to the time period of the current operating system time and displaying the file recommendation sequences on a human-computer interaction interface; and simultaneously, displaying the names, the catalogues and the suffix names of the files on the man-machine interaction interface according to the file recommendation sequence.
In an alternative embodiment, filtering the files by suffix name and file type is supported at the human-machine interface. The man-machine interaction interface simultaneously provides the setting of the maximum storage days of the operation records and the maximum recommended number of the files, and the user can modify the operation records by himself. When the user modifies any configuration in the file information table, the probability related information in the file information table is triggered to be cleared again, and the calculation is carried out again according to the user setting.
The file recording method convenient for file searching can be realized based on a desktop operating system, and various parameter models of file operation are constructed based on users, so that accurate analysis of common files is ensured; based on the calculation of the time periods, the difference processing of each time period is ensured, so that the recommendation is more accurate; simultaneously, the directory depth and the frequency are considered, so that the real pain point of a user for searching the file is solved; adding associated recommendation, and widening search dimension; and through interface display, user-defined configuration is supported, so that user operation and use are more convenient. According to the method, a plurality of factors influencing file recommendation, such as the opening and closing time period of the file, the file use time length, the file use times, the directory depth of the file, the last use time of the file, the related file of the file operation and the like, are comprehensively considered, so that an accurate file recommendation result is obtained.
The embodiment of the file recording method for facilitating file searching is described in detail above, and the embodiment of the invention further provides a file recording system for facilitating file searching corresponding to the method based on the file recording method for facilitating file searching described in the above embodiment.
FIG. 5 is a schematic block diagram of a file recording system structure for facilitating file searching according to an embodiment of the present invention, where a system 500 may be divided into a plurality of functional modules according to functions performed by the system, including: a model creation module 510, a file operation information recording module 520, a file recommendation information inference module 530, and a file recommendation information presentation module 540. The module referred to in the present invention refers to a series of computer program segments capable of being executed by at least one processor and of performing a fixed function, stored in a memory.
Model creation module 510: creating a user table, detecting a current login user, generating an operation record table, a file information table and a file recommendation table of the current login user, recording the user name of the current login user into a user name field of the user table, generating a user identification record into a user identification field of the user table, and recording the default maximum storage days of the operation record and the maximum recommendation number of the files in the user table. The record field in the user table comprises a user identifier, a user name, a maximum storage day of an operation record and a maximum recommended number of files. The operation record table is used for recording operation records of opening and closing files, the file information table is used for recording file information of the operated files, and the file recommendation table is used for recording inferred file recommendation information.
File operation information recording module 520: in response to the operation file, an operation record of opening the closed file and file information of the operated file are recorded.
The file recommendation information inference module 530: and deducing file recommendation information of each time period of the day according to the operation record and the file information.
File recommendation information presentation module 540: and displaying the file recommendation information and the position information of the recommended file on a human-computer interaction interface.
The file recording system for facilitating file searching in this embodiment is used to implement the foregoing file recording method for facilitating file searching, so that the specific implementation of this system can be found in the foregoing example portion of the file recording method for facilitating file searching, and therefore, the specific implementation of this system may refer to the description of the examples in the respective portions, and will not be further described herein.
In addition, since the file recording system for facilitating file searching in the present embodiment is used to implement the foregoing file recording method for facilitating file searching, the function of the file recording system corresponds to that of the foregoing method, and will not be described herein.
Fig. 6 is a schematic structural diagram of a terminal 600 according to an embodiment of the present invention, including: processor 610, memory 620, and communication unit 630. The processor 610 is configured to implement the following steps when implementing a file record program stored in the memory 620 and facilitating file searching:
Recording an operation record of opening and closing the file and file information of the operated file in response to the operation file;
deducing file recommendation information of each time period of the day according to the operation record and the file information;
and displaying the file recommendation information and the position information of the recommended file on a human-computer interaction interface.
According to the method, the operation record and the file information of the file are recorded, the file recommendation information is deduced according to the operation record and the file information, the file recommendation information contains the position information of the recommended file, then the file recommendation information is directly displayed on the man-machine interaction interface, a user can intuitively see the directory position of the recommended file on the man-machine interaction interface, a file storage path and the like are not required to be searched, the searching efficiency of the target file (namely the recommended file) is greatly improved, meanwhile, the difference processing is carried out according to the operation record of each time period, so that the recommendation is more accurate, and the practicability is improved.
The terminal 600 includes a processor 610, a memory 620, and a communication unit 630. The components may communicate via one or more buses, and it will be appreciated by those skilled in the art that the configuration of the server as shown in the drawings is not limiting of the invention, as it may be a bus-like structure, a star-like structure, or include more or fewer components than shown, or may be a combination of certain components or a different arrangement of components.
The memory 620 may be used to store instructions for execution by the processor 610, and the memory 620 may be implemented by any type of volatile or non-volatile memory terminal or 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 memory, flash memory, magnetic disk, or optical disk. The execution of the instructions in memory 620, when executed by processor 610, enables terminal 600 to perform some or all of the steps in the method embodiments described below.
The processor 610 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs 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 invoking data stored in the memory. The processor may be comprised of an integrated circuit (Integrated Circuit, simply referred to as an IC), for example, a single packaged IC, or may be comprised of a plurality of packaged ICs connected to the same function or different functions. For example, the processor 610 may include only a central processing unit (Central Processing Unit, simply CPU). In the embodiment of the invention, the CPU can be a single operation core or can comprise multiple operation cores.
A communication unit 630, configured to establish a communication channel, so that the storage terminal can communicate with other terminals. Receiving user data sent by other terminals or sending the user data to other terminals.
The invention 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 (random access memory, RAM) and the like.
The computer storage medium stores a file recording program for facilitating file searching, and when the file recording program for facilitating file searching is executed by a processor, the following steps are realized:
recording an operation record of opening and closing the file and file information of the operated file in response to the operation file;
deducing file recommendation information of each time period of the day according to the operation record and the file information;
and displaying the file recommendation information and the position information of the recommended file on a human-computer interaction interface.
According to the method, the operation record and the file information of the file are recorded, the file recommendation information is deduced according to the operation record and the file information, the file recommendation information contains the position information of the recommended file, then the file recommendation information is directly displayed on the man-machine interaction interface, a user can intuitively see the directory position of the recommended file on the man-machine interaction interface, a file storage path and the like are not required to be searched, the searching efficiency of the target file (namely the recommended file) is greatly improved, meanwhile, the difference processing is carried out according to the operation record of each time period, so that the recommendation is more accurate, and the practicability is improved.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solution in the embodiments of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium such as a U-disc, a mobile hard disc, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, etc. various media capable of storing program codes, including several instructions for causing a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the method described in the embodiments of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The foregoing disclosure is merely illustrative of the preferred embodiments of the invention and the invention is not limited thereto, since modifications and variations may be made by those skilled in the art without departing from the principles of the invention.

Claims (10)

1. The file recording method convenient for file searching is characterized by comprising the following steps:
recording an operation record of opening and closing the file and file information of the operated file in response to the operation file;
deducing file recommendation information of each time period of the day according to the operation record and the file information;
And displaying the file recommendation information and the position information of the recommended file on a human-computer interaction interface.
2. The file recording method for facilitating file searching according to claim 1, further comprising the steps of, before responding to the operation file:
creating a user table; the record field in the user table comprises a user identifier, a user name, a maximum storage day of an operation record and a maximum recommended number of files;
detecting a current login user, and 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 operation records of opening and closing files, the file information table is used for recording file information of the operated files, and the file recommendation table is used for recording inferred file recommendation information;
recording the user name of the current login user into a user name field of a user table, and generating a user identification record into a user identification field of the user table;
and recording the maximum storage days of the default operation records and the maximum recommended number of the files in the user table.
3. The file recording method for facilitating file searching according to claim 2, wherein the record field of the operation record table comprises: operation number, file opening time, file closing time, and long-time-to-use field;
The record field of the file information table contains: file number, file name, directory depth, last use time, total use times, suffix name, type, recommendation score, first association file, association probability of first association file, second association file, association probability of second association file;
the record field of the file recommendation table contains: time slot division of the day and file recommendation information of each time slot.
4. A file recording method for facilitating file searching according to claim 3, wherein in response to the operation file, recording the operation record of opening and closing the file and the file information of the operated file, specifically comprising:
responding to the operation of opening the file, generating a number in a file information table, and inputting the file name, directory depth, suffix name and type of the current opened file into the file information table; meanwhile, generating an operation number in an operation record table, and recording the file number and the file opening time into the operation record table;
responding to the file closing operation, searching corresponding record fields of the current closed file in an operation record table, and recording the file closing time and the using time of the file; and meanwhile, the closing time of the current closed file is recorded into a last using time field in a file information table, the total using time is accumulated and recorded in the current using time, and the total using times are increased and recorded into a total using times field.
5. The method for file recording for facilitating file searching according to claim 4, wherein calculating file recommendation information for each time period of the day based on the operation record and the file information, specifically comprises:
step 1, a step of deleting invalid records;
(1) Acquiring the closing time of each recorded file in the operation record table;
(2) Calculating the current days of the file closing time distance, and marking as t;
(3) Judging whether t > d, if so, deleting the corresponding operation record, and simultaneously subtracting the file use time from the corresponding total use time in the file information table according to the file number and the file use time in the deleted operation record to obtain a new total use time, and updating the total use times in the file information table;
step 2, counting the recommended scores of each attribute of each file in the file information table;
(1) Counting file attributes of each file, wherein the file attributes comprise total use times, total use time length, last opening time and directory depth of the file;
(2) Obtaining the recommendation score of each file attribute of each file according to the relation between the maximum number of files and the file attributes recorded in the user table;
step 3, calculating total recommended score of the file;
(1) The initial total recommendation score of the record A is f A The weight of the total number of times of file use is W 1 The weight of the total using time length is W 2 The weight of the last opening time is W 3 The weight of the directory depth is W 4 The total recommendation score for file a is then available as:
wherein a is the total use times recommendation score of the file, b is the total use time recommendation score, c is the last opening time recommendation score, and d is the directory depth recommendation score;
(2) Inquiring operation records of the front h pieces and the rear h pieces of the file A in the operation record table, setting the frequency of occurrence of the file A in the operation record table as x, setting the frequency of occurrence of the file Z in the operation records of the front h pieces and the rear h pieces of the file A as y, and setting the association probability of the file Z relative to the file A as p Z =y/x; if the frequency of occurrence of the file Z in the operation records of the front and rear h pieces of the file A is one or more times, y is marked as 1, and if the file Z does not occur, y is marked as 0;
calculating the association probability of all the associated files of the file A and the file A;
screening out a first associated file and a second associated file of the file A according to the associated probability of each associated file;
recording the first associated file and the associated probability thereof, the second management file and the associated probability thereof into corresponding fields in a file information table;
Wherein the first association file and the second association 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, f (p k ) For the association probability set of the other files k except the file i and the file j to the file A, the association probability satisfies p i >p j >l, wherein
(3) A step of recalculating total recommendation scores of the files according to the associated files and the associated probabilities thereof; let the final total recommendation score of File A be m A The occurrence number of the related files with the file A as other files is q, the file with the file A in the related files is set as the related file, and the initial total recommendation score of the r-th related file is f r The association probability of the association file A of the r-th related file is p r Then it can be obtained
The final total recommendation score of the file A is m A Updating a recommendation score field in a file information table;
step 4, deducing file recommendation information of each time slot of the day;
dividing one day into a plurality of time periods, and setting the probability of the file A in the T time period as u A The total service time of the file A is C A The v-th operation record of the file A is started for S v Closing time E v The duration of the T period is T v Then
Wherein when fullFoot S v <T and E v >At T, T v =E v -T,
When S is v <(T+1) and E v <At (T+2), T v =T+1-S v ,
When meeting S v <T and E V >At (T+1), T v =1,
When S is v >T and E v <At (T+1), T v =E V -S v ,
Under other conditions, t v =0;
And further obtaining the recommendation score g of the file A in the T period A The method comprises the following steps: g A =m A +f A *u A The method comprises the steps of carrying out a first treatment on the surface of the G obtained by calculating the file number A The order of the sizes is written into the file recommendation information fields of the corresponding time periods of the file recommendation table from the top to the bottom.
6. The method for file recording for facilitating file searching according to claim 5, wherein step 2 specifically comprises:
counting the total use times of all files in a file information table, sequencing according to the sequence from more to less, numbering the sequencing from 1, setting the number of the file A as a, if a < n, recommending the total use times of the files of the file A as n-a, and if a is more than or equal to n, recommending the total use times of the files of the file A as 0;
counting total use time of all files in a file information table, sequencing according to the sequence from big to small, numbering the sequencing from 1, setting the number of the file A as b, if b is less than n, recommending the total use time of the file A as n-b, and if b is more than or equal to n, recommending the total use time of the file A as 0;
counting the last opening time of all files in a file information table, sequencing according to the sequence from near to far, numbering the sequencing from 1, setting the number of the file A as c, if c is less than n, recommending the score of the last opening time of the file A as n-c, and if c is more than or equal to n, recommending the score of the last opening time of the file A as 0;
Counting the directory depth of all files in the file information table, sequencing according to the sequence from big to small, numbering the sequencing from 1, setting the number of the file A as d, if d is less than n, the directory depth recommendation score of the file A is n-d, and if d is more than or equal to n, the directory depth recommendation score of the file A is 0;
and n is the maximum recommended number of the files recorded in the user table.
7. The method for facilitating file searching according to claim 6, wherein the displaying of the file recommendation information and the location information of the recommended file on the man-machine interface specifically includes:
reading file recommendation sequences from a file recommendation table according to the time period of the current operating system time and displaying the file recommendation sequences on a human-computer interaction interface;
and displaying the names, the catalogues and the suffix names of the files on the man-machine interaction interface according to the file recommendation sequence.
8. A file recording system for facilitating file searching, comprising, a file operation information recording module: recording an operation record of opening and closing the file and file information of the operated file in response to the operation file;
a file recommendation information deducing module: deducing file recommendation information of each time period of the day according to the operation record and the file information;
File recommendation information display module: and displaying the file recommendation information and the position information of the recommended file on a human-computer interaction interface.
9. A terminal, comprising:
the memory is used for storing a file record program which is convenient for file searching;
a processor for implementing the steps of the file recording method for facilitating file searching according to any one of claims 1 to 7 when executing the file recording program for facilitating file searching.
10. A computer readable storage medium, wherein a file recording program for facilitating file searching is stored on the readable storage medium, and the file recording program for facilitating file searching is executed by a processor to implement the steps of the file recording method for facilitating file searching according to any one of claims 1 to 7.
CN202310331256.XA 2023-03-30 2023-03-30 File recording method, system, terminal and medium convenient for file searching Pending CN116467260A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310331256.XA CN116467260A (en) 2023-03-30 2023-03-30 File recording method, system, terminal and medium convenient for file searching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310331256.XA CN116467260A (en) 2023-03-30 2023-03-30 File recording method, system, terminal and medium convenient for file searching

Publications (1)

Publication Number Publication Date
CN116467260A true CN116467260A (en) 2023-07-21

Family

ID=87176316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310331256.XA Pending CN116467260A (en) 2023-03-30 2023-03-30 File recording method, system, terminal and medium convenient for file searching

Country Status (1)

Country Link
CN (1) CN116467260A (en)

Similar Documents

Publication Publication Date Title
US7689578B2 (en) Dealing with annotation versioning through multiple versioning policies and management thereof
US8201079B2 (en) Maintaining annotations for distributed and versioned files
WO2012079836A1 (en) Method and system for creating and processing a data rule, data processing program, and computer program product
US20040111668A1 (en) Annotation validity using partial checksums
WO2019061664A1 (en) Electronic device, user&#39;s internet surfing data-based product recommendation method, and storage medium
WO2018097846A1 (en) Edge store designs for graph databases
CN107729456A (en) Sensitive information search method, server and storage medium
CN113535720A (en) Index creating method, device and equipment in block chain type account book
CN105117489B (en) Database management method and device and electronic equipment
CN109241075A (en) Processing method, equipment and the computer readable storage medium of index basic data
CN112433650A (en) Project management method, device, equipment and storage medium
CN103970816B (en) The method and system of mark content to be issued
CN116450664A (en) Data processing method, device, equipment and storage medium
CN116467260A (en) File recording method, system, terminal and medium convenient for file searching
CN112685389B (en) Data management method, data management device, electronic device, and storage medium
CN110262870A (en) Utilize method, apparatus, computer equipment and the storage medium of dump document alignment exception
CN109727142A (en) Insuring method, system, equipment and storage medium
US20220100785A1 (en) Entity search system
CN112463896B (en) Archive catalogue data processing method, archive catalogue data processing device, computing equipment and storage medium
US11474983B2 (en) Entity resolution of master data using qualified relationship score
CN113420042A (en) Data statistics method, device, equipment and storage medium based on presentation
CN111444195B (en) Method, device and equipment for clearing indexes in block chain type account book
CN115544214B (en) Event processing method, device and computer readable storage medium
CN115952174B (en) Data table connection method, system, terminal and storage medium
CN107967300A (en) Search method, device, equipment and the storage medium of organization names

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