Information search method, apparatus and device, and storage medium

CN118939607BActive Publication Date: 2026-08-21BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

[0004]然而,发明人发现现有技术至少存在如下技术问题:由于当文件的数量较多或文件较大时,对每个文件的信息进行一一解析所花费的时间较长,因此搜索效率较低

Benefits of technology

[0022]本实施例提供的信息搜索方法、装置、设备及存储介质,该方法包括:接收针对多个待搜索文件的搜索指令,搜索指令包括目标搜索对象,待搜索文件是在原始文件中加入对应的索引信息得到的;从每个待搜索文件的索引信息中读取对应的索引关联信息,索引关联信息包括搜索对象与位置信息的关联关系,位置信息用于表示搜索对象在原始文件中的位置;遍历多个待搜索文件的索引关联信息,获取目标搜索对象关联的至少一个目标位置信息;根据至少一个目标位置信息显示目标搜索对象对应的搜索结果信息,搜索结果信息包括至少一个目标位置信息及所属的待搜索文件。由于在接收到搜索指令时,能够根据搜索对象,通过索引关联信息对每个文件进行搜索,进而确定搜索对象在搜索文件中的位置,这样就不用对每个文件的全部信息进行搜索,并且索引关联信息的信息量较小,因此提高了搜索效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939607B_ABST
    Figure CN118939607B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide an information search method, device and equipment and a storage medium. The method comprises: receiving a search instruction for a plurality of to-be-searched files, the search instruction comprising a target search object, the to-be-searched files being obtained by adding corresponding index information to original files; reading corresponding index association information from the index information of each to-be-searched file, the index association information comprising an association relationship between the search object and position information, the position information being used to indicate the position of the search object in the original file; traversing the index association information of the plurality of to-be-searched files to obtain at least one 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 target position information, the search result information comprising the at least one target position information and the to-be-searched file to which the target position information belongs. Since the position of the search object in the file can be determined according to the index association information, the entire file does not need to be searched, and the efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of information technology, and in particular to an information search method, apparatus, device, and storage medium. Background Technology

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

[0003] In existing technologies, users input search keywords, and the terminal or server parses the information of each file based on the search keywords, thereby determining the file information related to the search keywords from the information of multiple files.

[0004] However, the inventors have found that the existing technology has at least the following technical problems: when there are many files 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] This disclosure provides an information search method, apparatus, device, and storage medium to improve search efficiency.

[0006] In a first aspect, embodiments of this disclosure provide an information search method, including:

[0007] Receive search instructions for multiple files to be searched, wherein the search instructions include target search objects, and the files to be searched are obtained by adding corresponding index information to the original files;

[0008] Read the corresponding index association information from the index information of each file to be searched. The index association information includes the association between the search object and the location information, and the location information is used to indicate the position of the search object in the original file.

[0009] Traverse the index association information of the multiple files to be searched to obtain at least one target location information associated with the target search object;

[0010] The search results information corresponding to the target search object are displayed based on the at least one target location information, and the search results information includes at least one target location information and the file to be searched.

[0011] Secondly, embodiments of this disclosure provide an information search device, comprising:

[0012] The receiving module receives search instructions for multiple files to be searched. The search instructions include target search objects, and the files to be searched are obtained by adding corresponding index information to the original files.

[0013] The reading module is used to read the 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 location information, and the location information is used to indicate the position of the search object in the original file.

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

[0015] The display module is used to display search results information corresponding to the target search object based on the at least one target location information, wherein the search results information includes at least one target location information and the file to be searched.

[0016] Thirdly, embodiments of this disclosure provide an electronic device, including:

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

[0018] The memory stores computer-executed instructions;

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

[0020] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the information search method described in the first aspect above.

[0021] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the information search method described in the first aspect above.

