Information search method and device, equipment and storage medium

By adding index information to the file and using index correlation information for searching, the problem of low search efficiency when there are too many files or large files is solved, and a faster search process is achieved.

CN118939607AActive Publication Date: 2024-11-12BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310530544.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-11
Publication Date
2024-11-12
Estimated Expiration
2043-05-11

AI Technical Summary

Technical Problem

In the prior art, when there are many files or large files, the search efficiency is low because the information of each file needs to be parsed one by one, resulting in a longer time consumption.

Method used

Add index information to the original file. After receiving the search instructions, search each file through the index association information to determine the location of the search object in the file, and avoid searching for all information in each file.

Benefits of technology

The efficiency of information search is improved, the amount of information associated with the index is small, and the search time is shortened.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939607A_ABST
    Figure CN118939607A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an information search method and device, equipment and a storage medium, and the method comprises the steps that a search instruction for multiple to-be-searched files is received, the search instruction comprises a target search object, and the to-be-searched files are obtained by adding corresponding index information into original files; corresponding index association information is read from the index information of each to-be-searched file, the index association information comprises an association relationship between the search object and position information, and the position information is used for representing the position of the search object in the original file; traversing the index association information of the plurality of to-be-searched files, and obtaining at least one piece of target position information associated with the target search object; and displaying search result information corresponding to the target search object according to the at least one piece of target position information, wherein the search result information comprises the at least one piece of target position information and the to-be-searched file to which the target position information belongs. The position of the search object in the file can be determined according to the index association information, and the whole file does not need to be searched, so that the efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of information technology, and in particular to an information search method, device, equipment, and storage medium. Background Art

[0002] Currently, the number of files stored in terminals or servers is increasing. When a user needs to obtain certain information, he can search for information of multiple files included in the terminal or server and obtain file information related to the information.

[0003] In the prior art, a user inputs a search keyword, and a terminal or a server parses the information of each file according to the search keyword, and then determines the file information related to the search keyword from the information of multiple files.

[0004] However, the inventors have found that the prior art has at least the following technical problems: when the number of files is large or the files are large, it takes a long time to parse the information of each file one by one, so the search efficiency is low. Summary of the invention

[0005] The embodiments of the present disclosure provide an information search method, apparatus, device and storage medium to improve search efficiency.

[0006] In a first aspect, an embodiment of the present disclosure provides an information search method, including:

[0007] Receiving a search instruction for a plurality of files to be searched, the search instruction including a target search object, the files to be searched being obtained by adding corresponding index information to the original files;

[0008] Reading corresponding index association information from the index information of each file to be searched, wherein the index association information includes an association relationship between a search object and position information, wherein the position information is used to indicate a position of the search object in the original file;

[0009] Traversing the index association information of the plurality of files to be searched, and acquiring at least one target location information associated with the target search object;

[0010] The search result information corresponding to the target search object is displayed according to the at least one target location information, and the search result information includes at least one target location information and the corresponding file to be searched.

[0011] In a second aspect, an embodiment of the present disclosure provides an information search device, including:

[0012] A receiving module receives a search instruction for a plurality of files to be searched, wherein the search instruction includes a target search object, and the files to be searched are obtained by adding corresponding index information to the original files;

[0013] A reading module, used to read corresponding index association information from the index information of each file to be searched, wherein the index association information includes an association relationship between a search object and position information, wherein the position information is used to indicate a position of the search object in the original file;

[0014] An acquisition module, used for traversing the index association information of the plurality of files to be searched, and acquiring at least one target location information associated with the target search object;

[0015] The display module is used to display the search result information corresponding to the target search object according to the at least one target location information, and the search result information includes at least one target location information and the corresponding to-be-searched file.

[0016] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:

[0017] A processor, and a memory communicatively connected to the processor;

[0018] The memory stores computer-executable instructions;

[0019] The processor executes the computer-executable instructions stored in the memory to implement the information search method as described in the first aspect above.

[0020] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the information search method described in the first aspect above is implemented.

[0021] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the information search method described in the first aspect above.

[0022] The information search method, device, equipment and storage medium provided by the present embodiment include: receiving a search instruction for multiple files to be searched, the search instruction includes a target search object, and the file to be searched is obtained by adding corresponding index information to the original file; reading corresponding index association information from the index information of each file to be searched, the index association information includes the association relationship between the search object and the position information, and the position information is used to indicate the position of the search object in the original file; traversing the index association information of multiple files to be searched, and obtaining at least one target position information associated with the target search object; displaying the search result information corresponding to the target search object according to at least one target position information, and the search result information includes at least one target position information and the file to be searched. Since, when receiving the search instruction, each file can be searched according to the search object through the index association information, and then the position of the search object in the search file is determined, it is not necessary to search all the information of each file, and the amount of information in the index association information is small, thereby improving the search efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0024] Figure 1 A schematic diagram of an application scenario of an information search method provided by an embodiment of the present disclosure;

[0025] Figure 2 A flowchart of an information search method provided by an embodiment of the present disclosure;

[0026] Figure 3 A flowchart of another information search method provided by an embodiment of the present disclosure;

[0027] Figure 4 A schematic diagram of converting an original file provided in an embodiment of the present disclosure;

[0028] Figure 5 A flowchart of another information search method provided by an embodiment of the present disclosure;

[0029] Figure 6 A structural block diagram of an information search device provided by an embodiment of the present disclosure;

[0030] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;

[0031] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0033] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0034] At present, the number of files stored in terminals or servers is increasing. When users need to obtain certain information, manual search is slow. Therefore, the information of multiple files included in the terminal or server can be searched through search software according to search keywords, and file information related to the information can be obtained.

