Query for huge result truncates the data
See original GitHub issuefrom elasticsearch import Elasticsearch
from elasticsearch_dsl import Search
s = Search(using=self.es, index=index, doc_type=doc_type)
s = s.query(self.queryParser(query))
res = s.execute()
for h in res.hits.hits:
...
JSONDecodeError("Expecting ',' delimiter or '}': line 1 column 524050 (char 524049)",))
pip3 list | grep elastic
elasticsearch 6.1.1
elasticsearch-dsl 6.1.0
It works with curl
doing the same query
curl --cacert ca.crt --cert client-dev.crt --key client-dev.key -XGET https://hostname:9200/index/_search/ -d '{"query": {"bool": {"must": [{"query_string": {"query": " *"}}]}}, "from": 0, "size": 999}' -H "Content-Type: application/json" | jq ".hits.hits | length"
999
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Silent Data truncation in SQL Server 2019 - SQLShack
In this article, we'll take a look into SQL truncate improvement in SQL Server 2019. Data inserts and updates are a normal and...
Read more >Prevent Truncation of SQL Server Management Studio Results
In the Options dialog box of Tools Menu, expand Query Results, expand SQL Server and then select Results to Text as shown in...
Read more >SQL Server truncation and 8192 limitation - Stack Overflow
Yet, In Management Studio I have under Tools --> Options --> Query Results --> Results to Text --> Max numbers of characters displayed...
Read more >Step-by-Step Guide to Perform Truncate in SQL - Simplilearn
The truncate query is used to remove the record from the tables. In some situations, the truncate query cannot change data records. Following ......
Read more >SSMS truncating the result text in the select query - MSDN
Hello,. The value of one of the columns in my table is 14000 lines(678913 characters). The datatype of that column is varchar(MAX). I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry I was on holiday for the last 2 weeks. I’m back to work today and catching up on emails. I’ll address this and all other issues/PR’s asap 😃
thanks
Confirmed, the issue was caused by the Nginx (a difference between header content-length and actual content length). Thanks a lot for the help.