[0022] This embodiment provides an information search method, apparatus, device, and storage medium. The method includes: receiving a search instruction for multiple files to be searched, the search instruction including a target search object, and the files to be searched being obtained by adding corresponding index information to original files; reading corresponding index association information from the index information of each file to be searched, the index association information including the association between the search object and location information, the location information indicating the position of the search object in the original file; traversing the index association information of multiple files to be searched to obtain at least one target location information associated with the target search object; and displaying search result information corresponding to the target search object based on the at least one target location information, the search result information including at least one target location information and the file to which it belongs. Since, upon receiving a search instruction, each file can be searched based on the search object and the index association information to determine the position of the search object within the search file, it is not necessary to search all the information of each file, and the amount of information in the index association information is relatively small, thus improving search efficiency. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a schematic diagram illustrating an application scenario of an information search method provided in an embodiment of this disclosure;

[0025] Figure 2 A flowchart illustrating an information search method provided in this embodiment of the disclosure;

[0026] Figure 3 A flowchart of another information search method provided in this disclosure embodiment;

[0027] Figure 4 This is a schematic diagram illustrating the conversion of an original file according to an embodiment of this disclosure;

[0028] Figure 5 A flowchart of another information search method provided in this disclosure embodiment;

[0029] Figure 6 A structural block diagram of the information search device provided in the embodiments of this disclosure;

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

[0031] Figure 8 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0032] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this 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, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0034] Currently, the number of files stored on terminals or servers is increasing, and manual searching is slow when users need to retrieve specific information. Therefore, search software can be used to search for information on multiple files on a terminal or server based on search keywords, and retrieve file information related to that specific information.

[0035] For example, a user enters search keywords, and the terminal or server parses the information of each file based on the search keywords, thereby identifying the file information related to the search keywords from multiple files. However, when there are many files or the files are large, the information in each file is extensive, and parsing the information of each file one by one takes a long time, thus the current search method is inefficient.

[0036] Therefore, improving the efficiency of information retrieval has become an urgent technical problem to be solved.

[0037] To address the aforementioned issues, this embodiment provides an information search method. First, corresponding index information is added to the original file to obtain the file to be searched. When a search instruction is received for multiple files to be searched, each file is searched based on the target search object using the index association information, thus determining the position of the search object within the search file. This avoids searching all the information in each file, and since the amount of information in the index association information is relatively small compared to the entire file, it improves the efficiency of information search.

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

[0039] The information search method provided in this disclosure can be applied to various search scenarios. For example, it can be applied to video information search scenarios. Figure 1 This is a schematic diagram illustrating an application scenario of an information search method provided in an embodiment of this disclosure. For example... Figure 1 As shown, a terminal 101 is used to input search keywords and trigger a search command. The terminal 101 sends the search command to the server. The server 102 searches each video file based on the search keywords in the search command, using index association information to determine the position of the search keywords in the video file (i.e., playback time), and generates search result information. The server 102 returns the search result information to the terminal 101. The terminal 101 can be a mobile phone or a computer device. The following detailed embodiments illustrate the information search method provided in this disclosure.

[0040] Example 1

[0041] refer to Figure 2 , Figure 2 This is a flowchart illustrating an information search method provided in an embodiment of this disclosure. The execution entity of this information search method can be a terminal or a server. This embodiment is described using a terminal as the execution entity. The method includes:

[0042] S201. Receive search instructions for multiple files to be searched. The search instructions include the target search object. The files to be searched are obtained by adding the corresponding index information to the original files.

[0043] In this embodiment, the multiple files to be searched can be multiple files within the search scope. Optionally, the multiple files to be searched can be multiple files stored locally on the terminal, or multiple files included in a folder. Furthermore, the files to be searched include index information; that is, the files to be searched are obtained by converting the original files. The index information is used to represent 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 the following: search keywords, search icons, and search audio. For example, the target search object is the keyword "weather". Another example is the search audio "weather".

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

[0046] Optionally, the target search object includes search audio, which the user can input via a voice input button on the terminal. Accordingly, this step involves: 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 search audio. For example, the search instruction could be "Search weather," and the search audio could be "weather." The trigger operation could be a click operation, etc.

