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