The Taote site search engine is developed from the Taote JSP search engine. The system is based on the Lucene.Net core and uses an efficient Chinese word segmentation algorithm to analyze, index and save the content in the database to the hard disk. During front-end search, by reading the index file for query, the performance problems of traditional database query under high concurrency and massive data are avoided. Because the front-end search does not connect to the database, it provides a fast data query solution for special user groups who do not want the database to be placed in the front-end.
+Installation instructions+
This system is developed using asp.net+C#, and the system runs in the .net framework2.0 or above environment. The installation can be completed by uploading the file to the server and granting read and write permissions to everyone in the tot directory in the system.
+Initial indexing instructions+
If your website already has certain data, you can use Reset.aspx provided in this software to connect to the database, select the tables and related fields to be indexed to the search engine, and complete the index initialization of the database after executing the index. Then you can see the query results through http://your domain name/Default.aspx.
Tip!!: After completing the database initialization, in order to avoid misoperation of the index, please delete or modify Reset.aspx.
+Index interface description+
Although the database data has completed index initialization and the front-end query has been implemented, when the website data is updated, how can the Taote search engine automatically index the new data to ensure that the front-end can always query the latest content? For this purpose, we provide the index access interface file: TotIndex.aspx, which provides the functions of adding and deleting indexes. In order to prevent external sites from maliciously submitting illegal data, accessing this interface requires communicating with it through a key. Index addition and deletion can only be completed when the key is the same as that specified by the system. The key is configured in Web.config as follows:
After the initial installation of the system, please modify the value part of ikey to a more complex string. Also provide the same key when accessed by your index interface.
The index interface transmits data via HTTP. Considering the utf-8 encoding used by this software, some languages such as asp and php may use gb2312 encoding when getting submitted data. If gb2312 is not converted to utf-8, garbled characters will appear. In addition, the get method Submitting data will also have the problem of data transmission length limit, so we use the post method in the index interface. In order to facilitate developers to quickly start using the index interface, we have produced index interface development examples in different WEB development languages (asp, jsp, php, .net). Please refer to the relevant files in the demo directory.
After the index interface is developed, by modifying your original data adding program, after adding the database, and executing the index interface program, the automatic addition of the search engine's index can be completed simultaneously. Real-time updates of the search engine on the site are realized.