[0035] For example, a user inputs a search keyword, and the terminal or server parses the information of each file according to the search keyword, and then determines the file information related to the search keyword from the information of multiple files. However, when the number of files is large or the files are large, the file information is large, so it takes a long time to parse the information of each file one by one, so the efficiency of the current search method is low.

[0036] It can be seen that how to improve the efficiency of information search has become a technical problem that needs to be solved urgently.

[0037] In order to solve the above problem, this embodiment provides an information search method, firstly, the corresponding index information is added to the original file to obtain the file to be searched, and when receiving the search instruction for multiple files to be searched, each file is searched according to the target search object through the index associated information, so as to determine the position of the search object in the search file. In this way, it is not necessary to search all the information of each file, and the amount of information of the index associated information is relatively small compared with the entire file, so the efficiency of information search can be improved.

[0038] The application scenarios of the embodiments of the present disclosure are explained below:

[0039] The information search method provided by the embodiments of the present disclosure can be applied to various search application scenarios, for example, to a video information search scenario. Figure 1 Schematic diagram of an application scenario of an information search method provided by an embodiment of the present disclosure. Figure 1 As shown, it is used to input a search keyword through terminal 101 and trigger a search instruction. Terminal 101 sends the search instruction to the server. Server 102 searches each video file through index association information according to the search keyword in the search instruction, determines the position of the search keyword in the video file (i.e., the playback time), and generates search result information. Server 102 returns the search result information to terminal 101. Among them, terminal 101 can be a mobile phone or a computer device. The information search method provided by the embodiment of the present disclosure is described in detail using a detailed embodiment below.

[0040] Example 1

[0041] refer to Figure 2 , Figure 2 This is a flowchart of an information search method provided by an embodiment of the present disclosure. The execution subject of the information search method can be a terminal or a server. This implementation is described by taking the execution subject as a terminal as an example. The method includes:

[0042] S201, receiving a search instruction for a plurality of files to be searched, the search instruction including a target search object, and the files to be searched are obtained by adding corresponding index information to the original files.

[0043] In an embodiment of the present application, the multiple files to be searched may be multiple files within the search range. Optionally, the multiple files to be searched may be multiple files stored locally in the terminal, or may be multiple files included in a folder. In addition, the files to be searched include index information, that is, the files to be searched are converted from the original files. The index information is used to indicate the multiple content information included in the original file and the location of each content information.

[0044] The target search object includes at least one of a search keyword, a search icon, and a search audio. For example, the target search object is the keyword: "weather". For another example, the target search object is the search audio "weather".

[0045] Optionally, the target search object includes a search keyword. Accordingly, this step is: the user enters the target search object (for example, keyword: "weather") through the search input box on the terminal, and in response to detecting a trigger operation on the search icon, receives a search instruction for multiple files to be searched. The trigger operation can be a click operation, etc.

[0046] Optionally, the target search object includes search audio, and the user can input the search audio through the voice input button on the terminal. Accordingly, this step is: in response to detecting a trigger operation on the voice input button, receiving a search instruction for multiple files to be searched, the search instruction including the search audio. Exemplarily, the search instruction is: "Search weather", and the search audio is: "weather". The trigger operation can be a click operation, etc.

[0047] S202: Read corresponding index association information from the index information of each file to be searched, where the index association information includes an association relationship between a search object and position information, and the position information is used to indicate a position of the search object in the original file.

[0048] In the embodiment of the present application, the original file can be a file of any format. Optionally, the original file is a text file, a video file or an image file. Optionally, the original file is a text file, and the position information is used to indicate the character position of the search object in the text file; or, the original file is a video file, and the position information is used to indicate the play time of the search object in the video file; or, the original file is an image file, and the position information is used to indicate the pixel area of ​​the search object in the image file.

[0049] Correspondingly, the index association information includes the association relationship between the search object and the character position, or the index association information includes the association relationship between the search object and the playback time; or the index association information includes the association relationship between the search object and the pixel area.

[0050] For example, the original file is a text file "Today's weather is sunny, the temperature is 23 degrees, suitable for an outing", and the index-related information is: "weather" is the third character in the text file. Among them, the search object is "weather", and the position information is: "the third character".

[0051] For another example, the original file is a video file, and the index-related information is: the playback time corresponding to "weather" is 00:00:15. That is, when the video file is played to the 15th second, "weather" will appear in the playback interface. Among them, the search object is "weather" and the position information is: "00:00:15".

[0052] For another example, the original file is an image file, and the index association information is: the pixel area corresponding to "weather" in the image file is: x=100-200, y=200-300; where x represents the pixel point along the x direction, and y represents the pixel point along the y direction. The search object is "weather", and the location information is: "x=100-200, y=200-300".

[0053] S203: traverse the index association information of multiple files to be searched, and obtain at least one target location information associated with the target search object.

[0054] In an embodiment of the present application, the index association information may include one or more target search objects, or the index association information may not include a target search object.

[0055] Optionally, this step is: for each index association information of the file to be searched, if the index association information includes the association relationship between the search object and the character position, then from the association relationship between the search object and the character position, the character position associated with the target search object is obtained; if the index association information includes the association relationship between the search object and the playback time, then from the association relationship between the search object and the playback time, the playback time associated with the target search object is obtained; if the index association information includes the association relationship between the search object and the pixel area, then from the association relationship between the search object and the pixel area, the pixel area associated with the target search object is obtained.