[0047] S202. Read the corresponding index association information from the index information of each file to be searched. The index association information includes the association between the search object and the location information. The location information is used to indicate the position of the search object in the original file.

[0048] In this embodiment, the original file can be a file of any format. Optionally, the original file can be a text file, a video file, or an image file. Optionally, the original file can be 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 can be 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 can be an image file, and the position information is used to indicate the pixel region of the search object in the image file.

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

[0050] For example, if the original file is a text file that says "Today's weather is sunny, the temperature is 23 degrees Celsius, suitable for an outing", the index association information is: "weather" is the 3rd character in the text file. The search object is "weather", and the location information is: "3rd character".

[0051] For example, if the original file is a video file, the index association information is: "Weather" corresponds to the playback time 00:00:15. That is, when the video file plays for 15 seconds, "Weather" will appear in the playback interface. Here, the search object is "Weather", and the location information is "00:00:15".

[0052] For example, if the original file is an image file, 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 to obtain at least one target location information associated with the target search object.

[0054] In this embodiment of the application, the index association information may include one or more target search objects, or it may not include target search objects.

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

[0056] For example, 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, the character position associated with "weather" is obtained from the association between the search object and character position: the 3rd character. For the index association information of video file B, the playback time associated with "weather" is obtained from the association between the search object and playback time: 00:00:15. For the index association information of image file C, the pixel region associated with "weather" is obtained from the association between the search object and pixel region: 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.

[0057] S204. Display the search results information corresponding to the target search object based on at least one target location information. The search results information includes at least one target location information and the file to be searched.

[0058] Optionally, the search results information includes the character position and the text file to which it belongs; and / or, the playback time and the video file to which it belongs; and / or, the pixel region 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 3rd character, 00:00:15, x = 100-200, y = 200-300. Accordingly, based on at least one target location information, the search results information corresponding to the target search object are displayed as follows: text file A, the 3rd character; video file B, 00:00:15; image file C, x = 100-200, y = 200-300.

[0060] The information search method provided in this embodiment includes: receiving search instructions for multiple files to be searched, where each search instruction includes a target search object; the files to be searched are 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, where the index association information includes the association between the search object and location information, and the location information indicates the position of the search object in the original file; traversing the index association information of multiple files to be searched to obtain at least one target location information associated with the target search object; and displaying search results information corresponding to the target search object based on at least one target location information, where the search results information includes at least one target location information and the file to which it belongs. Since each file can be searched based on the search object and its index association information upon receiving a search instruction, thereby determining the position of the search object within the search file, it is not necessary to search all the information in each file. Furthermore, the amount of information in the index association information is relatively small, thus improving search efficiency.

[0061] Example 2

[0062] Figure 3 A flowchart illustrating another information search method provided in an embodiment of this disclosure. This embodiment... Figure 2 Based on the illustrated embodiment, the step S202, which involves reading the corresponding index association information from the index information of each file to be searched, will be further explained. In this embodiment, the file to be searched includes multiple characters, each character corresponding to one byte. For example... Figure 3 As shown, the method includes:

[0063] S301. Determine 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. The bytes are used to represent the number of characters counted backward 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 width information. The index bit width information indicates the number of bytes occupied by the index association information. For example, the index information includes index association information: weather, 3, sunny, 6, temperature, 9, outing, 17; index bit width information: 19 (that is, the number of bytes occupied by the index association information is 19); and index format information: quicksearch.

[0065] The process of determining the index field information corresponding to the index association information includes steps (1) to (5):

[0066] (1) Determine the number M of bytes occupied by the index format information, where M is a positive integer. Optionally, the number of characters in the index format information is determined to be the number of bytes occupied by the index format information. For example, the index format information is quicksearch, the number of characters is 11, and the number M of bytes occupied by the index format information is 11.

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

