fix redundant cast warning

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1676222 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2015-04-27 08:48:22 +00:00
parent b5532c68ab
commit 0534312b8c
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ public class AnalyzingInfixSuggester extends Lookup implements Closeable {
//System.out.println("got searcher=" + searcher);
searcher.search(finalQuery, c2);
TopFieldDocs hits = (TopFieldDocs) c.topDocs();
TopFieldDocs hits = c.topDocs();
// Slower way if postings are not pre-sorted by weight:
// hits = searcher.search(query, null, num, SORT);