Skip to content

Does suggest query support LANG search #9

@sincerefly

Description

@sincerefly

When push or query data, I use { LANG: "cmn" }, It's Mandarin Chinese, maybe the same as Simple Chinese

It's works well, testing data:

sonicChannelIngest.push("testing", "area_code", "230102", "黑龙江省哈尔滨市道里区", { LANG: "cmn" })
sonicChannelIngest.push("testing", "area_code", "230103", "黑龙江省哈尔滨市南岗区", { LANG: "cmn" })
sonicChannelIngest.push("testing", "area_code", "230104", "黑龙江省哈尔滨市道外区", { LANG: "cmn" })

# query
sonicChannelSearch.query("testing", "area_code",  "黑龙江省", { LANG: "cmn" })

# result
["230102", "230103", "230104"]

when use suggest:

sonicChannelSearch.suggest("testing", "area_code",  "黑龙江省")

got the error:

Error: { code: 'unexpected_error', message: 'query_error' }

so, does suggest support LANG params query, thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions