Skip to content

SUGGEST returns a PENDING answer #16

@David-Lor

Description

@David-Lor

Describe the bug

I'm having the same problem as previously reported in #13: when running a SearchClient.suggest() query, returns a PENDING string.

To Reproduce

Running the example code blocks from Readme:

>>> with IngestClient("127.0.0.1", 1491, "password") as ingestcl:
...     print(ingestcl.ping())
...     print(ingestcl.protocol)
...     print(ingestcl.bufsize)
...     ingestcl.push("wiki", "articles", "article-1", "for the love of god hell")
...     ingestcl.push("wiki", "articles", "article-2", "for the love of satan heaven")
...     ingestcl.push("wiki", "articles", "article-3", "for the love of lorde hello")
...     ingestcl.push("wiki", "articles", "article-4", "for the god of loaf helmet")
... 
True
1
0
True
True
True
True

>>> with SearchClient("127.0.0.1", 1491, "password") as querycl:
...     print(querycl.ping())
...     print(querycl.query("wiki", "articles", "for"))
...     print(querycl.query("wiki", "articles", "love"))
...     print(querycl.suggest("wiki", "articles", "hell"))
... 
True
[]
['article-3', 'article-2', 'article-1']
PENDING XjOQ6NLi

Expected behavior

Receiving a result on the last method call (queryctl.suggest). Is it expected to work like that?

** Versions (please complete the following information):**

  • OS: Debian (Docker)
  • Sonic version: v1.3.5
  • Sonic client version: v0.0.5

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