He has been playing Lucene for the past two days.

Source: Internet
Author: User

I started to read Java, but I couldn't quite understand it. I didn't learn Java, and I found it later. net is mainly used to study dotlucene. Since I have just come into contact with C #, it is still a little difficult to study such an open-source project. However, I prefer the search class, so I still read it, I have read a lot of materials, English and Chinese, and now I have finally succeeded in debugging and added a Word Segmentation Based on word lists.
There are still highlighter highlighted ones, which are under study!
There is also the self-written html2text, which doesn't feel very efficient, alwaysProgramThe program stops running! I don't know why

1 Public   String Html2text ( String Content, String S, String E)
2 {
3 Int S_pos = Content. indexof (s ); // Locate the start string
4 While (S_pos ! =- 1 )
5 {
6 Int E_pos = Content. indexof (E, s_pos ); // End string position
7 If (E_pos ! =- 1 ) // If an end string exists, replace it with another string.
8 {
9 String Replacestr = Content. substring (s_pos, e_pos + E. Length - S_pos ); // Character to be replaced between the start string and the end string
10 Content = Content. Replace (replacestr, "" );
11 S_pos = Content. indexof (s );
12 }
13 }
14 Content = Content. Replace ( " \ N " , "" );
15 Content = Content. Replace ( " \ R " , "" );
16 Content = Content. Replace ( "   " , "" );
17 Content = Content. Replace ( " " , "" ); // Tab key Filtering
18 // Content = content. Replace ("& nbsp ;",""); // Space Filtering
19 Return Content;
20 }

I used to write data in VB. It may be related to one index!

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.