[0056] Exemplarily, the target search object is "weather", and the multiple files to be searched include text file A, video file B, and image file C. For the index association information of text file A, from the association relationship between the search object and the character position, the character position associated with "weather" is obtained as: the third character. For the index association information of video file B, from the association relationship between the search object and the play time, the play time associated with "weather" is obtained as: 00:00:15. For the index association information of image file C, from the association relationship between the search object and the pixel area, the pixel area associated with "weather" is obtained as: x=100-200, y=200-300; wherein x represents the pixel point along the x direction, and y represents the pixel point along the y direction.

[0057] S204: Display search result information corresponding to the target search object according to at least one target location information, where the search result information includes at least one target location information and the corresponding file to be searched.

[0058] Optionally, the search result information includes character position and the text file to which it belongs; and / or, play time and the video file to which it belongs; and / or, pixel area and the image file to which it belongs.

[0059] For example, the target search object is "weather", and at least one target location information includes: the third character, 00:00:15, x=100-200, y=200-300. Accordingly, the search result information corresponding to the target search object is displayed according to the at least one target location information as: text file A, the third character; video file B, 00:00:15; image file C, x=100-200, y=200-300.

[0060] The information search method provided by this embodiment includes: receiving a search instruction for multiple files to be searched, the search instruction includes a target search object, and the file to be searched is obtained by adding corresponding index information to the original file; reading corresponding index association information from the index information of each file to be searched, the index association information includes the association relationship between the search object and the position information, and the position information is used to indicate the position of the search object in the original file; traversing the index association information of multiple files to be searched, and obtaining at least one target position information associated with the target search object; displaying the search result information corresponding to the target search object according to the at least one target position information, and the search result information includes at least one target position information and the file to be searched. Since, when receiving the search instruction, each file can be searched according to the search object through the index association information, and then the position of the search object in the search file is determined, it is not necessary to search all the information of each file, and the amount of information in the index association information is small, thereby improving the search efficiency.

[0061] Example 2

[0062] Figure 3 A flowchart of another information search method provided by an embodiment of the present disclosure. Figure 2 Based on the embodiment shown, the reading of the corresponding index association information from the index information of each file to be searched in step S202 is further described. In this embodiment, the file to be searched includes a plurality of characters, and each character corresponds to a byte. Figure 3 As shown, the method includes:

[0063] S301. Determine index field information corresponding to index associated information of a file to be searched, where the index field information is used to represent a plurality of bytes occupied by the index associated information, and the bytes are used to represent the number of characters counted forward from the last character of the file to be searched.

[0064] Optionally, the index information includes index association information, index format information and index bit information, and the index bit information is used to indicate the number of multiple bytes occupied by the index association information. Exemplarily, the index information includes index association information: weather, 3, sunny, 6, temperature, 9, outing, 17; index bit information: 19 (that is, the number of multiple bytes occupied by the index association information is 19); index format information: quicksearch.

[0065] Wherein, determining the index field information corresponding to the index association information includes steps (1) to (5):

[0066] (1) Determine the number M of multiple bytes occupied by the index format information, where M is a positive integer. Optionally, determine the number of characters in the index format information as the number of multiple bytes occupied by the index format information. Exemplarily, the index format information is quicksearch, the number of characters is 11, and the number M of multiple bytes occupied by the index format information is 11.

[0067] (2) Determine that the last character of the index format information corresponds to the 0th byte.

[0068] Optionally, the index information is located at the end of the file to be searched. The index format information is located at the end of the index information, which is also the end of the file to be searched. In this case, the last character of the index format information corresponds to the 0th byte.

[0069] For example, as shown in Table 1, index format information: quicksearch occupies byte positions 0-10. Index bit number information: 19 occupies byte position 11; index association information: weather, 3, sunny, 6, temperature, 9, outing, 17 occupies byte positions 12-30.

[0070] Table 1 Index information

[0071] Byte 12-30 11 0-10 Index information Weather, 3, sunny, 6, temperature, 9, picnic, 17 19 quicksearch

[0072] (3) Determine that the byte position corresponding to the index bit number information is the Mth byte position.

[0073] Exemplarily, as shown in Table 1, the number M of the multiple byte positions occupied by the index format information is 11. The byte position corresponding to the index bit number information is the 11th byte position.

[0074] (4) Obtain the numeric character N corresponding to the Mth byte position, and determine the number N of the multiple bytes occupied by the numeric character N as the index associated information, where N is a positive integer.

[0075] Exemplarily, as shown in Table 1, the 11th byte position corresponds to the numeric character 19, and it is determined that the numeric character 19 is the number of bytes occupied by the index association information.

[0076] (5) Determine the index field information corresponding to the index association information according to the Mth byte and the number N of the multiple bytes occupied by the index association information.

[0077] Optionally, this step is: determine the first byte bit of the Mth byte bit as the starting byte bit occupied by the index bit number information; determine the first N byte bits of the Mth byte bit as the ending byte bit occupied by the index bit number information; determine the byte bit interval occupied by the index association information based on the starting byte bit and the ending byte bit; determine the multiple bytes included in the byte bit interval as the index field information corresponding to the index association information.

[0078] Exemplarily, the byte position corresponding to the index bit information is the 11th byte position. The first byte position of the Mth byte position (i.e., the 12th byte position) is determined as the starting byte position of the index bit information, and the first N byte positions of the Mth byte position (i.e., the 30th byte position) are determined as the ending byte position occupied by the index bit information; according to the starting byte position and the ending byte position, the byte position interval occupied by the index association information is determined to be [12, 30]; and the multiple byte positions included in the byte position interval [12, 30] are determined as the index field information corresponding to the index association information (i.e., 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30).

[0079] S302: extract multiple characters corresponding to multiple bytes from the index information of the file to be searched, and obtain index association information corresponding to the file to be searched.

