mirror of
https://github.com/apache/lucene.git
synced 2025-02-06 10:08:58 +00:00
don't create unnecessary lambda
This commit is contained in:
parent
928fa91c89
commit
72537fd2cd
@ -476,7 +476,7 @@ public final class IndexWriterConfig extends LiveIndexWriterConfig {
|
||||
}
|
||||
}
|
||||
this.indexSort = sort;
|
||||
this.indexSortFields = Arrays.stream(sort.getSort()).map((s) -> s.getField()).collect(Collectors.toSet());
|
||||
this.indexSortFields = Arrays.stream(sort.getSort()).map(SortField::getField).collect(Collectors.toSet());
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user