全文检索在结果中查询

 Hits hits=null;
QueryParser queryParser = new QueryParser("INDEX_TITLE", new StandardAnalyzer());
Query query = queryParser.Parse(QueryStringTitle);

QueryFilter Filter = new QueryFilter(query);

//放入缓存
CachingWrapperFilter filter = new CachingWrapperFilter(Filter);
hits = parallelmultisearcher.Search(m_BooleanQuery, filter, sort);//开始搜索

你可能感兴趣的:(全文检索)