cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cxf git commit: Minor fix to LuceneQueryVisitor to properly specify default lower bound for TermRangeQuery
Date Sun, 15 Mar 2015 16:34:21 GMT
Repository: cxf
Updated Branches:
  refs/heads/master a2e5fae3a -> 2e19b7549


Minor fix to LuceneQueryVisitor to properly specify default lower bound for TermRangeQuery


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/2e19b754
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/2e19b754
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/2e19b754

Branch: refs/heads/master
Commit: 2e19b7549462aa8aafc9df7684327375fd4cd673
Parents: a2e5fae
Author: reta <drreta@gmail.com>
Authored: Sun Mar 15 12:34:06 2015 -0400
Committer: reta <drreta@gmail.com>
Committed: Sun Mar 15 12:34:06 2015 -0400

----------------------------------------------------------------------
 .../org/apache/cxf/jaxrs/ext/search/lucene/LuceneQueryVisitor.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/2e19b754/rt/rs/extensions/search/src/main/java/org/apache/cxf/jaxrs/ext/search/lucene/LuceneQueryVisitor.java
----------------------------------------------------------------------
diff --git a/rt/rs/extensions/search/src/main/java/org/apache/cxf/jaxrs/ext/search/lucene/LuceneQueryVisitor.java
b/rt/rs/extensions/search/src/main/java/org/apache/cxf/jaxrs/ext/search/lucene/LuceneQueryVisitor.java
index 750b37c..6c6b64a 100644
--- a/rt/rs/extensions/search/src/main/java/org/apache/cxf/jaxrs/ext/search/lucene/LuceneQueryVisitor.java
+++ b/rt/rs/extensions/search/src/main/java/org/apache/cxf/jaxrs/ext/search/lucene/LuceneQueryVisitor.java
@@ -247,7 +247,7 @@ public class LuceneQueryVisitor<T> extends AbstractSearchConditionVisitor<T,
Que
             final String luceneDateValue = getString(Date.class, getFieldTypeConverter(),
date);
                 
             if (type == ConditionType.LESS_THAN || type == ConditionType.LESS_OR_EQUALS)
{
-                return TermRangeQuery.newStringRange(name, "", luceneDateValue, minInclusive,
maxInclusive);
+                return TermRangeQuery.newStringRange(name, null, luceneDateValue, minInclusive,
maxInclusive);
             } else {
                 return TermRangeQuery.newStringRange(name, luceneDateValue, 
                     DateTools.dateToString(new Date(), Resolution.MILLISECOND), minInclusive,
maxInclusive);


Mime
View raw message