I wrote the query function in my spare time (list is provided, partial content is displayed, and keywords are colored)
Provides two Query Interfaces: the query database interface and the text query interface.
Queries the database interface. This operation performs the like operation on related fields in the database and selects relevant records for display. for a large number of queries, the system response will certainly be slowed down,
Generally, you can add and back up a MySQL instance to query such database interfaces, which is staggered with other daily operations.
The text query interface is mainly used to query uploaded documents. Currently, only file names and TXT file content are supported. You can abstract this method when you are available to provide different file types.
Content Query.
Later, you can use data structures such as JSON for rpc. You can use C ++ To Write File Content for search, and then use JSON for packaging and sending. After receiving the code, PHP parses the JSON package for display. In this way, the speed should be faster than simply using PHP to search for file content.