[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, the index format information is: quicksearch occupies 0-10 bytes. The index bit information is: 19 occupies 11 bytes; the index association information is: weather, 3, sunny, 6, temperature, 9, outing, 17 occupies 12-30 bytes.

[0070] Table 1 Index Information

[0071] Index information Weather, 3, Sunny, 6, Temperature, 9, Outing, 17 19 quicksearch

[0072] (3) Determine the byte bit corresponding to the index bit information as the Mth byte bit.

[0073] For example, as shown in Table 1, the number of bytes M occupied by the index format information is 11. The byte corresponding to the index bit information is the 11th byte.

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

[0075] For example, as shown in Table 1, the numeric character 19 corresponding to the 11th byte determines the number of bytes occupied by the numeric character 19 for the index association information.

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

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

[0078] For example, the byte corresponding to the index bit information is the 11th byte. The first byte of the Mth byte (i.e., the 12th byte) is determined as the starting byte of the index bit information, and the first N bytes of the Mth byte (i.e., the 30th byte) are determined as the ending byte of the index bit information. Based on the starting and ending byte, the byte range occupied by the index association information is determined to be [12, 30]. The multiple bytes included in the byte range [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 byte positions from the index information of the file to be searched to obtain the 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 to obtain the index association information corresponding to the file to be searched as: "Weather,3,Sunny,6,Temperature,9,Outing,17".

[0081] Specifically, the keyword "weather" corresponds to the 3rd character, the keyword "sunny day" 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 This is a flowchart illustrating another information search method provided in an embodiment of this disclosure. In this embodiment, the interface corresponding to any specific location can be displayed based on the user's selection. For example... Figure 5 As shown, this search method also includes:

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

[0085] Optionally, the original file is a text file, a video file, or an image file; correspondingly, a content interface corresponding to the target position information in the original file is displayed, 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 region in an image file.

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

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

[0088] In this embodiment of the application, since the user can enter the corresponding interface by selecting the target location information, the user can further view the target search object and other related information, thus 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 some files may not conform to the preset search format, which may result in the inability 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 be verified to determine whether it conforms to a preset search format. Correspondingly, before reading the corresponding index association information from the index information of each file to be searched, the search method further includes: for each file to be searched, starting from the last byte, extracting M characters corresponding to M bytes forward to obtain a string, where M is a positive integer; verifying the format of the file to be searched using the string; if the verification passes, reading the corresponding index association information from the index information of the file to be searched; if the verification fails, replacing it with another file to be searched and reading the corresponding index association information from the index information of that other file. In this embodiment, the number of M is not specifically limited and can be set and modified as needed. For example, M is 11.

[0092] Optionally, the steps for validating the format of the file to be searched using a string are as follows: if the content of the string belongs to the index format information, then the format of the file to be searched is determined to have passed the format validation; if the content of the string does not belong to the index format information, then the format of the file to be searched is determined to have failed the format validation.

[0093] The index format information can be any preset format. For example, the index format information is: quicksearch. If the content of the string belongs to quicksearch, the format verification of the file to be searched is determined to be successful; if the content of the string does not belong to quicksearch, the format verification of the file to be searched is determined to be unsuccessful.

[0094] In this embodiment, the format of the file to be searched is verified first to avoid search failures due to format mismatch, thus improving the efficiency of information retrieval.

[0095] Example 5

[0096] In this embodiment, 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 or a Word text file; it can also be a video file, such as an MP4 video file or an FLV video file; or it can be an image file, such as a PNG image file or a JPG image file.

[0097] The steps for converting the original file to obtain the file to be searched are as follows: obtain the file information of the original file, extract at least one search object from the file information; determine the location information corresponding to each search object; associate the search object with the corresponding location information to obtain the 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.

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

[0099] The object information can be text information, image information, etc. The location information can be character position, playback time, pixel area, etc.

[0100] For example, the object information is text information. The location information is the character position, and the search object is a keyword. Figure 5As shown, the original file is a PDF text file. The text contains 18 characters. The text information is: Today's weather is sunny, the temperature is 23 degrees Celsius, suitable for an outing. Using a keyword extraction algorithm, at least one keyword is extracted from the text information: weather, sunny, temperature, outing. The character position corresponding to the keyword "weather" is determined to be "3rd character", the character position corresponding to the keyword "sunny" is determined to be "6th character", the character position corresponding to the keyword "temperature" is determined to be "9th character", and the character position corresponding to the keyword "outing" is determined to be "17th character". The keywords and their corresponding character positions are associated to obtain the associated index information corresponding to the original file as: weather,3,sunny,6,temperature,9,outing,17. Using a 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 in an embodiment of this disclosure. See also... 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 search instructions for multiple files to be searched. The search instructions include the target search object. The files to be searched are obtained by adding corresponding index information to the original files.

[0103] The reading module 602 is used to read the 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 location information, and the location information is used to indicate the position of the search object in the original file.

[0104] The acquisition module 603 is used to 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;

[0105] Display module 604 is used to display search results information corresponding to the target search object based on at least one target location information. The search results information includes at least one target location information and the file to be searched.

[0106] In one embodiment of this disclosure, the file to be searched includes multiple characters, each character corresponding to one byte. 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 being used to represent the multiple bytes occupied by the index association information, the byte being used to represent the number of characters counted backward 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 to obtain the index association information corresponding to the file to be searched.

[0107] In one embodiment of this disclosure, the index information includes index association information, index format information, and index bit information. The index bit information is used to represent the number of bytes occupied by the index association information. Correspondingly, the reading module 602 determines the index field information corresponding to the index association information, specifically including: determining the number M of bytes 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; determining that the byte corresponding to the index bit information is the Mth byte; obtaining the numeric character N corresponding to the Mth byte, and determining that the numeric character N is the number N of bytes occupied by the index association information, where N is a positive integer; and determining the index field information corresponding to the index association information based on the Mth byte and the number N of bytes occupied by the index association information.

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

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

[0110] In one embodiment of this disclosure, the acquisition module 603 traverses the index association information of multiple files to be searched to acquire at least one target location information associated with the target search object. Specifically, this includes: for each file to be searched, if the index association information includes an association between the search object and a character position, then at least one character position associated with the target search object is acquired from the association between the search object and the character position; if the index association information includes an association between the search object and the playback time, then at least one playback time associated with the target search object is acquired from the association between the search object and the playback time; if the index association information includes an association between the search object and a pixel region, then at least one pixel region associated with the target search object is acquired from the association between the search object and the pixel region.

[0111] In one embodiment of this disclosure, the search object includes at least one of search keywords, search icons, and search audio.

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

[0113] In one embodiment of this disclosure, the display module 604 displays a content interface corresponding to the target position information in the 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 region in an image file.

[0114] In one embodiment of this disclosure, the device includes a verification module. The verification module is configured to, for each file to be searched, extract M characters corresponding to M bytes starting from the last byte of the file to be searched, to obtain a string, where M is a positive integer; verify the format of the file to be searched using the string; and if the verification passes, read the corresponding index association information from the index information of the file to be searched.

[0115] In one embodiment of this disclosure, the verification module verifies the format of the file to be searched using the string, specifically including: if the content of the string belongs to the index format information, then the format verification of the file to be searched is determined to be successful; if the content of the string does not belong to the index format information, then the format verification of the file to be searched is determined to be unsuccessful.

[0116] In one embodiment of this disclosure, the apparatus includes a format conversion module. The format conversion module is configured to acquire object information corresponding to each location information in the original file, obtaining multiple object information; extract at least one search object from the multiple object information; associate each search object with its 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 a file to be searched.

[0117] The receiving module 601, reading module 602, acquiring module 603, and display module 604 are connected sequentially. The information search device provided in this embodiment can execute the technical solution of the above method embodiment, and its implementation principle and technical effects are similar; therefore, they will not be described again here.

[0118] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, such as... 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-executed instructions;

[0121] The processor 701 executes the computer execution 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 explanations can be understood by referring to the descriptions and effects corresponding to the steps in the above embodiments, and will not be elaborated further here.

[0124] This disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the information search method provided in any of the above embodiments of this application.

[0125] refer to Figure 8The diagram illustrates a structural schematic of an electronic device 800 suitable for implementing embodiments of the present disclosure. The electronic device 800 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 8 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0126] like Figure 8 As shown, the electronic device 800 may include a processing unit (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 into a random access memory (RAM) 803. The RAM 803 also stores various programs and data required for the operation of the electronic device 800. The processing unit 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0127] Typically, the following devices can be connected to I / O interface 805: input devices 806 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 807 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 808 including, for example, magnetic tapes, hard disks, etc.; and communication devices 809. Communication device 809 allows electronic device 800 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 8 An electronic device 800 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0128] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by a processing device 801, it performs the functions defined in the methods of embodiments of this disclosure.

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

