Lucene

来源:互联网 发布:d盾webshell 编辑:程序博客网 时间:2024/04/29 16:36
Query q = new TermQuery(new Term("contents","lucene"));TopDocs hits = searcher.search(q,10);
This code instructs Lucene to find the top 10 documents that contain the word lucene in a field named contents,sorting the documents by descending relevance
原创粉丝点击