摘要:
1 package com.lucene.search; 2 3 import java.io.File; 4 import java.io.FileNotFoundException; 5 import java.io.FileReader; 6 import java.io.IOException; 7 8 import org.apache.lucene.document.Document; 9 import org.apache.lucene.document.Field;10 import org.apache.lucene.document.NumericField;11 i... 阅读全文
摘要:
1 package com.lucene.util; 2 3 import java.io.Reader; 4 5 import org.apache.lucene.analysis.Analyzer; 6 import org.apache.lucene.analysis.TokenStream; 7 8 import com.chenlb.mmseg4j.Dictionary; 9 import com.chenlb.mmseg4j.MaxWordSeg;10 import com.chenlb.mmseg4j.analysis.MMSegTokenizer;11 12 publi... 阅读全文
摘要:
1 package com.lucene.util; 2 3 import java.io.Reader; 4 import java.util.Set; 5 6 import org.apache.lucene.analysis.Analyzer; 7 import org.apache.lucene.analysis.LetterTokenizer; 8 import org.apache.lucene.analysis.LowerCaseFilter; 9 import org.apache.lucene.analysis.StopAnalyzer;10 import org.ap... 阅读全文