[0080] For example, as shown in Table 1, the index information of the file to be searched includes: "weather, 3, sunny, 6, temperature, 9, outing, 1719quicksearch". Multiple characters corresponding to multiple byte positions (12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30) are extracted therefrom, and the index association information corresponding to the file to be searched is obtained as: "weather, 3, sunny, 6, temperature, 9, outing, 17".

[0081] Among them, the keyword "weather" corresponds to the "3rd" character, the keyword "sunny" corresponds to the "6th" character, the keyword "temperature" corresponds to the "9th" character, and the keyword "outing" corresponds to the "17th" character.

[0082] Example 3

[0083] Figure 4 A flowchart of another information search method provided by an embodiment of the present disclosure. In the embodiment of the present application, an interface corresponding to any specific location can be displayed according to the user's selection. Figure 5 As shown, the search method also includes:

[0084] S205: If a selection operation of any target location information is detected, a content interface corresponding to the target location information in the original file is displayed, and the content interface includes a target search object.

[0085] Optionally, the original file is a text file, a video file or an image file; accordingly, a content interface corresponding to the target position information in the original file is displayed, including: a text interface corresponding to the character position in the text file; or, a video frame interface corresponding to the playback time in the video file; or, an image interface corresponding to the pixel area in the image file.

[0086] For example, the target search object is "weather", and at least one target location information includes: the third character, 00:00:15, x=100-200, y=200-300. Accordingly, the search result information corresponding to the target search object is displayed according to the at least one target location information as: text file A, the third character; video file B, 00:00:15; image file C, x=100-200, y=200-300.

[0087] If the selection operation of "00:00:15" is detected, the video frame interface corresponding to 00:00:15 in the corresponding video file is displayed. The video frame interface includes: weather.

[0088] In the embodiment of the present application, since the corresponding interface can be entered through the selection operation of the target location information, the user can further view relevant information such as the target search object, thereby further improving the search efficiency.

[0089] Example 4

[0090] It should be noted that there are a large number of files to be searched, and there may be files that do not conform to the preset search format, resulting in failure to read the corresponding index association information.

[0091] In this embodiment, before reading the file to be searched, the format of the file to be searched can also be verified to determine whether it conforms to the preset search format. Correspondingly, before reading the corresponding index-related information from the index information of each file to be searched, the search method also includes: for each file to be searched, starting from the last byte of the file to be searched, extracting M characters corresponding to M bytes forward to obtain a character string, where M is a positive integer; verifying the format of the file to be searched through the character string; if the verification passes, reading the corresponding index-related information from the index information of the file to be searched; if the verification fails, replacing other files to be searched, and reading the corresponding index-related information from the index information of other files to be searched. In this embodiment of the present application, the number of M is not specifically limited and can be set and modified as needed. Exemplarily, M is 11.

[0092] Optionally, the step of verifying the format of the file to be searched through the string is: if the content of the string belongs to the index format information, it is determined that the format verification of the file to be searched is passed; if the content of the string does not belong to the index format information, it is determined that the format verification of the file to be searched is failed.

[0093] The index format information may be any preset format information. Exemplarily, the index format information is: quicksearch. If the content of the string belongs to quicksearch, it is determined that the format verification of the file to be searched has passed; if the content of the string does not belong to quicksearch, it is determined that the format verification of the file to be searched has failed.

[0094] In the embodiment of the present application, since the format of the file to be searched is verified first, the search failure due to format mismatch is avoided, thereby improving the efficiency of information search.

[0095] Example 5

[0096] In the embodiment of the present application, the steps of converting the original file to obtain the file to be searched are described in detail. The original file can be a text file, such as a PDF text file, a Word text file, etc.; the original file can also be a video file, such as an mp4 video file, an flv video file, etc.; the original file can also be an image file, such as a png image file, a jpg image file, etc.

[0097] Among them, the steps of converting the original file to obtain the file to be searched are: obtaining the file information of the original file, extracting at least one search object from the file information; determining the location information corresponding to each search object; associating the search object and the corresponding location information to obtain the associated index information corresponding to the original file; generating index information including the associated index information, and adding the index information to the original file to obtain the file to be searched.

[0098] Optionally, generating index information including associated index information includes: adding associated index information, index format information and index bit number information to the original file to obtain a file to be searched, wherein the index bit number information is used to indicate the number of multiple bytes occupied by the index associated information.

[0099] The object information may be text information, image information, etc. The position information may be character position, play time, pixel area, etc.

[0100] For example, the object information is text information, the position information is the character position, and the search object is a keyword. Figure 5As shown, the original file is a text in PDF format. The text includes 18 characters. The text information is: Today's weather is sunny, the temperature is 23 degrees, and it is suitable for an outing. Through the keyword extraction algorithm, at least one keyword is extracted from the text information: weather, sunny, temperature, outing. It is determined that the character position corresponding to the keyword "weather" is the "3rd character", the character position corresponding to the keyword "sunny" is the "6th character", the character position corresponding to the keyword "temperature" is the "9th character", and the character position corresponding to the keyword "outing" is the "17th character". The keywords and the corresponding character positions are associated to obtain the associated index information corresponding to the original file: weather, 3, sunny, 6, temperature, 9, outing, 17. Through the file format conversion system or software, index information including the associated index information is generated, and the index information is added to the original file to obtain the file to be searched. Among them, the index information includes associated index information (weather, 3, sunny, 6, temperature, 9, outing, 17), index format information (quicksearch) and index bit information (19).

[0101] Figure 6 This is a structural block diagram of an information search device provided by an embodiment of the present disclosure. Figure 6 The information search device includes: a receiving module 601, a reading module 602, an acquisition module 603 and a display module 604.

