Description
Problem
- Created a custom type type1 with string attributes name and type_str
- Created 2 entities of type1:
- name : entity1 , type_str : rand_str
- name : entity2 , type_str : str_rand
- Fired DSL query : type1 where type_str like "rand*"
Expected that , entity1 only will be returned , but entity2 is also returned.
For all the following queries , both entities are returned:
1.type1 where type_str like "rand*"
2.type1 where type_str like "*rand"
3.type1 where type_str like "rand"
Basic search filter "begins with" works correctly. Issue seems to be with only DSL search. The issue is consistently reproducible.
Root cause:
Creating typeDef having attribute with typeName as 'biginteger' or 'bigdecimal', throws exception -
"java.lang.IllegalArgumentException: Unsupported data type [class java.math.BigInteger] for field: ftol",
This affects text search.
Solution:
Added check to allow if data type of attribute is BigInteger or BigDecimal.
Attachments
Attachments
Issue Links
- links to