PHP search engine supports Chinese search technology Diary

Source: Internet
Author: User
Environment: windowLinux tool: PHPmysqlapache Note: I am familiar with the operations in the Linux environment, and have no permission to configure the internet server. The local environment is windowxp. so there is no need for the environment. recently, I have been checking related PHP search engines for some knowledge. I don't have to worry about it because I want to have fun. I am sad when I use it. unexpectedly,

Environment: window/Linux tool: PHP mysql apache Note: I am familiar with the operations in Linux environment, and have no permission to configure the internet server. The local environment is window xp. so there is no need for the environment. recently, I have been checking related PHP search engines for some knowledge. I don't have to worry about it because I want to have fun. I am sad when I use it. unexpectedly,

Environment: window/Linux

Tool: PHP mysql apache

Note: I am familiar with Linux operations and have no permission to configure public network servers. The local environment is Windows xp, so I do not need the environment.

Recently, I have been checking related PHP search engines for some knowledge. I don't have to worry about it because I want to have fun. I am sad when I use it. I did not expect that the Chinese search function is insufficient on the Internet. A headache.

Record 1: As mentioned earlier, because of the environment, lucene, the most popular search tool sphwheel, cannot be used anymore. I cried .........

Record 2: risearch php

It took a few days to finally read the configuration file, but it was still a waste of time because it does not support Chinese retrieval. The method cannot be found from the Internet to support it.

Record 3: phpdig

Chinese Word Segmentation is not supported. I cannot find it from the Internet to retrieve Chinese words. Otherwise, it is a good choice.

Record 4: sphider supports Chinese search. However, if it is difficult to use, it may cause editing problems. I did not tune it when I transferred it to the 12th half of the night last night, and the effect on Chinese Word Segmentation is not very good, it can only be said to be usable. But it is better not to use it.


I tried so many tests, but I had a headache. I wanted to find a solution on the Internet. I didn't expect that the Chinese search support was so bad that I could only write it myself, saving my time. Bytes

The reason why you cannot directly use the open-source search engine on the internet is that you cannot perform Chinese matching. That is to say, you cannot perform Chinese word segmentation. You can only find a Chinese word segmentation tool on the Internet. Looking for PHPCWS from the Internet, Tianyi, "HTTPCWS is an HTTP-based open-source Chinese word segmentation system, which currently only supports Linux.

However, there is no path to perfection. In the end, I found a word splitting tool, HJ_SegWord (PHP component-less word splitting). It was written by myself and is useful. The word splitting technology solved the problem, the next problem is to solve the algorithm problem. I will talk about it tomorrow. My head is almost sore.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.