Added field type TEXT to searchable fields

This commit is contained in:
Francesco committed 2023-09-30 10:48:28 +02:00
1 parent 0976a76ffc
commit 5b6dba0d24
1 file changed
+1 -1
@@ -131,7 +131,7 @@ public class CustomJpaRepository extends SimpleJpaRepository {
List<Predicate> finalPredicates = new ArrayList<>();
List<DbField> stringFields =
schema.getSortedFields().stream().filter(f -> f.getType() == DbFieldType.STRING)
schema.getSortedFields().stream().filter(f -> f.getType() == DbFieldType.STRING || f.getType() == DbFieldType.TEXT)
.collect(Collectors.toList());
List<Predicate> queryPredicates = new ArrayList<>();