[0130] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0131] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.

[0132] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can 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 can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0133] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0134] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0135] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

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

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

[0138] According to the preset allocation rules, the download requests of the multiple terminals are allocated to multiple different download methods, where each download method corresponds to a set of download requests;

[0139] According to each download method, the data packet corresponding to each download request in the corresponding set of download requests is sent to the corresponding terminal.

[0140] According to one or more embodiments of this disclosure, in one embodiment, the file to be searched includes multiple characters, each character corresponding to one byte; correspondingly, 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 being used to represent the multiple bytes occupied by the index association information, the byte being used to represent the number of characters counted backward 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 to obtain the index association information corresponding to the file to be searched.

[0141] According to one or more embodiments of this disclosure, the index information includes index association information, index format information, and index bit information, wherein the index bit information is used to represent the number of bytes occupied by the index association information; correspondingly, determining the index field information corresponding to the index association information includes: determining the number M of bytes 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; determining that the byte corresponding to the index bit information is the Mth byte; obtaining the numeric character N corresponding to the Mth byte, and determining that the numeric character N is the number N of bytes occupied by the index association information, where N is a positive integer; and determining the index field information corresponding to the index association information based on the Mth byte and the number N of bytes occupied by the index association information.

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

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

[0144] According to one or more embodiments of this disclosure, the step of traversing the index association information of multiple files to be searched to obtain at least one target location information associated with the target search object includes: for each file to be searched, if the index association information includes an association between the search object and a character position, then at least one character position associated with the target search object is obtained from the association between the search object and the character position; if the index association information includes an association between the search object and a playback time, then at least one playback time associated with the target search object is obtained from the association between the search object and the playback time; if the index association information includes an association between the search object and a pixel region, then at least one pixel region associated with the target search object is obtained from the association between the search object and the pixel region.

