Closed rjdkolb closed 1 year ago
thanks @bsbodden , this unit test works, but it does not use a List or a Set.
So what I am looking for is a:
@Test
void testFilterEntityStreamsByNestedField3() {
var results = entityStream.of(DeepNest.class) //
.filter("*Spartacus*")
.map(DeepNest$.NAME) //
.collect(Collectors.toList());
assertThat(results).containsOnly("dn-3");
}
@Document
public class DeepNest {
@Id
private String id;
@Indexed
@NonNull
private String name;
@Indexed
@NonNull
private List<NestLevel1> nestLevels;
}
Maybe this is a limitation or even a bad idea to search this deep.
Let me add that test since there have been some changes to RediSearch that might allow for that.
Based on the examples I would like to search for values inside CompanyMeta and not just on Company. I am unsure if this is a bug or a limitation on RediSearch. I am testing on the main branch.
CompanyMeta stringValue is ZZZZZZZZZZZ in my example.
I have added @Searchable to metaList in Company in the example.
and in CompanyMeta
from redis-cli MONITOR