import pprint
import ptvsd
from elasticsearch import Elasticsearch

ptvsd.enable_attach(address=("0.0.0.0", 3000))
ptvsd.wait_for_attach()
ptvsd.break_into_debugger()

es = Elasticsearch("elasticsearch:9200")

result = es.search(index="feedbacksheet", 
                   body={"query": {
                            "query_string": {
                                "query": 'cause:1 AND phenomenon:"障害"'
                            }
                         },
                         "size": 10000,
                        }
                   )
print(len(result["hits"]["hits"]))
#pprint.pprint(result)
8ba5890e325a32bcb8152e3144d9145a2f606176
<mask token>

<mask token>
ptvsd.enable_attach(address=('0.0.0.0', 3000))
ptvsd.wait_for_attach()
ptvsd.break_into_debugger()
<mask token>
print(len(result['hits']['hits']))

<mask token>
ptvsd.enable_attach(address=('0.0.0.0', 3000))
ptvsd.wait_for_attach()
ptvsd.break_into_debugger()
es = Elasticsearch('elasticsearch:9200')
result = es.search(index='feedbacksheet', body={'query': {'query_string': {
    'query': 'cause:1 AND phenomenon:"障害"'}}, 'size': 10000})
print(len(result['hits']['hits']))

import pprint
import ptvsd
from elasticsearch import Elasticsearch
ptvsd.enable_attach(address=('0.0.0.0', 3000))
ptvsd.wait_for_attach()
ptvsd.break_into_debugger()
es = Elasticsearch('elasticsearch:9200')
result = es.search(index='feedbacksheet', body={'query': {'query_string': {
    'query': 'cause:1 AND phenomenon:"障害"'}}, 'size': 10000})
print(len(result['hits']['hits']))

import pprint
import ptvsd
from elasticsearch import Elasticsearch

ptvsd.enable_attach(address=("0.0.0.0", 3000))
ptvsd.wait_for_attach()
ptvsd.break_into_debugger()

es = Elasticsearch("elasticsearch:9200")

result = es.search(index="feedbacksheet", 
                   body={"query": {
                            "query_string": {
                                "query": 'cause:1 AND phenomenon:"障害"'
                            }
                         },
                         "size": 10000,
                        }
                   )
print(len(result["hits"]["hits"]))
#pprint.pprint(result)