From 647095acd0de2c71f2b6819c1384019880cdd162 Mon Sep 17 00:00:00 2001 From: Vivek Mishra Date: Thu, 9 Jan 2014 17:28:57 +0530 Subject: [PATCH] Fix for Issue #450 --- .../java/com/impetus/kundera/query/LuceneQueryBuilder.java | 4 ++-- src/pom.xml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jpa-engine/core/src/main/java/com/impetus/kundera/query/LuceneQueryBuilder.java b/src/jpa-engine/core/src/main/java/com/impetus/kundera/query/LuceneQueryBuilder.java index 111ea3d6f..d5e92e886 100644 --- a/src/jpa-engine/core/src/main/java/com/impetus/kundera/query/LuceneQueryBuilder.java +++ b/src/jpa-engine/core/src/main/java/com/impetus/kundera/query/LuceneQueryBuilder.java @@ -161,11 +161,11 @@ private String appendRange(final String value, final boolean inclusive, final bo sb.append("TO"); sb.append(appender); //composite key over lucene is not working issue #491 - if (clazz != null && clazz.isAssignableFrom(int.class) || clazz.isAssignableFrom(Integer.class) + if (clazz != null && (clazz.isAssignableFrom(int.class) || clazz.isAssignableFrom(Integer.class) || clazz.isAssignableFrom(short.class) || clazz.isAssignableFrom(long.class) || clazz.isAssignableFrom(Long.class) || clazz.isAssignableFrom(float.class) || clazz.isAssignableFrom(Float.class) || clazz.isAssignableFrom(BigDecimal.class) - || clazz.isAssignableFrom(Double.class) || clazz.isAssignableFrom(double.class)) + || clazz.isAssignableFrom(Double.class) || clazz.isAssignableFrom(double.class))) { sb.append(isGreaterThan ? "*" : value); diff --git a/src/pom.xml b/src/pom.xml index fc2e8b3ea..84503a4f7 100644 --- a/src/pom.xml +++ b/src/pom.xml @@ -228,6 +228,7 @@ jpa-engine + kundera-elastic-search kundera-cassandra