lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1442133 - /lucene/dev/branches/lucene4547/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/BytesRefFieldSource.java
Date Mon, 04 Feb 2013 14:31:51 GMT
Author: rmuir
Date: Mon Feb  4 14:31:51 2013
New Revision: 1442133

URL: http://svn.apache.org/viewvc?rev=1442133&view=rev
Log:
clean up a little bit

Modified:
    lucene/dev/branches/lucene4547/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/BytesRefFieldSource.java

Modified: lucene/dev/branches/lucene4547/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/BytesRefFieldSource.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene4547/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/BytesRefFieldSource.java?rev=1442133&r1=1442132&r2=1442133&view=diff
==============================================================================
--- lucene/dev/branches/lucene4547/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/BytesRefFieldSource.java
(original)
+++ lucene/dev/branches/lucene4547/lucene/queries/src/java/org/apache/lucene/queries/function/valuesource/BytesRefFieldSource.java
Mon Feb  4 14:31:51 2013
@@ -43,8 +43,8 @@ public class BytesRefFieldSource extends
   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() {
 



Mime
View raw message