500 error and some troubles when I search

I'm a beginner, and when I use it, I feel confused. like I write 500+ documents into an index, but when I search it, I wish all can be viewed, but just five, I don't know why. And when I use Chinese as input, it has 500 error. I feel frustrated, who can help me?


image
image

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with </> icon. Check the preview window.

Ok, thanks your reply in time.
when I use this query: GET /test-yxws-data/QA/_search?pretty
its response contains correct ‘total’ number, but the specific documents only have 5.

And when I use: GET /test-yxws-data/QA/_search?q=垂体瘤
its response as follow:
{
"statusCode": 500,
"error": "Internal Server Error",
"message": "An internal server error occurred"
}

but if I use English to replace Chinese("垂体瘤"), it's right.

Sounds like you can not pass directly in the URL those characters.
But you can pass it in a JSON body like:

DELETE test
PUT test/_doc/1
{
  "text": "垂体瘤"
}
GET /test/_search
{
  "query": {
    "query_string": {
      "query": "垂体瘤"
    }
  }
}

It works, thank u so much, but why the url way is wrong, maybe because of unicode?

It's more likely a Kibana issue I think.

Because running the following from the command line works well:

curl localhost:9200/_search?q=垂体瘤

May be open an issue in Kibana repository?

maybe, anyway, thank you! BTW, forum is really a good platform:)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.