[0145] According to one or more embodiments of this disclosure, the search object includes at least one of search keywords, search icons, and search audio.

[0146] According to one or more embodiments of this disclosure, it further includes: if a selection operation of any target location information is detected, then displaying a content interface corresponding to the target location information in the original file, the content interface including the target search object.

[0147] According to one or more embodiments of this disclosure, the display of the content interface corresponding to the target position information in the original file includes: 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 region in an image file.

[0148] According to one or more embodiments of this disclosure, 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, extracting M characters corresponding to M bytes from the last byte of the file to be searched to obtain a string, where M is a positive integer; verifying the format of the file to be searched using the string; if the verification is successful, reading the corresponding index association information from the index information of the file to be searched.

[0149] According to one or more embodiments of this disclosure, the step of verifying the format of the file to be searched using the string includes: if the content of the string belongs to the index format information, then the format verification of the file to be searched is determined to be successful; if the content of the string does not belong to the index format information, then the format verification of the file to be searched is determined to be unsuccessful.

[0150] According to one or more embodiments of this disclosure, before receiving the search instruction for multiple files to be searched, the method further includes: obtaining object information corresponding to each location 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 its corresponding location 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 files to be searched.

[0151] Secondly, according to one or more embodiments of this disclosure, an information search device is provided, including: a receiving module, a reading module, an acquiring module, and a display module.