[0102] The receiving module 601 receives a search instruction for a plurality of files to be searched, the search instruction includes a target search object, and the files to be searched are obtained by adding corresponding index information to the original files;

[0103] A reading module 602 is used to read corresponding index association information from the index information of each file to be searched, where the index association information includes an association relationship between a search object and position information, where the position information is used to indicate a position of the search object in the original file;

[0104] An acquisition module 603 is used to traverse the index association information of multiple files to be searched, and acquire at least one target location information associated with a target search object;

[0105] The display module 604 is used to display the search result information corresponding to the target search object according to the at least one target location information, and the search result information includes the at least one target location information and the corresponding to-be-searched file.

[0106] In one embodiment of the present disclosure, the file to be searched includes multiple characters, each character corresponds to a byte bit; accordingly, the reading module 602 reads the corresponding index association information from the index information of each file to be searched, specifically including: determining the index field information corresponding to the index association information of the file to be searched, the index field information is used to represent the multiple bytes occupied by the index association information, and the byte bits are used to represent the number of characters counted forward from the last character of the file to be searched; extracting the multiple characters corresponding to the multiple bytes from the index information of the file to be searched, and obtaining the index association information corresponding to the file to be searched.

[0107] In one embodiment of the present disclosure, the index information includes index association information, index format information and index bit number information, and the index bit number information is used to indicate the number of multiple byte bits occupied by the index association information; accordingly, the reading module 602 determines the index field information corresponding to the index association information, specifically including: determining the number M of multiple byte bits occupied by the index format information, where M is a positive integer; determining that the last character of the index format information corresponds to the 0th byte bit; determining that the byte bit corresponding to the index bit number information is the Mth byte bit; obtaining the numeric character N corresponding to the Mth byte bit, and determining that the numeric character N is the number N of multiple byte bits occupied by the index association information, where N is a positive integer; determining the index field information corresponding to the index association information according to the Mth byte bit and the number N of multiple byte bits occupied by the index association information.

[0108] In one embodiment of the present disclosure, the reading module 602 determines the index field information corresponding to the index associated information based on the number N of byte bits occupied by the Mth byte bit and the index associated information, specifically including: determining that the first byte bit of the Mth byte bit is the starting byte bit occupied by the index bit number information; determining the first N byte bits of the Mth byte bit are the ending byte bit occupied by the index bit number information; determining the byte bit interval occupied by the index associated information based on the starting byte bit and the ending byte bit; and determining the multiple byte bits included in the byte bit interval as the index field information corresponding to the index associated information.

[0109] In one embodiment of the present disclosure, the original file is a text file, and the position information is used to indicate the character position of the search object in the text file; or, the original file is a video file, and the position information is used to indicate the playback time of the search object in the video file; or, the original file is an image file, and the position information is used to indicate the pixel area of ​​the search object in the image file.

[0110] In one embodiment of the present disclosure, the acquisition module 603 traverses the index association information of multiple files to be searched, and obtains at least one target position information associated with the target search object, specifically including: for the index association information of each file to be searched, if the index association information includes the association relationship between the search object and the character position, then from the association relationship between the search object and the character position, at least one character position associated with the target search object is obtained; if the index association information includes the association relationship between the search object and the playback time, then from the association relationship between the search object and the playback time, at least one playback time associated with the target search object is obtained; if the index association information includes the association relationship between the search object and the pixel area, then from the association relationship between the search object and the pixel area, at least one pixel area associated with the target search object is obtained.

[0111] In one embodiment of the present disclosure, the search object includes at least one of a search keyword, a search icon, and a search audio.

[0112] In one embodiment of the present disclosure, the display module 604 is further configured to display a content interface corresponding to the target location information in the corresponding original file if a selection operation of any target location information is detected, wherein the content interface includes the target search object.

[0113] In one embodiment of the present disclosure, the display module 604 displays the content interface corresponding to the target position information in the corresponding original file, specifically including: displaying a text interface corresponding to the character position in a text file; or, displaying a video frame interface corresponding to the playback time in a video file; or, displaying an image interface corresponding to the pixel area in an image file.

[0114] In one embodiment of the present disclosure, the device includes: a verification module. The verification module is used to extract M characters corresponding to M bytes from the last byte of each file to be searched, to obtain a character string, where M is a positive integer; verify the format of the file to be searched through the character string; if the verification is successful, read the corresponding index association information from the index information of the file to be searched.

[0115] In one embodiment of the present disclosure, the verification module verifies the format of the file to be searched through the character string, specifically including: if the content of the character string belongs to the index format information, it is determined that the format verification of the file to be searched is passed; if the content of the character string does not belong to the index format information, it is determined that the format verification of the file to be searched is not passed.

[0116] In one embodiment of the present disclosure, the device includes: a format conversion module. The format conversion module is used to obtain object information corresponding to each position information in the original file to obtain multiple object information; extract at least one search object from the multiple object information; associate each search object with the corresponding position information to obtain associated index information corresponding to the original file; generate index information including the associated index information, and add the index information to the original file to obtain a file to be searched.

[0117] The receiving module 601, the reading module 602, the acquiring module 603 and the display module 604 are connected in sequence. The information search device provided in this embodiment can implement the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated in this embodiment.

[0118] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown in FIG. Figure 7 As shown, the electronic device 7 includes:

[0119] A processor 701, and a memory 702 communicatively connected to the processor 701;

[0120] The memory 702 stores computer-executable instructions;

[0121] The processor 701 executes the computer-executable instructions stored in the memory 702 to implement the information search method in any of the above embodiments.

[0122] Optionally, the processor 701 and the memory 702 are connected via a bus 703 .

