Hi,
our schema is:
<text>: string @index(term) .
and following query does not return expected results:
{
all(func: has(text)) {
uid
text
}
w(func: eq(text,"*")) {
uid
text
}
}
{
"data": {
"all": [
{
"uid": "0x2",
"text": "a"
},
{
"uid": "0x3",
"text": "*"
}
],
"w": []
}
}
if we change schema to:
<text>: string @index(exact) .
than query returns what is expected:
{
"data": {
"all": [
{
"uid": "0x2",
"text": "a"
},
{
"uid": "0x3",
"text": "*"
}
],
"w": [
{
"uid": "0x3",
"text": "*"
}
]
}
}
Backend info:
Dgraph Version - v20.11.0-11-gb36b4862
and same problem on
Dgraph Version v20.11.0-rc2