Can't find record use alloftext or allofterms but eq fun is working

the command :

{
   query(func:alloftext(company_name@., "邹平西王建筑有限责任公司"),first:5) {
	 name:company_name
	 rid:uid
  }
}

return: Your query did not return any results.

but:

{
  find_someone(func: eq(company_name@., "邹平西王建筑有限责任公司")) {
    name:company_name
    rid:uid
  }
}

return:

{
  "data": {
    "find_someone": [
      {
        "name": "邹平西王建筑有限责任公司",
        "rid": "0xa58d631"
      }
    ]
  },
  "extensions": {
    "server_latency": {
      "parsing_ns": 13195,
      "processing_ns": 4076725468,
      "encoding_ns": 1027381
    },
    "txn": {
      "start_ts": 31430209
    }
  }
}

I have a fulltext index on company_name field.

does there a problem in the first command?

Are you using fulltext indexing?

Maybe you need to set the lang tag correctly. But I think is the indexing.

yes, I have a fulltext indexing on company_name field.

Hey, can you try again in the latest Dgraph’s version?
We have some changes related to languages.

You can use a docker tag: v1.0.11-rc4 to get latest RC updates.

Context:

https://github.com/dgraph-io/dgraph/issues/2423
https://github.com/dgraph-io/dgraph/commit/e838bd96f90fd9e7ae71ee361fea2c34e4ae83ec

You could refer to Anyofterms doesn't work as expected with Chinese characters - #5 by gus. It has been fixed in 1.0.11. BTW, You should add language @zh when you add the company name with Chinese, and find with “<邹平西王建筑有限责任公司>