[0123] The relevant instructions can be understood by referring to the relevant descriptions and effects corresponding to the steps in the above embodiments, and no further elaboration is made here.

[0124] An embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the information search method provided in any of the above embodiments of the present application.

[0125] refer to Figure 8, which shows a schematic diagram of the structure of an electronic device 800 suitable for implementing the embodiment of the present disclosure, and the electronic device 800 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0126] like Figure 8 As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 to a random access memory (RAM) 803. Various programs and data required for the operation of the electronic device 800 are also stored in the RAM 803. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0127] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0128] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0129] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0130] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0131] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0132] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0133] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0134] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0135] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0136] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0137] In a first aspect, according to one or more embodiments of the present disclosure, there is provided an information search method, applied to a server, comprising: receiving download requests sent by multiple terminals;

[0138] According to a preset allocation rule, the download requests of the multiple terminals are allocated to multiple different download modes, wherein each download mode corresponds to a group of download requests;

[0139] According to each download mode, a data packet corresponding to each download request in a corresponding group of download requests is sent to a corresponding terminal.

[0140] According to one or more embodiments of the present disclosure, in one embodiment of the present disclosure, the file to be searched includes multiple characters, each character corresponds to a byte bit; accordingly, reading the corresponding index association information from the index information of each file to be searched includes: determining the index field information corresponding to the index association information of the file to be searched, the index field information is used to represent the multiple bytes occupied by the index association information, and the byte bits are used to represent the number of characters counted forward from the last character of the file to be searched; extracting the multiple characters corresponding to the multiple bytes from the index information of the file to be searched, and obtaining the index association information corresponding to the file to be searched.

[0141] According to one or more embodiments of the present disclosure, the index information includes index association information, index format information and index bit number information, and the index bit number information is used to represent the number of multiple byte bits occupied by the index association information; accordingly, determining the index field information corresponding to the index association information includes: determining the number M of multiple byte bits occupied by the index format information, where M is a positive integer; determining that the last character of the index format information corresponds to the 0th byte bit; determining that the byte bit corresponding to the index bit number information is the Mth byte bit; obtaining the numeric character N corresponding to the Mth byte bit, and determining that the numeric character N is the number N of multiple byte bits occupied by the index association information, where N is a positive integer; determining the index field information corresponding to the index association information based on the Mth byte bit and the number N of multiple byte bits occupied by the index association information.

[0142] According to one or more embodiments of the present disclosure, the method of determining the index field information corresponding to the index associated information based on the number N of byte bits occupied by the Mth byte bit and the index associated information includes: determining the first byte bit of the Mth byte bit as the starting byte bit occupied by the index bit number information; determining the first N byte bits of the Mth byte bit as the ending byte bit occupied by the index bit number information; determining the byte bit interval occupied by the index associated information based on the starting byte bit and the ending byte bit; and determining the multiple byte bits included in the byte bit interval as the index field information corresponding to the index associated information.

[0143] According to one or more embodiments of the present disclosure, the original file is a text file, and the position information is used to indicate the character position of the search object in the text file; or, the original file is a video file, and the position information is used to indicate the playback time of the search object in the video file; or, the original file is an image file, and the position information is used to indicate the pixel area of ​​the search object in the image file.

[0144] According to one or more embodiments of the present disclosure, traversing the index association information of multiple files to be searched and obtaining at least one target position information associated with the target search object includes: for the index association information of each file to be searched, if the index association information includes an association relationship between the search object and the character position, then obtaining at least one character position associated with the target search object from the association relationship between the search object and the character position; if the index association information includes an association relationship between the search object and the playback time, then obtaining at least one playback time associated with the target search object from the association relationship between the search object and the playback time; if the index association information includes an association relationship between the search object and the pixel area, then obtaining at least one pixel area associated with the target search object from the association relationship between the search object and the pixel area.

[0145] According to one or more embodiments of the present disclosure, the search object includes at least one of a search keyword, a search icon, and a search audio.

[0146] According to one or more embodiments of the present disclosure, it also includes: if a selection operation of any target location information is detected, a content interface corresponding to the target location information in the corresponding original file is displayed, and the content interface includes the target search object.

[0147] According to one or more embodiments of the present disclosure, the content interface corresponding to the target position information in the corresponding original file includes: a text interface corresponding to the character position in a text file; or a video frame interface corresponding to the playback time in a video file; or an image interface corresponding to the pixel area in an image file.

[0148] According to one or more embodiments of the present disclosure, before reading the corresponding index-related information from the index information of each file to be searched, the method further includes: for each file to be searched, starting from the last byte of the file to be searched, extracting M characters corresponding to M bytes forward to obtain a character string, where M is a positive integer; verifying the format of the file to be searched through the character string; if the verification passes, reading the corresponding index-related information from the index information of the file to be searched.

[0149] According to one or more embodiments of the present disclosure, the format of the file to be searched is verified by the character string, including: if the content of the character string belongs to the index format information, determining that the format verification of the file to be searched has passed; if the content of the character string does not belong to the index format information, determining that the format verification of the file to be searched has failed.

[0150] According to one or more embodiments of the present disclosure, before receiving the search instruction for multiple files to be searched, it also includes: obtaining object information corresponding to each position information in the original file to obtain multiple object information; extracting at least one search object from the multiple object information; associating each search object with the corresponding position information to obtain associated index information corresponding to the original file; generating index information including the associated index information, and adding the index information to the original file to obtain the file to be searched.

[0151] In a second aspect, according to one or more embodiments of the present disclosure, there is provided an information search device, comprising: a receiving module, a reading module, an acquiring module and a display module.