[0152] The receiving module receives search instructions for multiple files to be searched. The search instructions include the target search object, and the files to be searched are obtained by adding corresponding index information to the original files.

[0153] The reading module is used to read the corresponding index association information from the index information of each file to be searched. The index association information includes the association between the search object and the location information, and the location information is used to indicate the position of the search object in the original file.

[0154] The acquisition module is used to 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;

[0155] The display module is used to display search results information corresponding to the target search object based on at least one target location information. The search results information includes at least one target location information and the file to be searched.

[0156] According to one or more embodiments of this disclosure, the file to be searched includes multiple characters, each character corresponding to one byte. 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 being used to represent the multiple bytes occupied by the index association information, the byte being used to represent the number of characters counted backward 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 to obtain the index association information corresponding to the file to be searched.

[0157] According to one or more embodiments of this disclosure, the index information includes index association information, index format information, and index bit information, wherein the index bit information is used to indicate the number of bytes occupied by the index association information; correspondingly, the reading module determines the index field information corresponding to the index association information, specifically including: determining the number M of bytes 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; determining that the byte corresponding to the index bit information is the Mth byte; obtaining the numeric character N corresponding to the Mth byte, and determining that the numeric character N is the number N of bytes occupied by the index association information, where N is a positive integer; and determining the index field information corresponding to the index association information based on the Mth byte and the number N of bytes occupied by the index association information.

[0158] According to one or more embodiments of this disclosure, the reading module determines the index field information corresponding to the index association information based on the Mth byte and the number N of multiple byte bits occupied by the index association information. Specifically, this includes: determining that the first byte of the Mth byte is the starting byte of the index bit information; determining that the first N bytes of the Mth byte are the ending byte of the index bit information; determining the byte bit range occupied by the index association information based on the starting byte and the ending byte; and determining the multiple byte bits included in the byte bit range as the index field information corresponding to the index association information.

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

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

[0161] According to one or more embodiments of this disclosure, the search object includes at least one of search keywords, search icons, and search audio.

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

[0163] According to one or more embodiments of this disclosure, the display module displays a content interface corresponding to the target position information in the 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 a pixel region in an image file.

[0164] According to one or more embodiments of this disclosure, the apparatus includes a verification module. The verification module is configured to, for each file to be searched, extract M characters corresponding to M bytes starting from the last byte of the file to be searched, to obtain a string, where M is a positive integer; verify the format of the file to be searched using the string; and if the verification passes, read the corresponding index association information from the index information of the file to be searched.

[0165] According to one or more embodiments of this disclosure, the verification module verifies the format of the file to be searched using the string, specifically including: if the content of the string belongs to the index format information, then the format verification of the file to be searched is determined to be successful; if the content of the string does not belong to the index format information, then the format verification of the file to be searched is determined to be unsuccessful.

[0166] According to one or more embodiments of this disclosure, the apparatus includes a format conversion module. The format conversion module is configured to acquire object information corresponding to each location information in an original file, obtaining multiple object information; extract at least one search object from the multiple object information; associate each search object with its 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 a file to be searched.

[0167] Thirdly, according to one or more embodiments of the present disclosure, an electronic device is provided, including: a processor, and a memory communicatively connected to the processor;

[0168] The memory stores computer-executed instructions;

[0169] The processor executes computer execution 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] Fourthly, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein computer-executable instructions are stored therein, and when a processor executes the computer-executable instructions, the information search method described in the first aspect and various possible designs of the first aspect is implemented.

