FSDirectory directory = FSDirectory.Open( DirectoryInfo(.IndexDataDir), isExist = PanGuAnalyzer analyzer = IndexWriter writer = IndexWriter(directory, analyzer, ! (IndexDataQueue.Count > Document document = BaseDataMode mode = (KeyValuePair<, > kv document.Add( }; MultiFieldQueryParser parser = MultiFieldQueryParser(Lucene.Net.Util.Version.LUCENE_29, [] { Query query = parser.Parse(mode.Content[ (KeyValuePair<, > kv document.Add( }; MultiFieldQueryParser parser = MultiFieldQueryParser(Lucene.Net.Util.Version.LUCENE_29, [] { Query query = parser.Parse(mode.Content[ }; : { }; directory.Close();
FSDirectory directory = FSDirectory.Open( DirectoryInfo(.IndexDir), IndexReader reader = IndexReader.Open(directory, IndexSearcher searcher = BooleanQuery queryOr = ( word (KeyValuePair<, > kv TermQuery query = TermQuery( TopDocs tds = searcher.Search(queryOr, , ScoreDoc[] docs = ( i = ; i < docs.Length; i++ docId = Document doc = content = doc.Get(
DLL與詞庫:http://download.csdn.net/detail/aaakingwin/7208679