[0152] The receiving module receives a search instruction for a plurality of files to be searched, the search instruction includes a target search object, and the files to be searched are obtained by adding corresponding index information to the original files;

[0153] A reading module, used to read corresponding index association information from the index information of each file to be searched, the index association information including the association relationship between the search object and the position information, the position information being used to indicate the position of the search object in the original file;

[0154] An acquisition module, used to traverse the index association information of multiple files to be searched, and acquire at least one target location information associated with a target search object;

[0155] The display module is used to display the search result information corresponding to the target search object according to at least one target location information, and the search result information includes at least one target location information and the corresponding to-be-searched file.

[0156] According to one or more embodiments of the present disclosure, the file to be searched includes multiple characters, each character corresponds to a byte bit; accordingly, the reading module reads the corresponding index association information from the index information of each file to be searched, specifically including: determining the index field information corresponding to the index association information of the file to be searched, the index field information is used to represent the multiple bytes occupied by the index association information, and the byte bits are used to represent the number of characters counted forward from the last character of the file to be searched; extracting the multiple characters corresponding to the multiple bytes from the index information of the file to be searched, and obtaining the index association information corresponding to the file to be searched.

[0157] According to one or more embodiments of the present disclosure, the index information includes index association information, index format information and index bit number information, and the index bit number information is used to represent the number of multiple byte bits occupied by the index association information; accordingly, the reading module determines the index field information corresponding to the index association information, specifically including: determining the number M of multiple byte bits occupied by the index format information, where M is a positive integer; determining that the last character of the index format information corresponds to the 0th byte bit; determining that the byte bit corresponding to the index bit number information is the Mth byte bit; obtaining the numeric character N corresponding to the Mth byte bit, and determining that the numeric character N is the number N of multiple byte bits occupied by the index association information, where N is a positive integer; determining the index field information corresponding to the index association information based on the Mth byte bit and the number N of multiple byte bits occupied by the index association information.

[0158] According to one or more embodiments of the present disclosure, a reading module determines the index field information corresponding to the index associated information based on the Mth byte bit and the number N of multiple byte bits occupied by the index associated information, specifically including: determining the first byte bit of the Mth byte bit as the starting byte bit occupied by the index bit number information; determining the first N byte bits of the Mth byte bit as the ending byte bit occupied by the index bit number information; determining the byte bit interval occupied by the index associated information based on the starting byte bit and the ending byte bit; and determining the multiple byte bits included in the byte bit interval as the index field information corresponding to the index associated information.

[0159] According to one or more embodiments of the present disclosure, the original file is a text file, and the position information is used to indicate the character position of the search object in the text file; or, the original file is a video file, and the position information is used to indicate the playback time of the search object in the video file; or, the original file is an image file, and the position information is used to indicate the pixel area of ​​the search object in the image file.

[0160] According to one or more embodiments of the present disclosure, an acquisition module traverses index association information of multiple files to be searched, and acquires at least one target position information associated with the target search object, specifically including: for the index association information of each file to be searched, if the index association information includes an association relationship between a search object and a character position, then from the association relationship between the search object and the character position, at least one character position associated with the target search object is acquired; if the index association information includes an association relationship between a search object and a playback time, then from the association relationship between the search object and the playback time, at least one playback time associated with the target search object is acquired; if the index association information includes an association relationship between a search object and a pixel area, then from the association relationship between the search object and the pixel area, at least one pixel area associated with the target search object is acquired.

[0161] According to one or more embodiments of the present disclosure, the search object includes at least one of a search keyword, a search icon, and a search audio.

[0162] According to one or more embodiments of the present disclosure, the display module is further used to display a content interface corresponding to the target location information in the corresponding original file if a selection operation of any target location information is detected, and the content interface includes the target search object.

[0163] According to one or more embodiments of the present disclosure, the display module displays the content interface corresponding to the target position information in the corresponding original file, specifically including: displaying a text interface corresponding to the character position in a text file; or, displaying a video frame interface corresponding to the playback time in a video file; or, displaying an image interface corresponding to the pixel area in an image file.

[0164] According to one or more embodiments of the present disclosure, the device includes: a verification module. The verification module is used to extract M characters corresponding to M bytes from the last byte of each file to be searched, to obtain a character string, where M is a positive integer; verify the format of the file to be searched through the character string; if the verification is successful, read the corresponding index association information from the index information of the file to be searched.

[0165] According to one or more embodiments of the present disclosure, the verification module verifies the format of the file to be searched through the character string, specifically including: if the content of the character string belongs to the index format information, determining that the format verification of the file to be searched passes; if the content of the character string does not belong to the index format information, determining that the format verification of the file to be searched fails.

[0166] According to one or more embodiments of the present disclosure, the device includes: a format conversion module. The format conversion module is used to obtain object information corresponding to each position information in the original file to obtain multiple object information; extract at least one search object from the multiple object information; associate each search object with the corresponding position information to obtain associated index information corresponding to the original file; generate index information including the associated index information, and add the index information to the original file to obtain a file to be searched.

[0167] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0168] The memory stores computer-executable instructions;

[0169] The processor executes the computer-executable instructions stored in the memory to implement the information search method as described in the first aspect and various possible designs of the first aspect.

[0170] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the information search method described in the first aspect and various possible designs of the first aspect is implemented.

[0171] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the information search method as described in the first aspect and various possible designs of the first aspect.

