RediSearch / JRediSearch

Java Client for RediSearch
https://redisearch.io
BSD 2-Clause "Simplified" License
141 stars 62 forks source link

Problems using the queryBuilder with prefix queries. #164

Open pinkfloydsito opened 3 years ago

pinkfloydsito commented 3 years ago

I am having trouble to build a query using that library. In the empty node I just have a disjunct. Node empty = disjunct("browsers", value("browsername*"));

result = union(empty, whiteScenary, blackScenary);

When i build the query i get the following... (-@browsers:browsername*|(@browsers:browsername_chrome)) image

This is not finding anything, it just finds when I add the parenthesis sorrounding the disjunct part. ((-@browsers:browsername*)|(@browsers:browsername_chrome)) image

Is there any way we can fix this to continue using the queryBuilder?

sazzad16 commented 3 years ago

@pinkfloydsito At this moment, this is the way to do. And this is happening in RediSearch. JRediSearch alone can't resolve this.