mirror of https://github.com/apache/lucene.git
clean up a little bit
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1442133 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6a9d2a65c1
commit
5775a408ca
|
@ -43,8 +43,8 @@ public class BytesRefFieldSource extends FieldCacheSource {
|
|||
public FunctionValues getValues(Map context, AtomicReaderContext readerContext) throws IOException {
|
||||
final FieldInfo fieldInfo = readerContext.reader().getFieldInfos().fieldInfo(field);
|
||||
// To be sorted or not to be sorted, that is the question
|
||||
// nocommit: do it cleaner?
|
||||
if (fieldInfo != null && fieldInfo.hasDocValues() && fieldInfo.getDocValuesType() == DocValuesType.BINARY) {
|
||||
// TODO: do it cleaner?
|
||||
if (fieldInfo != null && fieldInfo.getDocValuesType() == DocValuesType.BINARY) {
|
||||
final BinaryDocValues binaryValues = FieldCache.DEFAULT.getTerms(readerContext.reader(), field);
|
||||
return new FunctionValues() {
|
||||
|
||||
|
|
Loading…
Reference in New Issue