Dgraph search query returns inconsistent results after upgrade to dgraph:v1.1.0

Lets say we want to search for a string in firstName and lastName predicates using a similar query like below

  directors(func: has(firstName), first:10, offset:0) @filter(regexp(firstName, /.*Steven/i) or regexp(lastName, /.*Steven/i)) {

using index trigram on both predicates

Can see the right results intermittently, like twice or thrice for ten requests. Was able to replicate even when no concurrent txns were running. This was working in 1.0.14.

Also, it is working exactly like before if we remove the “or” condition i.e. filter on only one one predicate.

Any suggestions…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.