[0172] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0173] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0174] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. An information search method, characterized in that: include: Receiving a search instruction for a plurality of files to be searched, the search instruction including a target search object, the files to be searched being obtained by adding corresponding index information to the original files; Reading corresponding index association information from the index information of each file to be searched, wherein the index association information includes an association relationship between a search object and position information, wherein the position information is used to indicate a position of the search object in the original file; Traversing the index association information of the plurality of files to be searched, and acquiring at least one target location information associated with the target search object; The search result information corresponding to the target search object is displayed according to the at least one target location information, and the search result information includes at least one target location information and the corresponding file to be searched.

2. The method according to claim 1, characterized in that The file to be searched includes a plurality of characters, each character corresponding to a byte; Accordingly, the step of reading corresponding index association information from the index information of each file to be searched includes: Determine index field information corresponding to the index associated information of the file to be searched, the index field information is used to represent a plurality of bytes occupied by the index associated information, and the bytes are used to represent the number of characters calculated forward from the last character of the file to be searched; Extract a plurality of characters corresponding to the plurality of bytes from the index information of the file to be searched, and obtain index association information corresponding to the file to be searched.

3. The method according to claim 2, characterized in that The index information includes index association information, index format information and index bit number information, wherein the index bit number information is used to indicate the number of multiple bytes occupied by the index association information; Accordingly, the determination of index field information corresponding to the index association information includes: Determine the number M of multiple bytes occupied by the index format information, where M is a positive integer; Determine that the last character of the index format information corresponds to the 0th byte; Determine that the byte position corresponding to the index bit information is the Mth byte position; Obtain the numeric character N corresponding to the Mth byte position, and determine that the numeric character N is the number N of multiple bytes occupied by the index association information, where N is a positive integer; According to the Mth byte and the number N of multiple bytes occupied by the index association information, the index field information corresponding to the index association information is determined.

4. The method according to claim 3, characterized in that The determining, according to the Mth byte and the number N of the multiple byte occupied by the index association information, the index field information corresponding to the index association information includes: Determine the first byte of the Mth byte as the starting byte occupied by the index bit number information; Determine the first N bytes of the Mth byte as the termination byte occupied by the index bit information; Determine the byte interval occupied by the index association information according to the starting byte position and the ending byte position; The multiple bytes included in the byte bit interval are determined as index field information corresponding to the index association information.

5. The method according to claim 1, characterized in that The original file is a text file, and the position information is used to indicate the character position of the search object in the text file; or, The original file is a video file, and the position information is used to indicate the play time of the search object in the video file; or, The original file is an image file, and the position information is used to represent a pixel area of ​​the search object in the image file.

6. The method according to claim 5, characterized in that The traversing the index association information of the plurality of files to be searched and acquiring at least one target location information associated with the target search object includes: For each index association information of the file to be searched, if the index association information includes an association relationship between a search object and a character position, obtaining at least one character position associated with the target search object from the association relationship between the search object and the character position; If the index association information includes an association relationship between a search object and a play time, obtaining at least one play time associated with the target search object from the association relationship between the search object and the play time; If the index association information includes an association relationship between a search object and a pixel area, at least one pixel area associated with the target search object is acquired from the association relationship between the search object and the pixel area.

7. The method according to any one of claims 1 to 6, characterized in that: The search object includes at least one of a search keyword, a search icon, and a search audio.

8. The method according to any one of claims 1 to 6, characterized in that: Also includes: If a selection operation of any target location information is detected, a content interface corresponding to the target location information in the corresponding original file is displayed, and the content interface includes the target search object.

9. The method according to claim 8, characterized in that The display of the content interface corresponding to the target location information in the corresponding original file includes: Displays a text interface corresponding to the character position in the text file; or, Display the video frame interface corresponding to the playback time in the video file; or, Displays the image interface corresponding to the pixel area in the image file.

10. The method according to any one of claims 1 to 6, characterized in that: Before reading the corresponding index association information from the index information of each file to be searched, the method further includes: For each file to be searched, starting from the last byte of the file to be searched, extract M characters corresponding to M bytes forward to obtain a character string, where M is a positive integer; Verifying the format of the file to be searched through the character string; If the verification is successful, the corresponding index association information is read from the index information of the file to be searched.

11. The method according to claim 10, characterized in that The verifying the format of the file to be searched by using the character string includes: If the content of the string belongs to the index format information, it is determined that the format verification of the file to be searched has passed; If the content of the character string does not belong to the index format information, it is determined that the format verification of the file to be searched fails.

12. The method according to claim 1, characterized in that Before receiving the search instruction for the plurality of files to be searched, the method further includes: Acquire file information of an original file, and extract at least one search object from the file information; Determine the location information corresponding to each search object; Associating each search object with the corresponding location information to obtain associated index information corresponding to the original file; Generate index information including the associated index information, and add the index information to the original file to obtain the file to be searched.

13. An information search device, characterized in that: include: A receiving module receives a search instruction for a plurality of files to be searched, wherein the search instruction includes a target search object, and the files to be searched are obtained by adding corresponding index information to the original files; A reading module, used to read corresponding index association information from the index information of each file to be searched, wherein the index association information includes an association relationship between a search object and position information, wherein the position information is used to indicate a position of the search object in the original file; An acquisition module, used for traversing the index association information of the plurality of files to be searched, and acquiring at least one target location information associated with the target search object; The display module is used to display the search result information corresponding to the target search object according to the at least one target location information, and the search result information includes at least one target location information and the corresponding to-be-searched file.

14. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the information search method according to any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the information search method according to any one of claims 1 to 12 is implemented.

16. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the information searching method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Data search method and device, electronic equipment and storage medium

    CN112749258A

  • Data search processing method and device, electronic equipment and storage medium

    CN113076456A

  • Index data generation method and device, information retrieval method and device and computer system

    CN115080514A

  • Data edge platform for improved storage and analytics

    US20180349425A1