Skip to content

Containing predicate does a fuzzy match instead of infix matching when using EntityStream filter #302

@lucasleon2107

Description

@lucasleon2107

Redis OM version: 0.8.5

When doing something like this:

entityStream.of(Person::class.java)
	.filter(`Person$`.FIRST_NAME.containing(firstName))
	.collect(Collectors.toList())

Checking the profiler, the generated query looks like this: %%%{query}%%, and according to the docs, that's considered a Fuzzy match, and I'm getting unexpected results from the query. It seems that the containing predicate should generate an infix match like this: *{query}*

@bsbodden

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions