I’m seeing the error message in the title when trying to do a ‘starts with’ type query using a Regex, and the number of characters provided is less than 3.
query(func: regexp(description, /^AA.*$/i))
Is there any other way to achieve the same result in Dgraph (using ‘starts with’ matching with less than 3 chars)? Other than padding all the data with an arbitrary char, or running through all possible permutations for the 3rd char, are there any other alternatives? Our result set is fairly small, approx 1000 odd nodes in this instance, so we don’t think performance is too much of a limiting factor at this stage.
I have seen a similar issue raised previously - but it’s pretty old and got closed, so checking if there really isn’t any other alternative. It seems like it would be a fairly common use case?