mirror of https://github.com/apache/lucene.git
Fix cast. IntelliJ didn't seem to care.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1598143 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d61e0f7527
commit
df42236e4a
|
@ -103,6 +103,7 @@ public class ExpandComponent extends SearchComponent implements PluginInfoInitia
|
|||
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void process(ResponseBuilder rb) throws IOException {
|
||||
|
||||
|
@ -220,7 +221,7 @@ public class ExpandComponent extends SearchComponent implements PluginInfoInitia
|
|||
BytesRef bytesRef = new BytesRef();
|
||||
CharsRef charsRef = new CharsRef();
|
||||
FieldType fieldType = searcher.getSchema().getField(field).getType();
|
||||
for (IntObjectCursor cursor : groups) {
|
||||
for (IntObjectCursor cursor : (Iterable<IntObjectCursor>) groups) {
|
||||
int ord = cursor.key;
|
||||
TopDocsCollector topDocsCollector = (TopDocsCollector) cursor.value;
|
||||
TopDocs topDocs = topDocsCollector.topDocs();
|
||||
|
|
Loading…
Reference in New Issue