[0171] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, 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 merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0173] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0174] Although the subject matter has been described using language specific to structural features and / or methodological logic, 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. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. An information search method, characterized in that, include: Receive search instructions for multiple files to be searched, wherein the search instructions include target search objects, and the files to be searched are obtained by adding corresponding index information to the original files; Read the corresponding index association information from the index information of each file to be searched. The index association information includes the association between the search object and the location information, and the location information is used to indicate the position of the search object in the original file. Traverse the index association information of the multiple files to be searched to obtain at least one target location information associated with the target search object; The search results information corresponding to the target search object are displayed based on the at least one target location information, and the search results information includes at least one target location information and the file to be searched.

2. The method according to claim 1, characterized in that, The file to be searched includes multiple characters, each character corresponding to one byte. Accordingly, reading the corresponding index association information from the index information of each file to be searched includes: Determine 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. The bytes are used to represent the number of characters counted backward from the last character of the file to be searched. Extract multiple characters corresponding to the multiple byte positions from the index information of the file to be searched to obtain the 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 information, wherein the index bit information is used to indicate the number of bytes occupied by the index association information; Accordingly, the index field information corresponding to the determined index association information includes: Determine the number M of 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 bit; The byte corresponding to the index bit information is determined to be the Mth byte bit; Obtain the numeric character N corresponding to the Mth byte, 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; Based on 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 step of determining the index field information corresponding to the index association information based on the Mth byte and the number N of multiple bytes occupied by the index association information includes: The first byte of the Mth byte is determined to be the starting byte of the index bit information; The first N bytes of the Mth byte are determined to be the terminating bytes occupied by the index bit information; The byte range occupied by the index association information is determined based on the start byte and the end byte. The multiple bytes included in the byte range are determined as the 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 location information is used to indicate the character position of the search object within the text file; or, The original file is a video file, and the location 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 location information is used to represent the pixel region of the search object in the image file.

6. The method according to claim 5, characterized in that, The step of traversing the index association information of multiple files to be searched to obtain at least one target location information associated with the target search object includes: For each file to be searched, if the index association information includes the association between the search object and the character position, then at least one character position associated with the target search object is obtained from the association between the search object and the character position. If the index association information includes the association between the search object and the playback time, then at least one playback time associated with the target search object is obtained from the association between the search object and the playback time. If the index association information includes the association between the search object and the pixel region, then at least one pixel region associated with the target search object is obtained from the association between the search object and the pixel region.

7. The method according to any one of claims 1-6, characterized in that, The search target includes at least one of the following: search keywords, search icons, and search audio.

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

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

10. The method according to any one of claims 1-6, characterized in that, Before reading the corresponding index association information from the index information of each file to be searched, the process also includes: For each file to be searched, starting from the last byte of the file, extract M characters corresponding to M bytes forward to obtain a string, where M is a positive integer; The format of the file to be searched is verified using the 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 step of verifying the format of the file to be searched using the string includes: If the content of the string belongs to the index format information, then the format verification of the file to be searched is deemed successful. If the content of the string does not belong to the index format information, then the format verification of the file to be searched fails.

12. The method according to claim 1, characterized in that, Before receiving search instructions for multiple files to be searched, the method further includes: Obtain the file information of the original file, and extract at least one search object from the file information; Determine the location information corresponding to each search object; By associating each search object with its corresponding location information, the associated index information corresponding to the original file is obtained; 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: The receiving module receives search instructions for multiple files to be searched. The search instructions include target search objects, and the files to be searched are obtained by adding corresponding index information to the original files. The reading module is used to read the 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 location information, and the location information is used to indicate the position of the search object in the original file. The acquisition module is used to traverse the index association information of the multiple files to be searched and acquire at least one target location information associated with the target search object; The display module is used to display search results information corresponding to the target search object based on the at least one target location information, wherein the search results information includes at least one target location information and the file to be searched.

14. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the information search method as described in 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, which, when executed by a processor, implement the information search method as described in any one of claims 1 to 12.

16. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the information search method as described in any one of claims 1 to 12.

Citation Information

Patent Citations

  • 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